content
stringlengths
5
1.04M
avg_line_length
float64
1.75
12.9k
max_line_length
int64
2
244k
alphanum_fraction
float64
0
0.98
licenses
list
repository_name
stringlengths
7
92
path
stringlengths
3
249
size
int64
5
1.04M
lang
stringclasses
2 values
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("RoboBank.Merchant.Application")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("RoboBank.Merchant.Application")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("cd416d47-e105-4f46-85d6-41e1e0978641")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
38.675676
84
0.748428
[ "MIT" ]
adrianbontea/RoboBank.Merchant
src/RoboBank.Merchant.Application/Properties/AssemblyInfo.cs
1,434
C#
using System; using Abp.Application.Services.Dto; using Abp.AutoMapper; namespace blogger.Authors.Dtos { [AutoMapFrom(typeof(Author))] public class AuthorListDto : EntityDto<long> { public string FirstName { get; set; } public string LastName { get; set; } public string Email { get; set; } public bool IsDeactivated { get; set; } public int BlogCount { get; set;} } }
28.266667
48
0.648585
[ "MIT" ]
Drex3l/aspboilerplate
aspnet-core/src/blogger.Application/Authors/Dtos/AuthorListDto.cs
424
C#
using Microsoft.Maui.Graphics; namespace Microsoft.Maui.Controls.Shapes { public class LineGeometry : Geometry { public LineGeometry() { } public LineGeometry(Point startPoint, Point endPoint) { StartPoint = startPoint; EndPoint = endPoint; } public static readonly BindableProperty StartPointProperty = BindableProperty.Create(nameof(StartPoint), typeof(Point), typeof(LineGeometry), new Point()); public static readonly BindableProperty EndPointProperty = BindableProperty.Create(nameof(EndPoint), typeof(Point), typeof(LineGeometry), new Point()); public Point StartPoint { set { SetValue(StartPointProperty, value); } get { return (Point)GetValue(StartPointProperty); } } public Point EndPoint { set { SetValue(EndPointProperty, value); } get { return (Point)GetValue(EndPointProperty); } } public override void AppendPath(PathF path) { path.Move((float)StartPoint.X, (float)StartPoint.Y); path.LineTo((float)EndPoint.X, (float)EndPoint.Y); } } }
24.404762
97
0.727805
[ "MIT" ]
3DSX/maui
src/Controls/src/Core/Shapes/LineGeometry.cs
1,025
C#
//----------------------------------------------------------------------------- // Copyright : (c) Chris Moore, 2020 // License : MIT //----------------------------------------------------------------------------- namespace Z0 { using System; using System.Runtime.CompilerServices; using static Root; /// <summary> /// Defines a value-parametric application setting /// </summary> public readonly struct Setting<T> : ISetting<T> { /// <summary> /// The setting name /// </summary> public string Name {get;} /// <summary> /// The setting value /// </summary> public T Value {get;} [MethodImpl(Inline)] public Setting(string name, T value) { Name = name ?? EmptyString; Value = value; } public Setting NonGeneric { [MethodImpl(Inline)] get => new Setting(Name, Value.ToString()); } public string Format() => string.Format(RP.Setting, Name, Value); public string Json() => string.Format(RP.JsonProp, Name, Value); public override string ToString() => Format(); [MethodImpl(Inline)] public static implicit operator Setting(Setting<T> src) => src.NonGeneric; [MethodImpl(Inline)] public static implicit operator T(Setting<T> src) => src.Value; [MethodImpl(Inline)] public static implicit operator Setting<T>(T src) => new Setting<T>(EmptyString, src); [MethodImpl(Inline)] public static implicit operator Setting<T>((string name, T value) src) => new Setting<T>(src.name, src.value); public static Setting<T> Empty { [MethodImpl(Inline)] get => new Setting<T>(String.Empty, core.EmptyType<T>()); } } }
27.338028
79
0.493045
[ "BSD-3-Clause" ]
0xCM/z0
src/rules/src/settings/models/SettingT.cs
1,941
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Opponent : Character { [Tooltip("The amount of money the player needs to earn to defeat this opponent.")] public int amountToDefeat; }
24.5
86
0.738776
[ "MIT" ]
therealjohn/DiceGame
Assets/Scripts/Opponent.cs
247
C#
using Microsoft.EntityFrameworkCore.Migrations; namespace BookBeing.Data.Migrations { public partial class BugWithEntitiesFixed : Migration { protected override void Up(MigrationBuilder migrationBuilder) { } protected override void Down(MigrationBuilder migrationBuilder) { } } }
19.166667
71
0.678261
[ "MIT" ]
ViktoriyaVelikova/Book-Project
BookBeing/BookBeing/Data/Migrations/20210812003436_BugWithEntitiesFixed.cs
347
C#
//****************************************************************************************************** // InitializationException.cs - Gbtc // // Copyright © 2012, Grid Protection Alliance. All Rights Reserved. // // Licensed to the Grid Protection Alliance (GPA) under one or more contributor license agreements. See // the NOTICE file distributed with this work for additional information regarding copyright ownership. // The GPA licenses this file to you under the MIT License (MIT), the "License"; you may // not use this file except in compliance with the License. You may obtain a copy of the License at: // // http://www.opensource.org/licenses/MIT // // Unless agreed to in writing, the subject software distributed under the License is distributed on an // "AS-IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Refer to the // License for the specific language governing permissions and limitations. // // Code Modification History: // ---------------------------------------------------------------------------------------------------- // 04/14/2010 - Pinal C. Patel // Generated original version of source code. // 12/14/2012 - Starlynn Danyelle Gilliam // Modified Header. // //****************************************************************************************************** using System; namespace GSF { /// <summary> /// The exception that is thrown when an object fails to initialize properly. /// </summary> [Serializable] public class InitializationException : Exception { #region [ Constructors ] /// <summary> /// Initializes a new instance of the <see cref="InitializationException"/> class. /// </summary> public InitializationException() { } /// <summary> /// Initializes a new instance of the <see cref="InitializationException"/> class. /// </summary> /// <param name="message">The message that describes the error.</param> public InitializationException(string message) : base(message) { } /// <summary> /// Initializes a new instance of the <see cref="InitializationException"/> class. /// </summary> /// <param name="message">The message that describes the error.</param> /// <param name="innerException">The exception that is the cause of the current exception.</param> public InitializationException(string message, Exception innerException) : base(message, innerException) { } #endregion } }
39.38806
106
0.581281
[ "MIT" ]
GridProtectionAlliance/gsf
Source/Libraries/GSF.Core/InitializationException.cs
2,642
C#
/* * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using Koralium.SqlParser; using Koralium.SqlParser.Expressions; using Koralium.SqlToExpression.Stages.CompileStages; using System.Collections.Generic; using System.Linq.Expressions; namespace Koralium.SqlToExpression.Visitors.Select { internal class SelectAggregationVisitor : BaseAggregationVisitor, ISelectVisitor { protected readonly List<SelectExpression> selectExpressions = new List<SelectExpression>(); protected readonly Stack<Expression> expressionStack = new Stack<Expression>(); protected readonly Stack<string> nameStack = new Stack<string>(); public IReadOnlyList<SelectExpression> SelectExpressions => selectExpressions; public SelectAggregationVisitor(GroupedStage previousStage, VisitorMetadata visitorMetadata) : base(previousStage, visitorMetadata) { //NOP } public override void VisitSelectScalarExpression(SelectScalarExpression selectScalarExpression) { selectScalarExpression.Expression.Accept(this); var expression = expressionStack.Pop(); string columnName = selectScalarExpression.Alias ?? nameStack.Pop(); selectExpressions.Add(new SelectExpression(expression, columnName)); } public override void AddExpressionToStack(Expression expression) { expressionStack.Push(expression); } public override Expression PopStack() { return expressionStack.Pop(); } public override void AddNameToStack(string name) { nameStack.Push(name); } public override string PopNameStack() { return nameStack.Pop(); } public void VisitSelect(SqlNode sqlNode) { sqlNode.Accept(this); } } }
33.746479
139
0.690317
[ "Apache-2.0" ]
rs-swc/Koralium
netcore/src/Koralium.SqlToExpression/Visitors/Select/SelectAggregationVisitor.cs
2,398
C#
using DFC.Digital.Data.Model; namespace DFC.Digital.Web.Sitefinity.CourseModule { public class CourseListingViewModel { public Course Course { get; set; } public string LocationLabel { get; set; } public string ProviderLabel { get; set; } public string AdvancedLoanProviderLabel { get; set; } public string StartDateLabel { get; set; } } }
23.352941
61
0.65995
[ "MIT" ]
Muthuramana/dfc-digital
DFC.Digital/DFC.Digital.Web.Sitefinity.CourseModule/Mvc/Models/CourseListingViewModel.cs
399
C#
using System; using System.IdentityModel.Tokens.Jwt; using System.Security.Claims; using System.Text; using System.Threading.Tasks; using Microsoft.AspNetCore.Hosting; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Identity.UI.Services; using Microsoft.AspNetCore.Mvc; using Microsoft.AspNetCore.SignalR; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.Options; using Microsoft.IdentityModel.Tokens; using SQE.API.DTO; using SQE.API.Server.Helpers; using SQE.API.Server.RealtimeHubs; using SQE.DatabaseAccess; using SQE.DatabaseAccess.Helpers; using SQE.DatabaseAccess.Models; namespace SQE.API.Server.Services { public interface IUserService { Task<DetailedUserTokenDTO> AuthenticateAsync(string email, string password, string clientId = null); // TODO: Return a User object, not a LoginResponse Task<DetailedUserDTO> GetCurrentUser(); uint? GetCurrentUserId(); Task<EditionUserInfo> GetCurrentUserObjectAsync(uint editionId, bool write = false, bool locking = false, bool admin = false); Task<DetailedUserTokenDTO> CreateNewUserAsync(NewUserRequestDTO newUserData, string clientId = null); Task<DetailedUserTokenDTO> UpdateUserAsync(uint? userId, UserUpdateRequestDTO updateUserData, string clientId = null); Task<NoContentResult> UpdateUnactivatedAccountEmailAsync(string oldEmail, string newEmail, string clientId = null); Task<NoContentResult> ResendActivationEmail(string email, string clientId = null); Task<NoContentResult> ConfirmUserRegistrationAsync(string token, string clientId = null); Task<NoContentResult> ChangePasswordAsync(uint? userId, string oldPassword, string newPassword, string clientId = null); Task<NoContentResult> RequestResetLostPasswordAsync(string email, string clientId = null); Task<NoContentResult> ResetLostPasswordAsync(string token, string password, string clientId = null); } public class UserService : IUserService { private readonly IHttpContextAccessor _accessor; private readonly AppSettings _appSettings; private readonly IConfiguration _config; private readonly IEmailSender _emailSender; private readonly IHostingEnvironment _env; private readonly IHubContext<MainHub> _hubContext; private readonly IUserRepository _userRepository; private readonly string webServer; public UserService(IOptions<AppSettings> appSettings, IUserRepository userRepository, IHttpContextAccessor accessor, IEmailSender emailSender, IConfiguration config, IHostingEnvironment env, IHubContext<MainHub> hubContext) // http://jasonwatmore.com/post/2018/08/14/aspnet-core-21-jwt-authentication-tutorial-with-example-api { _userRepository = userRepository; _appSettings = appSettings.Value; // For the secret key _accessor = accessor; _emailSender = emailSender; _config = config; _env = env; _hubContext = hubContext; webServer = _config.GetConnectionString("WebsiteHost"); } /// <summary> /// Authenticate user by credentials and create a JWT for the user. /// </summary> /// <param name="email"></param> /// <param name="password">The user's password</param> /// <param name="clientId"></param> /// <returns> /// Returns a response including a JWT for the user to use as a Bearer token, or an email /// address if the user account has not yet been activated. /// </returns> public async Task<DetailedUserTokenDTO> AuthenticateAsync(string email, string password, string clientId = null) { var result = await _userRepository.GetUserByPasswordAsync(email, password); return new DetailedUserTokenDTO { email = result.Email, userId = result.UserId, forename = result.Forename, surname = result.Surname, organization = result.Organization, token = result.Activated ? BuildUserToken(result.Email, result.UserId) : null, activated = result.Activated }; } public async Task<DetailedUserDTO> GetCurrentUser() { var userInfo = await _userRepository.GetDetailedUserByIdAsync(GetCurrentUserId()); return new DetailedUserDTO { email = userInfo.Email, forename = userInfo.Forename, surname = userInfo.Surname, organization = userInfo.Organization, userId = userInfo.UserId, activated = userInfo.Activated }; } public uint? GetCurrentUserId() { var identity = (ClaimsIdentity)_accessor.HttpContext.User.Identity; var claims = identity.Claims; foreach (var claim in claims) { var split = claim.Type.Split("/"); if (split[split.Length - 1] == "nameidentifier") return uint.Parse(claim.Value); } return null; } /// <summary> /// This will create a new user account in the database and email an authorization token to the user. /// </summary> /// <param name="newUserData">All of the information for the new user.</param> /// <param name="clientId"></param> /// <returns>Returns a UserDTO for the newly created user account.</returns> public async Task<DetailedUserTokenDTO> CreateNewUserAsync(NewUserRequestDTO newUserData, string clientId = null) { // Ask the repo to create the new user var createdUser = await _userRepository.CreateNewUserAsync( newUserData.email, newUserData.password, newUserData.forename, newUserData.surname, newUserData.organization ); // Email the user await SendAccountActivationEmail( new DetailedUserWithToken { Forename = newUserData.forename, Surname = newUserData.surname, Token = createdUser.Token, UserId = createdUser.UserId, Email = newUserData.email } ); return DetailedUserModelToDto(createdUser); } /// <summary> /// This will update a user account in the database and email an authorization token to the user /// if the email has changed. /// </summary> /// <param name="userId"></param> /// <param name="updateUserData">All of the information for the new user.</param> /// <param name="clientId"></param> /// <returns>Returns a UserDTO for the newly created user account.</returns> public async Task<DetailedUserTokenDTO> UpdateUserAsync(uint? userId, UserUpdateRequestDTO updateUserData, string clientId = null) { if (!userId.HasValue) throw new StandardExceptions.ImproperInputDataException("user id"); // Get current user data var originalUserInfo = await _userRepository.GetDetailedUserByIdAsync(GetCurrentUserId()); var resetActivation = updateUserData.email != null && originalUserInfo.Email != updateUserData.email; // Ask the repo to update the user (merge nul fields with the new request) await _userRepository.UpdateUserAsync( userId.Value, updateUserData.password, updateUserData.email ?? originalUserInfo.Email, resetActivation, updateUserData.forename ?? originalUserInfo.Forename, updateUserData.surname ?? originalUserInfo.Surname, updateUserData.organization ?? originalUserInfo.Organization ); // Get the updated user info DetailedUserWithToken updatedUserWithInfo; if (resetActivation) // Create activation token and send email notification { updatedUserWithInfo = await _userRepository.CreateUserActivateTokenAsync(updateUserData.email); // Email the user await SendAccountActivationEmail( new DetailedUserWithToken { Forename = updateUserData.forename, Surname = updateUserData.surname, Token = updatedUserWithInfo.Token, UserId = updatedUserWithInfo.UserId, Email = updateUserData.email } ); } else // Collect the updated account info { updatedUserWithInfo = await _userRepository.GetDetailedUserByIdAsync(GetCurrentUserId()); } return DetailedUserModelToDto(updatedUserWithInfo); } /// <summary> /// Confirms the registration of a new user via a secret authentication token, which /// was sent to the user's email address. /// </summary> /// <param name="token">Secret authentication token for user's new account</param> /// <param name="clientId"></param> /// <returns></returns> public async Task<NoContentResult> ConfirmUserRegistrationAsync(string token, string clientId = null) { var userInfo = await _userRepository.GetDetailedUserByTokenAsync(token); await _userRepository.ConfirmAccountCreationAsync(token); // TODO: Use Razor to format this and ad organization name. const string emailBody = @" <html><body>Dear $User,<br> <br> Congratulations! You have activated your Scripta Qumranica Electronica account. Login <a href=""$WebServer"">here</a> to begins using the system.<br> <br> Best wishes,<br> The Scripta Qumranica Electronica team</body></html>"; const string emailSubject = "Confirmation of your Scripta Qumranica Electronica account activation"; var name = !string.IsNullOrEmpty(userInfo.Forename) || !string.IsNullOrEmpty(userInfo.Surname) ? (userInfo.Forename + " " + userInfo.Surname).Trim() : userInfo.Email; await _emailSender.SendEmailAsync( userInfo.Email, emailSubject, emailBody.Replace("$User", name) .Replace("$WebServer", webServer) ); return new NoContentResult(); } /// <summary> /// Updates the email address for an account that has not yet been activated /// </summary> /// <param name="oldEmail">Email address that was originally entered when creating the account</param> /// <param name="newEmail">New email address to use for the account</param> /// <param name="clientId"></param> /// <returns></returns> public async Task<NoContentResult> UpdateUnactivatedAccountEmailAsync(string oldEmail, string newEmail, string clientId = null) { // Check if account is already activated await _userRepository.GetUnactivatedUserByEmailAsync(oldEmail); // Check for a conflicting email address and resolve if possible if (oldEmail != newEmail) await _userRepository.ResolveExistingUserConflictAsync(newEmail); await _userRepository.UpdateUnactivatedUserEmailAsync(oldEmail, newEmail); // Get the account info and send a new account activation email await ResendActivationEmail(newEmail); return new NoContentResult(); } /// <summary> /// Updates the email address for an account that has not yet been activated /// </summary> /// <param name="email">Email address that was originally entered when creating the account</param> /// <param name="clientId"></param> /// <returns></returns> public async Task<NoContentResult> ResendActivationEmail(string email, string clientId = null) { try { // Get the account info and send a new account activation email var userInfo = await _userRepository.GetUnactivatedUserByEmailAsync(email); await SendAccountActivationEmail(userInfo); } catch { // Rethrow error in development, otherwise the error is swallowed in production for security reasons. if (_env.IsDevelopment()) throw; } return new NoContentResult(); } /// <summary> /// Creates a token for validating a reset password request. The token is emailed to the user. /// </summary> /// <param name="email">Email address of the user who has requested reset of a forgotten password</param> /// <param name="clientId"></param> /// <returns></returns> public async Task<NoContentResult> RequestResetLostPasswordAsync(string email, string clientId = null) { try { var userInfo = await _userRepository.RequestResetForgottenPasswordAsync(email); if (userInfo == null) // Silently return on error return new NoContentResult(); // Email the user // TODO: Use Razor to format this and ad organization name. const string emailBody = @" <html><body>Dear $User,<br> <br> Sorry to hear that you have lost your password for Scripta Qumranica Electronica. You may reset your password <a href=""$WebServer/changeForgottenPassword/token/$Token"">by clicking here</a>.<br> <br> Best wishes,<br> The Scripta Qumranica Electronica team</body></html>"; const string emailSubject = "Lost password for your Scripta Qumranica Electronica account"; var name = !string.IsNullOrEmpty(userInfo.Forename) || !string.IsNullOrEmpty(userInfo.Surname) ? (userInfo.Forename + " " + userInfo.Surname).Trim() : userInfo.Email; await _emailSender.SendEmailAsync( email, emailSubject, emailBody.Replace("$User", name) .Replace("$Token", userInfo.Token) .Replace("$WebServer", webServer) ); } catch { // Rethrow error in development, otherwise the error is swallowed in production for security reasons. if (_env.IsDevelopment()) throw; } return new NoContentResult(); } /// <summary> /// Change password from old password to new password for the user's account. /// </summary> /// <param name="userId"></param> /// <param name="oldPassword">The old password for the user's account</param> /// <param name="newPassword">The new password for the user's account</param> /// <param name="clientId"></param> /// <returns></returns> public async Task<NoContentResult> ChangePasswordAsync(uint? userId, string oldPassword, string newPassword, string clientId = null) { if (!userId.HasValue) throw new StandardExceptions.ImproperInputDataException("user id"); await _userRepository.ChangePasswordAsync(userId.Value, oldPassword, newPassword); return new NoContentResult(); } /// <summary> /// Resets the password for a user's account; the request is verified by a secret token /// that was emailed to the user. /// </summary> /// <param name="token">Secret token for validating change password request.</param> /// <param name="password">New password for the user's account</param> /// <param name="clientId"></param> /// <returns></returns> public async Task<NoContentResult> ResetLostPasswordAsync(string token, string password, string clientId = null) { var userInfo = await _userRepository.ResetForgottenPasswordAsync(token, password); // TODO: Use Razor to format this and ad organization name. const string emailBody = @" <html><body>Dear $User,<br> <br> You have recently changed your password for Scripta Qumranica Electronica. If you feel you have received this email in error, please contact the project administrator.<br> <br> Best wishes,<br> The Scripta Qumranica Electronica team</body></html>"; const string emailSubject = "Reset password for your Scripta Qumranica Electronica account"; var name = !string.IsNullOrEmpty(userInfo.Forename) || !string.IsNullOrEmpty(userInfo.Surname) ? (userInfo.Forename + " " + userInfo.Surname).Trim() : userInfo.Email; await _emailSender.SendEmailAsync( userInfo.Email, emailSubject, emailBody.Replace("$User", name) ); return new NoContentResult(); } /// <summary> /// This returns a UserInfo object that will persist only for the life of the current /// HTTP request. The UserInfo object can fetch the permissions if requested, and once /// the permissions have been requested, they are "cached" for the life of the object. /// </summary> /// <param name="editionId">Id of the edition the user will be accessing</param> /// <param name="write">Whether the user must have write access</param> /// <param name="locking">Whether the user must have locking access</param> /// <param name="admin">Whether the user must have admin access</param> /// <returns></returns> public async Task<EditionUserInfo> GetCurrentUserObjectAsync(uint editionId, bool write = false, bool locking = false, bool admin = false) { var access = new EditionAccessLevels(true, write, locking, admin); var user = new EditionUserInfo(GetCurrentUserId(), editionId, _userRepository); await user.ReadPermissions(); // Immediately reject requests without proper permissions if (access.Read && !user.MayRead) throw new StandardExceptions.NoReadPermissionsException(user); if (access.Write && !user.MayWrite) throw new StandardExceptions.NoWritePermissionsException(user); if (access.Locking && !user.MayLock) throw new StandardExceptions.NoLockPermissionsException(user); if (access.Admin && !user.IsAdmin) throw new StandardExceptions.NoAdminPermissionsException(user); return user; } /// <summary> /// Constructs a unique, encrypted JWT for a user account. /// </summary> /// <param name="email"></param> /// <param name="userId">The user's user id</param> /// <returns>Returns a JWT string</returns> private string BuildUserToken(string email, uint userId) { var tokenHandler = new JwtSecurityTokenHandler(); var key = Encoding.ASCII.GetBytes(_appSettings.Secret); var tokenDescriptor = new SecurityTokenDescriptor { Subject = new ClaimsIdentity( new[] { new Claim(ClaimTypes.Name, email), new Claim(ClaimTypes.NameIdentifier, userId.ToString()) } ), Expires = DateTime.UtcNow.AddDays(7), SigningCredentials = new SigningCredentials( new SymmetricSecurityKey(key), SecurityAlgorithms.HmacSha256Signature ) }; var token = tokenHandler.CreateToken(tokenDescriptor); return tokenHandler.WriteToken(token); } private async Task SendAccountActivationEmail(DetailedUserWithToken userWithInfo) { // TODO: Add link to web endpoint when we know what that is. Use Razor to format this and ad organization name. const string emailBody = @" <html><body>Dear $User,<br> <br> Thank you for registering with the Scripta Qumranica Electronica research platform. <a href=""$WebServer/activateUser/token/$Token"">Click here</a> to activate your new account.<br> <br> Best wishes,<br> The Scripta Qumranica Electronica team</body></html>"; const string emailSubject = "Activation of your Scripta Qumranica Electronica account"; var name = !string.IsNullOrEmpty(userWithInfo.Forename) || !string.IsNullOrEmpty(userWithInfo.Surname) ? (userWithInfo.Forename + " " + userWithInfo.Surname).Trim() : userWithInfo.Email; await _emailSender.SendEmailAsync( userWithInfo.Email, emailSubject, emailBody.Replace("$User", name) .Replace("$WebServer", webServer) .Replace("$Token", userWithInfo.Token) ); } /// <summary> /// Packages a DetailedUser as a DTO to send back to the client. /// </summary> /// <param name="model"></param> /// <returns></returns> private static DetailedUserTokenDTO DetailedUserModelToDto(DetailedUserWithToken model) { return new DetailedUserTokenDTO { userId = model.UserId, email = model.Email, forename = model.Forename, surname = model.Surname, organization = model.Organization, activated = model.Activated }; } /// <summary> /// Packages a DetailedUser as a DTO to send back to the client. /// </summary> /// <param name="model"></param> /// <returns></returns> public static UserDTO UserModelToDto(User model) { return new UserDTO { userId = model.UserId, email = model.Email }; } } public class EditionAccessLevels { public EditionAccessLevels(bool read = true, bool write = false, bool locking = false, bool admin = false) { Read = read; Write = write; Locking = locking; Admin = admin; } public bool Read { get; } public bool Write { get; } public bool Locking { get; } public bool Admin { get; } } }
42.34955
123
0.596707
[ "MIT" ]
Scripta-Qumranica-Electronica/SQE_API
sqe-api-server/Services/UserService.cs
23,504
C#
#pragma warning disable 108 // new keyword hiding #pragma warning disable 114 // new keyword hiding namespace Windows.UI.Notifications { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ #if __ANDROID__ || __IOS__ || NET46 || __WASM__ [global::Uno.NotImplemented] #endif public enum TileFlyoutTemplateType { #if __ANDROID__ || __IOS__ || NET46 || __WASM__ TileFlyoutTemplate01, #endif } #endif }
24.176471
49
0.725061
[ "Apache-2.0" ]
nv-ksavaria/Uno
src/Uno.UWP/Generated/3.0.0.0/Windows.UI.Notifications/TileFlyoutTemplateType.cs
411
C#
namespace BrewHelper.Authentication { public class HttpActionContext { } }
14.5
36
0.701149
[ "Apache-2.0" ]
TheMerski/BrewHelper
BrewHelper/BrewHelper/Authentication/HttpActionContext.cs
89
C#
// Deployment Framework for BizTalk // Copyright (C) 2008-14 Thomas F. Abraham, 2004-08 Scott Colestock // This source file is subject to the Microsoft Public License (Ms-PL). // See http://www.opensource.org/licenses/ms-pl.html. // All other rights reserved. using System; using System.Collections.Generic; using System.Text; using System.Diagnostics; namespace DeploymentFramework.UacElevate { class Program { static void Main(string[] args) { if (args.Length < 1) { Console.WriteLine("Usage: UacElevate.exe <executable> <arguments>"); return; } Process.Start(args[0], args.Length > 1 ? args[1] : null); } } }
26.142857
84
0.620219
[ "MIT" ]
BTDF/BTDF
src/btdf/Tools/UacElevate/Program.cs
734
C#
namespace advisor.Model { public enum Direction { North = 1, Northeast = 2, Southeast = 3, South = 4, Southwest = 5, Northwest = 6 } }
15.916667
27
0.481675
[ "MIT" ]
gelzis/atlantis-economy-adivsor
server/Model/Direction.cs
191
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by a tool. // Runtime Version:4.0.30319.17626 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ namespace GraphToDSCompiler.Properties { [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); public static Settings Default { get { return defaultInstance; } } } }
35.548387
152
0.568058
[ "Apache-2.0" ]
DynamoDS/designscript-archive
Core/GraphToDSCompiler/Properties/Settings.Designer.cs
1,104
C#
using System; using System.Collections.Generic; namespace OrganizationRegister.Application.User { public interface IUserService { Guid AddUser(Guid roleId, Guid organizationId, string emailAddress, string password, string lastName, string firstName, string phoneNumber); void SetUser(Guid id, Guid roleId, Guid organizationId, string emailAddress, string password, string lastName, string firstName, string phoneNumber); IEnumerable<IRole> GetRoles(); IEnumerable<IUserListItem> GetInternalUsers(Guid organizationId); IUser GetUser(Guid userId); bool IsExistingUser(string emailAddress); bool ValidatePasswordStrength(string password); void DeleteUser(Guid userId); } }
41.555556
157
0.744652
[ "MIT" ]
City-of-Helsinki/organisaatiorekisteri
Source/OrganizationRegister.Application/User/IUserService.cs
750
C#
using System; using SolAR.Api.Pipeline; using SolAR.Api.Sink; using SolAR.Api.Source; using SolAR.Core; using SolAR.Datastructure; using SolAR.Pipeline; using UnityEngine; using XPCF.Api; namespace SolAR.Expert { public class SolARPluginPipelineManagerExpert : ISolARPluginPipelineManager { IPoseEstimationPipeline m_pipeline; public SolARPluginPipelineManagerExpert() { //LOG_INFO("Pipeline Manager Constructor"); } public void Dispose() { xpcf_api.getComponentManagerInstance().clear(); } public bool init(string conf_path) { //LOG_INFO("Start PipelineManager.init") //LOG_FLUSH var xpcfComponentManager = xpcf_api.getComponentManagerInstance(); bool load_ok = false; //LOG_INFO("conf_path : {}", conf_path.c_str()) try { if (xpcfComponentManager.load(conf_path) == XPCF.Core.XPCFErrorCode._SUCCESS) load_ok = true; } catch (System.Exception exception) { Debug.LogError(exception.Message); return false; } if (!load_ok) return false; m_pipeline = xpcfComponentManager.Resolve<IPoseEstimationPipeline>().BindTo<IPoseEstimationPipeline>(); if (m_pipeline == null) return false; return m_pipeline.init(xpcfComponentManager) == FrameworkReturnCode._SUCCESS; } public CameraParameters getCameraParameters() { return m_pipeline.getCameraParameters(); } public PIPELINEMANAGER_RETURNCODE loadSourceImage(IntPtr sourceTextureHandle, int width, int height) { if (m_pipeline == null) return PIPELINEMANAGER_RETURNCODE._ERROR; SourceReturnCode returnCode = m_pipeline.loadSourceImage(sourceTextureHandle, width, height); if (returnCode == SourceReturnCode._ERROR) return PIPELINEMANAGER_RETURNCODE._ERROR; return PIPELINEMANAGER_RETURNCODE._NEW_IMAGE; } public bool start(IntPtr textureHandle) { if (m_pipeline == null) return false; return (m_pipeline.start(textureHandle) == FrameworkReturnCode._SUCCESS); } public PIPELINEMANAGER_RETURNCODE udpate(Transform3Df pose) { if (m_pipeline == null) return PIPELINEMANAGER_RETURNCODE._ERROR; SinkReturnCode returnCode = m_pipeline.update(pose); if (returnCode == SinkReturnCode._ERROR) return PIPELINEMANAGER_RETURNCODE._ERROR; if (returnCode == SinkReturnCode._NEW_POSE) return PIPELINEMANAGER_RETURNCODE._NEW_POSE; if (returnCode == SinkReturnCode._NEW_POSE_AND_IMAGE) return PIPELINEMANAGER_RETURNCODE._NEW_POSE_AND_IMAGE; if (returnCode == SinkReturnCode._NEW_IMAGE) return PIPELINEMANAGER_RETURNCODE._NEW_IMAGE; return PIPELINEMANAGER_RETURNCODE._NOTHING; } public void udpatePose(IntPtr pose) { if (m_pipeline == null) return; Transform3Df solarPose = new Transform3Df(); SinkReturnCode returnCode = m_pipeline.update(solarPose); if (returnCode == SinkReturnCode._ERROR) return; if ((returnCode & SinkReturnCode._NEW_POSE) != SinkReturnCode._NOTHING) { //std.cout << " new pose \n"; //float* tmp2 = solarPose.matrix().data(); //float* tmp1 = (float*)pose; //for (int i = 0; i < 16; i++) // tmp1[i] = tmp2[i]; //TODO: Copy solarPose dans pose return; } // std.cout <<" no new pose \n"; // return false if the pose has not been updated // TODO : return a more explicit returnCode to make the difference beteen "Error" and "Pose not updated" return; } public bool stop() { if (m_pipeline != null) { return (m_pipeline.stop() == FrameworkReturnCode._SUCCESS); } return true; } } }
33.284672
117
0.558991
[ "Apache-2.0" ]
SolarFramework/SolARUnityPlugin
Assets/SolAR/Scripts/Expert/SolARPluginPipelineManagerExpert.cs
4,562
C#
using Avalonia.Controls; using Avalonia.Markup.Xaml; using Avalonia.Media; using Cirilla.MVVM.ViewModels; namespace Cirilla.Avalonia.Views { public class GmdEditView : UserControl { private DataGrid dataGrid => this.FindControl<DataGrid>("dataGrid"); private SolidColorBrush invalidMessageBrush = new SolidColorBrush(0x33ffff00); private SolidColorBrush emptyKeyBrush = new SolidColorBrush(0x66ff0000); public GmdEditView() { InitializeComponent(); dataGrid.LoadingRow += DataGrid_LoadingRow; } private void DataGrid_LoadingRow(object? sender, DataGridRowEventArgs e) { if (e.Row.DataContext is GmdEntryViewModel entry) { // HACK: Hardcoded values if (entry.Key == null) e.Row.Background = emptyKeyBrush; else if (entry.Value == "Invalid Message") e.Row.Background = invalidMessageBrush; } } private void InitializeComponent() { AvaloniaXamlLoader.Load(this); } } }
29.973684
86
0.60755
[ "MIT" ]
Fusion86/Cirilla
src/Cirilla.Avalonia/Views/GmdEditView.axaml.cs
1,141
C#
using Microsoft.Extensions.DependencyInjection; namespace bright.Gitlab { public static class GitlabExtensions { public static void AddGitlab(this IServiceCollection services) { services.AddSingleton<GitlabInstanceGate>(); } } }
23.083333
70
0.685921
[ "Apache-2.0" ]
kucheruk/bright
Gitlab/GitlabExtensions.cs
277
C#
using System; using System.Diagnostics.CodeAnalysis; namespace BooruDotNet { internal static class Error { internal static void If<T>([DoesNotReturnIf(true)] bool condition, params object?[]? ctorArgs) where T : Exception { if (condition) { throw (T)Activator.CreateInstance(typeof(T), ctorArgs)!; } } internal static void IfNot<T>([DoesNotReturnIf(false)] bool condition, params object?[]? ctorArgs) where T : Exception { If<T>(!condition, ctorArgs); } } }
26.590909
126
0.588034
[ "MIT" ]
n-ski/BooruDotNet
src/BooruDotNet/Error.cs
587
C#
/* * Wirk * * <p>API for api.wirk.io</p> * * OpenAPI spec version: 1.0.0 * Contact: contact@wirk.io * Generated by: https://github.com/swagger-api/swagger-codegen.git * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ using System; using System.Linq; using System.IO; using System.Text; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; namespace Io.Wirk.Api.Wirk.Model { /// <summary> /// Model for AppProject Get /// </summary> [DataContract] public partial class AppProjectReaderServiceModel : IEquatable<AppProjectReaderServiceModel> { /// <summary> /// Initializes a new instance of the <see cref="AppProjectReaderServiceModel" /> class. /// </summary> [JsonConstructorAttribute] protected AppProjectReaderServiceModel() { } /// <summary> /// Initializes a new instance of the <see cref="AppProjectReaderServiceModel" /> class. /// </summary> /// <param name="AppName">AppName (required).</param> /// <param name="AppProjectState">AppProjectState.</param> /// <param name="CreationDate">CreationDate.</param> /// <param name="Credit">Credit.</param> /// <param name="IdApp">IdApp.</param> /// <param name="IdAppProject">IdAppProject.</param> /// <param name="IdQuality">IdQuality.</param> /// <param name="Instruction">Instruction.</param> /// <param name="NbTaskClosed">NbTaskClosed.</param> /// <param name="NbTotalTask">NbTotalTask.</param> /// <param name="QualityName">QualityName.</param> /// <param name="QuestionOptions">QuestionOptions.</param> /// <param name="Title">Title.</param> /// <param name="UrlNotification">UrlNotification.</param> public AppProjectReaderServiceModel(string AppName = null, string AppProjectState = null, DateTime? CreationDate = null, int? Credit = null, int? IdApp = null, int? IdAppProject = null, int? IdQuality = null, string Instruction = null, int? NbTaskClosed = null, int? NbTotalTask = null, string QualityName = null, List<string> QuestionOptions = null, string Title = null, string UrlNotification = null) { // to ensure "AppName" is required (not null) if (AppName == null) { throw new InvalidDataException("AppName is a required property for AppProjectReaderServiceModel and cannot be null"); } else { this.AppName = AppName; } this.AppProjectState = AppProjectState; this.CreationDate = CreationDate; this.Credit = Credit; this.IdApp = IdApp; this.IdAppProject = IdAppProject; this.IdQuality = IdQuality; this.Instruction = Instruction; this.NbTaskClosed = NbTaskClosed; this.NbTotalTask = NbTotalTask; this.QualityName = QualityName; this.QuestionOptions = QuestionOptions; this.Title = Title; this.UrlNotification = UrlNotification; } /// <summary> /// Gets or Sets AppName /// </summary> [DataMember(Name="AppName", EmitDefaultValue=false)] public string AppName { get; set; } /// <summary> /// Gets or Sets AppProjectState /// </summary> [DataMember(Name="AppProjectState", EmitDefaultValue=false)] public string AppProjectState { get; set; } /// <summary> /// Gets or Sets CreationDate /// </summary> [DataMember(Name="CreationDate", EmitDefaultValue=false)] public DateTime? CreationDate { get; set; } /// <summary> /// Gets or Sets Credit /// </summary> [DataMember(Name="Credit", EmitDefaultValue=false)] public int? Credit { get; set; } /// <summary> /// Gets or Sets IdApp /// </summary> [DataMember(Name="IdApp", EmitDefaultValue=false)] public int? IdApp { get; set; } /// <summary> /// Gets or Sets IdAppProject /// </summary> [DataMember(Name="IdAppProject", EmitDefaultValue=false)] public int? IdAppProject { get; set; } /// <summary> /// Gets or Sets IdQuality /// </summary> [DataMember(Name="IdQuality", EmitDefaultValue=false)] public int? IdQuality { get; set; } /// <summary> /// Gets or Sets Instruction /// </summary> [DataMember(Name="Instruction", EmitDefaultValue=false)] public string Instruction { get; set; } /// <summary> /// Gets or Sets NbTaskClosed /// </summary> [DataMember(Name="NbTaskClosed", EmitDefaultValue=false)] public int? NbTaskClosed { get; set; } /// <summary> /// Gets or Sets NbTotalTask /// </summary> [DataMember(Name="NbTotalTask", EmitDefaultValue=false)] public int? NbTotalTask { get; set; } /// <summary> /// Gets or Sets QualityName /// </summary> [DataMember(Name="QualityName", EmitDefaultValue=false)] public string QualityName { get; set; } /// <summary> /// Gets or Sets QuestionOptions /// </summary> [DataMember(Name="QuestionOptions", EmitDefaultValue=false)] public List<string> QuestionOptions { get; set; } /// <summary> /// Gets or Sets Title /// </summary> [DataMember(Name="Title", EmitDefaultValue=false)] public string Title { get; set; } /// <summary> /// Gets or Sets UrlNotification /// </summary> [DataMember(Name="UrlNotification", EmitDefaultValue=false)] public string UrlNotification { get; set; } /// <summary> /// Returns the string presentation of the object /// </summary> /// <returns>String presentation of the object</returns> public override string ToString() { var sb = new StringBuilder(); sb.Append("class AppProjectReaderServiceModel {\n"); sb.Append(" AppName: ").Append(AppName).Append("\n"); sb.Append(" AppProjectState: ").Append(AppProjectState).Append("\n"); sb.Append(" CreationDate: ").Append(CreationDate).Append("\n"); sb.Append(" Credit: ").Append(Credit).Append("\n"); sb.Append(" IdApp: ").Append(IdApp).Append("\n"); sb.Append(" IdAppProject: ").Append(IdAppProject).Append("\n"); sb.Append(" IdQuality: ").Append(IdQuality).Append("\n"); sb.Append(" Instruction: ").Append(Instruction).Append("\n"); sb.Append(" NbTaskClosed: ").Append(NbTaskClosed).Append("\n"); sb.Append(" NbTotalTask: ").Append(NbTotalTask).Append("\n"); sb.Append(" QualityName: ").Append(QualityName).Append("\n"); sb.Append(" QuestionOptions: ").Append(QuestionOptions).Append("\n"); sb.Append(" Title: ").Append(Title).Append("\n"); sb.Append(" UrlNotification: ").Append(UrlNotification).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// <summary> /// Returns the JSON string presentation of the object /// </summary> /// <returns>JSON string presentation of the object</returns> public string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// <summary> /// Returns true if objects are equal /// </summary> /// <param name="obj">Object to be compared</param> /// <returns>Boolean</returns> public override bool Equals(object obj) { // credit: http://stackoverflow.com/a/10454552/677735 return this.Equals(obj as AppProjectReaderServiceModel); } /// <summary> /// Returns true if AppProjectReaderServiceModel instances are equal /// </summary> /// <param name="other">Instance of AppProjectReaderServiceModel to be compared</param> /// <returns>Boolean</returns> public bool Equals(AppProjectReaderServiceModel other) { // credit: http://stackoverflow.com/a/10454552/677735 if (other == null) return false; return ( this.AppName == other.AppName || this.AppName != null && this.AppName.Equals(other.AppName) ) && ( this.AppProjectState == other.AppProjectState || this.AppProjectState != null && this.AppProjectState.Equals(other.AppProjectState) ) && ( this.CreationDate == other.CreationDate || this.CreationDate != null && this.CreationDate.Equals(other.CreationDate) ) && ( this.Credit == other.Credit || this.Credit != null && this.Credit.Equals(other.Credit) ) && ( this.IdApp == other.IdApp || this.IdApp != null && this.IdApp.Equals(other.IdApp) ) && ( this.IdAppProject == other.IdAppProject || this.IdAppProject != null && this.IdAppProject.Equals(other.IdAppProject) ) && ( this.IdQuality == other.IdQuality || this.IdQuality != null && this.IdQuality.Equals(other.IdQuality) ) && ( this.Instruction == other.Instruction || this.Instruction != null && this.Instruction.Equals(other.Instruction) ) && ( this.NbTaskClosed == other.NbTaskClosed || this.NbTaskClosed != null && this.NbTaskClosed.Equals(other.NbTaskClosed) ) && ( this.NbTotalTask == other.NbTotalTask || this.NbTotalTask != null && this.NbTotalTask.Equals(other.NbTotalTask) ) && ( this.QualityName == other.QualityName || this.QualityName != null && this.QualityName.Equals(other.QualityName) ) && ( this.QuestionOptions == other.QuestionOptions || this.QuestionOptions != null && this.QuestionOptions.SequenceEqual(other.QuestionOptions) ) && ( this.Title == other.Title || this.Title != null && this.Title.Equals(other.Title) ) && ( this.UrlNotification == other.UrlNotification || this.UrlNotification != null && this.UrlNotification.Equals(other.UrlNotification) ); } /// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { // credit: http://stackoverflow.com/a/263416/677735 unchecked // Overflow is fine, just wrap { int hash = 41; // Suitable nullity checks etc, of course :) if (this.AppName != null) hash = hash * 59 + this.AppName.GetHashCode(); if (this.AppProjectState != null) hash = hash * 59 + this.AppProjectState.GetHashCode(); if (this.CreationDate != null) hash = hash * 59 + this.CreationDate.GetHashCode(); if (this.Credit != null) hash = hash * 59 + this.Credit.GetHashCode(); if (this.IdApp != null) hash = hash * 59 + this.IdApp.GetHashCode(); if (this.IdAppProject != null) hash = hash * 59 + this.IdAppProject.GetHashCode(); if (this.IdQuality != null) hash = hash * 59 + this.IdQuality.GetHashCode(); if (this.Instruction != null) hash = hash * 59 + this.Instruction.GetHashCode(); if (this.NbTaskClosed != null) hash = hash * 59 + this.NbTaskClosed.GetHashCode(); if (this.NbTotalTask != null) hash = hash * 59 + this.NbTotalTask.GetHashCode(); if (this.QualityName != null) hash = hash * 59 + this.QualityName.GetHashCode(); if (this.QuestionOptions != null) hash = hash * 59 + this.QuestionOptions.GetHashCode(); if (this.Title != null) hash = hash * 59 + this.Title.GetHashCode(); if (this.UrlNotification != null) hash = hash * 59 + this.UrlNotification.GetHashCode(); return hash; } } } }
42.092537
410
0.537338
[ "Apache-2.0" ]
Wirk-io/Wirk-csharp
src/Io.Wirk.Api.Wirk/Model/AppProjectReaderServiceModel.cs
14,101
C#
using System; using System.Collections.Generic; using System.Data; using System.Data.SqlClient; using System.Linq; using Chinook.Domain.DbInfo; using Chinook.Domain.Repositories; using Chinook.Domain.Entities; using Dapper; using Dapper.Contrib.Extensions; namespace Chinook.DataDapper.Repositories { public class ArtistRepository : IArtistRepository { private readonly DbInfo _dbInfo; public ArtistRepository(DbInfo dbInfo) { _dbInfo = dbInfo; } private IDbConnection Connection => new SqlConnection(_dbInfo.ConnectionStrings); public void Dispose() { } private bool ArtistExists(int id) => Connection.ExecuteScalar<bool>("select count(1) from Artist where ArtistId = @id", new {id}); public List<Artist> GetAll() { using (IDbConnection cn = Connection) { cn.Open(); var artists = Connection.Query<Artist>("Select * From Artist"); return artists.ToList(); } } public Artist GetById(int id) { using (var cn = Connection) { cn.Open(); return cn.QueryFirstOrDefault<Artist>("Select * From Artist WHERE Id = @Id", new {id}); } } public Artist Add(Artist newArtist) { using (var cn = Connection) { cn.Open(); newArtist.ArtistId = (int) cn.Insert(new Artist {Name = newArtist.Name}); } return newArtist; } public bool Update(Artist artist) { if (!ArtistExists(artist.ArtistId)) return false; try { using (var cn = Connection) { cn.Open(); return cn.Update(artist); } } catch(Exception) { return false; } } public bool Delete(int id) { try { using (var cn = Connection) { cn.Open(); return cn.Delete(new Artist {ArtistId = id}); } } catch(Exception) { return false; } } } }
24.69697
105
0.476483
[ "MIT" ]
cwoodruff/ChinookASPNETCore3APINTierDapper
ChinookASPNETCore3APINTierDapper/Chinook.DataDapper/Repositories/ArtistRepository.cs
2,447
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Linq; using System.Threading.Tasks; using Microsoft.AspNetCore.Razor.Language; using Microsoft.CodeAnalysis.Text; using Xunit; namespace Microsoft.CodeAnalysis.Razor.ProjectSystem { public class GeneratedDocumentContainerTest : RazorProjectEngineTestBase { protected override RazorLanguageVersion Version => RazorLanguageVersion.Latest; [Fact] public void SetOutput_AcceptsSameVersionedDocuments() { // Arrange var services = TestWorkspace.Create().Services; var hostProject = new HostProject("C:/project.csproj", RazorConfiguration.Default, "project"); var projectState = ProjectState.Create(services, hostProject); var project = new DefaultProjectSnapshot(projectState); var text = SourceText.From("..."); var textAndVersion = TextAndVersion.Create(text, VersionStamp.Default); var hostDocument = new HostDocument("C:/file.cshtml", "C:/file.cshtml"); var documentState = new DocumentState(services, hostDocument, text, VersionStamp.Default, () => Task.FromResult(textAndVersion)); var document = new DefaultDocumentSnapshot(project, documentState); var newDocument = new DefaultDocumentSnapshot(project, documentState); var csharpDocument = RazorCSharpDocument.Create("...", RazorCodeGenerationOptions.CreateDefault(), Enumerable.Empty<RazorDiagnostic>()); var htmlDocument = RazorHtmlDocument.Create("...", RazorCodeGenerationOptions.CreateDefault()); var version = VersionStamp.Create(); var container = new GeneratedDocumentContainer(); container.SetOutput(document, csharpDocument, htmlDocument, version, version, version); // Act container.SetOutput(newDocument, csharpDocument, htmlDocument, version, version, version); // Assert Assert.Same(newDocument, container.LatestDocument); } [Fact] public void SetOutput_AcceptsInitialOutput() { // Arrange var services = TestWorkspace.Create().Services; var hostProject = new HostProject("C:/project.csproj", RazorConfiguration.Default, "project"); var projectState = ProjectState.Create(services, hostProject); var project = new DefaultProjectSnapshot(projectState); var text = SourceText.From("..."); var textAndVersion = TextAndVersion.Create(text, VersionStamp.Default); var hostDocument = new HostDocument("C:/file.cshtml", "C:/file.cshtml"); var documentState = new DocumentState(services, hostDocument, text, VersionStamp.Default, () => Task.FromResult(textAndVersion)); var document = new DefaultDocumentSnapshot(project, documentState); var csharpDocument = RazorCSharpDocument.Create("...", RazorCodeGenerationOptions.CreateDefault(), Enumerable.Empty<RazorDiagnostic>()); var htmlDocument = RazorHtmlDocument.Create("...", RazorCodeGenerationOptions.CreateDefault()); var version = VersionStamp.Create(); var container = new GeneratedDocumentContainer(); // Act container.SetOutput(document, csharpDocument, htmlDocument, version, version, version); // Assert Assert.NotNull(container.LatestDocument); } [Fact] public void SetOutput_InvokesChangedEvent() { // Arrange var services = TestWorkspace.Create().Services; var hostProject = new HostProject("C:/project.csproj", RazorConfiguration.Default, "project"); var projectState = ProjectState.Create(services, hostProject); var project = new DefaultProjectSnapshot(projectState); var text = SourceText.From("..."); var textAndVersion = TextAndVersion.Create(text, VersionStamp.Default); var hostDocument = new HostDocument("C:/file.cshtml", "C:/file.cshtml"); var documentState = new DocumentState(services, hostDocument, text, VersionStamp.Default, () => Task.FromResult(textAndVersion)); var document = new DefaultDocumentSnapshot(project, documentState); var csharpDocument = RazorCSharpDocument.Create("...", RazorCodeGenerationOptions.CreateDefault(), Enumerable.Empty<RazorDiagnostic>()); var htmlDocument = RazorHtmlDocument.Create("...", RazorCodeGenerationOptions.CreateDefault()); var version = VersionStamp.Create(); var container = new GeneratedDocumentContainer(); var csharpChanged = false; var htmlChanged = false; container.GeneratedCSharpChanged += (o, a) => { csharpChanged = true; }; container.GeneratedHtmlChanged += (o, a) => { htmlChanged = true; }; // Act container.SetOutput(document, csharpDocument, htmlDocument, version, version, version); // Assert Assert.NotNull(container.LatestDocument); Assert.True(csharpChanged); Assert.True(htmlChanged); } } }
50
148
0.663925
[ "Apache-2.0" ]
devlead/aspnetcore-tooling
src/Razor/test/Microsoft.CodeAnalysis.Razor.Workspaces.Test/ProjectSystem/GeneratedDocumentContainerTest.cs
5,352
C#
// <copyright file="ServiceBusQueue.cs" company="Microsoft"> // Copyright (c) Microsoft. All rights reserved. // </copyright> namespace SocialPlus.Server.Messaging { using System; using System.Collections.Generic; using System.Reflection; using System.Threading.Tasks; using Microsoft.ServiceBus; using Microsoft.ServiceBus.Messaging; /// <summary> /// Service bus queue class /// </summary> public class ServiceBusQueue { /// <summary> /// Message type property name /// </summary> private readonly string messageTypePropertyName = "messageType"; /// <summary> /// Suffix for the dead letter queue name /// </summary> private readonly string deadLetterQueueSuffix = "/$DeadLetterQueue"; /// <summary> /// Namespace manager /// </summary> private readonly NamespaceManager nsManager; /// <summary> /// Connection string to Service bus queue /// </summary> private readonly string connectionString; /// <summary> /// Queue name /// </summary> private string queueName; /// <summary> /// Client-side batching interval in milliseconds /// </summary> private int batchIntervalMs; /// <summary> /// Queue client /// </summary> private QueueClient queueClient; /// <summary> /// Dead letter queue client /// </summary> private QueueClient deadLetterQueueClient; /// <summary> /// Initialization task for work not performed in the constructor /// </summary> private Task initialization; /// <summary> /// Initializes a new instance of the <see cref="ServiceBusQueue"/> class /// </summary> /// <param name="connectionString">Service bus connection string</param> /// <param name="queueName">Queue name</param> /// <param name="batchIntervalMs">Client-side batching interval, in milliseconds</param> private ServiceBusQueue(string connectionString, string queueName, int batchIntervalMs) { this.connectionString = connectionString; this.queueName = queueName; this.batchIntervalMs = batchIntervalMs; this.nsManager = NamespaceManager.CreateFromConnectionString(this.connectionString); } /// <summary> /// Static factory method ensures that async init is completed before the service bus queue object /// is available to clients /// </summary> /// <param name="connectionString">Service bus connection string</param> /// <param name="queueName">Queue name</param> /// <param name="batchIntervalMs">Client-side batching interval, in milliseconds</param> /// <returns>An initialized service bus queue</returns> public static async Task<ServiceBusQueue> Create(string connectionString, string queueName, int batchIntervalMs) { var sbq = new ServiceBusQueue(connectionString, queueName, batchIntervalMs); sbq.initialization = sbq.InitializeAsync(); await sbq.initialization; return sbq; } /// <summary> /// Gets the number of active messages in the queue /// </summary> /// <returns>number of active messages in the queue</returns> public async Task<long> MessageCount() { var queue = await this.nsManager.GetQueueAsync(this.queueName); return queue.MessageCountDetails.ActiveMessageCount; } /// <summary> /// Gets the number of messages in the dead letter queue /// </summary> /// <returns>number of messages in the dead letter queue</returns> public async Task<long> DeadLetterMessageCount() { var queue = await this.nsManager.GetQueueAsync(this.queueName); return queue.MessageCountDetails.DeadLetterMessageCount; } /// <summary> /// Send message async /// </summary> /// <param name="message">Queue message</param> /// <param name="delay">Initial visibility delay</param> /// <returns>Send async task</returns> public async Task SendAsync(QueueMessage message, TimeSpan? delay = null) { if (message == null) { throw new ArgumentNullException("message"); } if (this.queueClient.IsClosed) { await this.CreateQueueClient(); } BrokeredMessage brokeredMessage = new BrokeredMessage(message); if (delay.HasValue) { brokeredMessage.ScheduledEnqueueTimeUtc = DateTime.UtcNow.Add(delay.Value); } brokeredMessage.Properties[this.messageTypePropertyName] = message.GetType().AssemblyQualifiedName; await this.queueClient.SendAsync(brokeredMessage); } /// <summary> /// Receive message async /// </summary> /// <returns>Queue message</returns> public async Task<IQueueMessage> ReceiveAsync() { if (this.queueClient.IsClosed) { await this.CreateQueueClient(); } var brokeredMessage = await this.queueClient.ReceiveAsync(); return this.GetQueueMessage(brokeredMessage); } /// <summary> /// Receive messages in a batch /// </summary> /// <param name="count">Count of messages</param> /// <returns>Queue messages</returns> public async Task<IList<IQueueMessage>> ReceiveBatchAsync(int count) { if (this.queueClient.IsClosed) { await this.CreateQueueClient(); } var brokeredMessages = await this.queueClient.ReceiveBatchAsync(count); List<IQueueMessage> queueMessages = new List<IQueueMessage>(); foreach (var brokeredMessage in brokeredMessages) { QueueMessage queueMessage = this.GetQueueMessage(brokeredMessage); if (queueMessage != null) { queueMessages.Add(queueMessage); } } return queueMessages; } /// <summary> /// Receive dead letter messages in a batch /// </summary> /// <param name="count">Count of messages</param> /// <returns>Queue messages</returns> public async Task<IList<IQueueMessage>> ReceiveDeadLetterBatchAsync(int count) { if (this.deadLetterQueueClient.IsClosed) { await this.CreateDeadLetterQueueClient(); } var brokeredMessages = await this.deadLetterQueueClient.ReceiveBatchAsync(count); List<IQueueMessage> queueMessages = new List<IQueueMessage>(); foreach (var brokeredMessage in brokeredMessages) { QueueMessage queueMessage = this.GetQueueMessage(brokeredMessage); if (queueMessage != null) { queueMessages.Add(queueMessage); } } return queueMessages; } /// <summary> /// Peek messages in a batch /// </summary> /// <param name="count">Count of messages</param> /// <returns>Queue messages</returns> public async Task<IList<IQueueMessage>> PeekBatchAsync(int count) { if (this.queueClient.IsClosed) { await this.CreateQueueClient(); } var brokeredMessages = await this.queueClient.PeekBatchAsync(count); List<IQueueMessage> queueMessages = new List<IQueueMessage>(); foreach (var brokeredMessage in brokeredMessages) { QueueMessage queueMessage = this.GetQueueMessage(brokeredMessage); if (queueMessage != null) { queueMessages.Add(queueMessage); } } return queueMessages; } /// <summary> /// Peek dead letter messages in a batch /// </summary> /// <param name="count">Count of messages</param> /// <returns>Queue messages</returns> public async Task<IList<IQueueMessage>> PeekDeadLetterBatchAsync(int count) { if (this.deadLetterQueueClient.IsClosed) { await this.CreateDeadLetterQueueClient(); } var brokeredMessages = await this.deadLetterQueueClient.PeekBatchAsync(count); List<IQueueMessage> queueMessages = new List<IQueueMessage>(); foreach (var brokeredMessage in brokeredMessages) { QueueMessage queueMessage = this.GetQueueMessage(brokeredMessage); if (queueMessage != null) { queueMessages.Add(queueMessage); } } return queueMessages; } /// <summary> /// Complete message /// </summary> /// <param name="message">Queue message</param> /// <returns>Complete async task</returns> public async Task CompleteAsync(IQueueMessage message) { QueueMessage msg = message as QueueMessage; BrokeredMessage brokeredMessage = msg.SystemMessage as BrokeredMessage; await brokeredMessage.CompleteAsync(); } /// <summary> /// Abandon message /// </summary> /// <param name="message">Queue message</param> /// <returns>Abandon async task</returns> public async Task AbandonAsync(IQueueMessage message) { QueueMessage msg = message as QueueMessage; BrokeredMessage brokeredMessage = msg.SystemMessage as BrokeredMessage; await brokeredMessage.AbandonAsync(); } /// <summary> /// Async initialization code. This method is invoked by the static factory method after the constructor. /// </summary> /// <returns>initialization task</returns> private async Task InitializeAsync() { await this.CreateQueueClient(); await this.CreateDeadLetterQueueClient(); } /// <summary> /// Creates a new queue client /// </summary> /// <returns>create queue client task</returns> private async Task CreateQueueClient() { var queueName = this.queueName; var receiveMode = ReceiveMode.PeekLock; var messagingFactory = await this.CreateMessagingFactory(); this.queueClient = messagingFactory.CreateQueueClient(queueName, receiveMode); } /// <summary> /// Creates a new dead letter queue client /// </summary> /// <returns>create dead letter queue client task</returns> private async Task CreateDeadLetterQueueClient() { var queueName = this.queueName; var receiveMode = ReceiveMode.PeekLock; var messagingFactory = await this.CreateMessagingFactory(); var deadLetterQueueName = queueName + this.deadLetterQueueSuffix; this.deadLetterQueueClient = messagingFactory.CreateQueueClient(deadLetterQueueName, receiveMode); } /// <summary> /// Helper function to create a messaging factory /// </summary> /// <returns>create messaging factory task</returns> private async Task<MessagingFactory> CreateMessagingFactory() { int batchIntervalMs = this.batchIntervalMs; string[] connectionStringSplit = this.connectionString.Split(';'); string endpoint = null; string keyName = null; string keyValue = null; foreach (string str in connectionStringSplit) { if (str.StartsWith("Endpoint=")) { endpoint = str.Substring("Endpoint=".Length); } else if (str.StartsWith("SharedAccessKeyName=")) { keyName = str.Substring("SharedAccessKeyName=".Length); } else if (str.StartsWith("SharedAccessKey=")) { keyValue = str.Substring("SharedAccessKey=".Length); } } if (endpoint == null || keyName == null || keyValue == null) { throw new ArgumentException($"Invalid connection string: endpoint = {endpoint}, keyName = {keyName}, keyValue = {keyValue}"); } TimeSpan batchInterval = TimeSpan.Zero; if (batchIntervalMs > 0) { batchInterval = TimeSpan.FromMilliseconds(batchIntervalMs); } TokenProvider credentials = TokenProvider.CreateSharedAccessSignatureTokenProvider(keyName, keyValue); MessagingFactorySettings mfs = new MessagingFactorySettings() { TokenProvider = credentials }; mfs.NetMessagingTransportSettings.BatchFlushInterval = batchInterval; MessagingFactory messagingFactory = await MessagingFactory.CreateAsync(endpoint, mfs); return messagingFactory; } /// <summary> /// Get queue message from brokered message /// </summary> /// <param name="brokeredMessage">Brokered message</param> /// <returns>Queue message</returns> private QueueMessage GetQueueMessage(BrokeredMessage brokeredMessage) { if (brokeredMessage == null) { return null; } var messageBodyType = Type.GetType(brokeredMessage.Properties[this.messageTypePropertyName].ToString()); if (messageBodyType == null) { return null; } MethodInfo method = typeof(BrokeredMessage).GetMethod("GetBody", new Type[] { }); MethodInfo generic = method.MakeGenericMethod(messageBodyType); var messageBody = generic.Invoke(brokeredMessage, null); QueueMessage queueMessage = messageBody as QueueMessage; queueMessage.EnqueuedTime = brokeredMessage.EnqueuedTimeUtc; queueMessage.DequeueCount = brokeredMessage.DeliveryCount; queueMessage.SequenceNumber = brokeredMessage.SequenceNumber; queueMessage.SystemMessage = brokeredMessage; return queueMessage; } } }
36.602469
141
0.581962
[ "MIT" ]
Bhaskers-Blu-Org2/EmbeddedSocial-Service
code/Server/Messaging/ServiceBusQueue.cs
14,826
C#
// // Copyright (c) Microsoft and contributors. All rights reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // // See the License for the specific language governing permissions and // limitations under the License. // // Warning: This code was generated by a tool. // // Changes to this file may cause incorrect behavior and will be lost if the // code is regenerated. using System; using System.Linq; using Microsoft.Azure.Management.StreamAnalytics.Models; namespace Microsoft.Azure.Management.StreamAnalytics.Models { /// <summary> /// The properties of the output. /// </summary> public partial class OutputProperties { private OutputDataSource _dataSource; /// <summary> /// Optional. Gets or sets the data source configuration of the output. /// </summary> public OutputDataSource DataSource { get { return this._dataSource; } set { this._dataSource = value; } } private Diagnostics _diagnostics; /// <summary> /// Optional. Gets conditions applicable to the Input, Output, or the /// job overall, that warrant customer attention. /// </summary> public Diagnostics Diagnostics { get { return this._diagnostics; } set { this._diagnostics = value; } } private string _etag; /// <summary> /// Optional. Gets or sets the etag of the output properties. /// </summary> public string Etag { get { return this._etag; } set { this._etag = value; } } private Serialization _serialization; /// <summary> /// Optional. Gets or sets the serialization configuration of the /// output. /// </summary> public Serialization Serialization { get { return this._serialization; } set { this._serialization = value; } } /// <summary> /// Initializes a new instance of the OutputProperties class. /// </summary> public OutputProperties() { } } }
30.218391
79
0.600609
[ "Apache-2.0" ]
CerebralMischief/azure-sdk-for-net
src/ResourceManagement/StreamAnalytics/StreamAnalyticsManagement/Generated/Models/OutputProperties.cs
2,629
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the autoscaling-2011-01-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.AutoScaling.Model { /// <summary> /// Container for the parameters to the CreateAutoScalingGroup operation. /// Creates an Auto Scaling group with the specified name and attributes. /// /// /// <para> /// If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per /// region, the call fails. For information about viewing and updating these limits, see /// <a>DescribeAccountLimits</a>. /// </para> /// </summary> public partial class CreateAutoScalingGroupRequest : AmazonAutoScalingRequest { private string _autoScalingGroupName; private List<string> _availabilityZones = new List<string>(); private int? _defaultCooldown; private int? _desiredCapacity; private int? _healthCheckGracePeriod; private string _healthCheckType; private string _instanceId; private string _launchConfigurationName; private List<string> _loadBalancerNames = new List<string>(); private int? _maxSize; private int? _minSize; private string _placementGroup; private List<Tag> _tags = new List<Tag>(); private List<string> _terminationPolicies = new List<string>(); private string _vpcZoneIdentifier; /// <summary> /// Gets and sets the property AutoScalingGroupName. /// <para> /// The name of the group. This name must be unique within the scope of your AWS account. /// </para> /// </summary> public string AutoScalingGroupName { get { return this._autoScalingGroupName; } set { this._autoScalingGroupName = value; } } // Check to see if AutoScalingGroupName property is set internal bool IsSetAutoScalingGroupName() { return this._autoScalingGroupName != null; } /// <summary> /// Gets and sets the property AvailabilityZones. /// <para> /// One or more Availability Zones for the group. This parameter is optional if you specify /// subnets using the <code>VPCZoneIdentifier</code> parameter. /// </para> /// </summary> public List<string> AvailabilityZones { get { return this._availabilityZones; } set { this._availabilityZones = value; } } // Check to see if AvailabilityZones property is set internal bool IsSetAvailabilityZones() { return this._availabilityZones != null && this._availabilityZones.Count > 0; } /// <summary> /// Gets and sets the property DefaultCooldown. /// <para> /// The amount of time, in seconds, after a scaling activity completes before another /// scaling activity can start. /// </para> /// /// <para> /// If <code>DefaultCooldown</code> is not specified, the default value is 300. For more /// information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/Cooldown.html">Understanding /// Auto Scaling Cooldowns</a> in the <i>Auto Scaling Developer Guide</i>. /// </para> /// </summary> public int DefaultCooldown { get { return this._defaultCooldown.GetValueOrDefault(); } set { this._defaultCooldown = value; } } // Check to see if DefaultCooldown property is set internal bool IsSetDefaultCooldown() { return this._defaultCooldown.HasValue; } /// <summary> /// Gets and sets the property DesiredCapacity. /// <para> /// The number of EC2 instances that should be running in the group. This value must be /// greater than or equal to the minimum size of the group and less than or equal to the /// maximum size of the group. /// </para> /// </summary> public int DesiredCapacity { get { return this._desiredCapacity.GetValueOrDefault(); } set { this._desiredCapacity = value; } } // Check to see if DesiredCapacity property is set internal bool IsSetDesiredCapacity() { return this._desiredCapacity.HasValue; } /// <summary> /// Gets and sets the property HealthCheckGracePeriod. /// <para> /// The amount of time, in seconds, after an EC2 instance comes into service that Auto /// Scaling starts checking its health. During this time, any health check failures for /// the instance are ignored. /// </para> /// /// <para> /// This parameter is required if you are adding an <code>ELB</code> health check. Frequently, /// new instances need to warm up, briefly, before they can pass a health check. To provide /// ample warm-up time, set the health check grace period of the group to match the expected /// startup period of your application. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/as-add-elb-healthcheck.html">Add /// an Elastic Load Balancing Health Check to Your Auto Scaling Group</a> in the <i>Auto /// Scaling Developer Guide</i>. /// </para> /// </summary> public int HealthCheckGracePeriod { get { return this._healthCheckGracePeriod.GetValueOrDefault(); } set { this._healthCheckGracePeriod = value; } } // Check to see if HealthCheckGracePeriod property is set internal bool IsSetHealthCheckGracePeriod() { return this._healthCheckGracePeriod.HasValue; } /// <summary> /// Gets and sets the property HealthCheckType. /// <para> /// The service to use for the health checks. The valid values are <code>EC2</code> and /// <code>ELB</code>. /// </para> /// /// <para> /// By default, health checks use Amazon EC2 instance status checks to determine the health /// of an instance. For more information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/healthcheck.html">Health /// Checks</a>. /// </para> /// </summary> public string HealthCheckType { get { return this._healthCheckType; } set { this._healthCheckType = value; } } // Check to see if HealthCheckType property is set internal bool IsSetHealthCheckType() { return this._healthCheckType != null; } /// <summary> /// Gets and sets the property InstanceId. /// <para> /// The ID of the EC2 instance used to create a launch configuration for the group. Alternatively, /// use the <code>LaunchConfigurationName</code> parameter to specify a launch configuration /// instead of an EC2 instance. /// </para> /// /// <para> /// When you specify an ID of an instance, Auto Scaling creates a new launch configuration /// and associates it with the group. This launch configuration derives its attributes /// from the specified instance, with the exception of the block device mapping. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/create-asg-from-instance.html">Create /// an Auto Scaling Group Using an EC2 Instance ID</a> in the <i>Auto Scaling Developer /// Guide</i>. /// </para> /// </summary> public string InstanceId { get { return this._instanceId; } set { this._instanceId = value; } } // Check to see if InstanceId property is set internal bool IsSetInstanceId() { return this._instanceId != null; } /// <summary> /// Gets and sets the property LaunchConfigurationName. /// <para> /// The name of the launch configuration. Alternatively, use the <code>InstanceId</code> /// parameter to specify an EC2 instance instead of a launch configuration. /// </para> /// </summary> public string LaunchConfigurationName { get { return this._launchConfigurationName; } set { this._launchConfigurationName = value; } } // Check to see if LaunchConfigurationName property is set internal bool IsSetLaunchConfigurationName() { return this._launchConfigurationName != null; } /// <summary> /// Gets and sets the property LoadBalancerNames. /// <para> /// One or more load balancers. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/US_SetUpASLBApp.html">Load /// Balance Your Auto Scaling Group</a> in the <i>Auto Scaling Developer Guide</i>. /// </para> /// </summary> public List<string> LoadBalancerNames { get { return this._loadBalancerNames; } set { this._loadBalancerNames = value; } } // Check to see if LoadBalancerNames property is set internal bool IsSetLoadBalancerNames() { return this._loadBalancerNames != null && this._loadBalancerNames.Count > 0; } /// <summary> /// Gets and sets the property MaxSize. /// <para> /// The maximum size of the group. /// </para> /// </summary> public int MaxSize { get { return this._maxSize.GetValueOrDefault(); } set { this._maxSize = value; } } // Check to see if MaxSize property is set internal bool IsSetMaxSize() { return this._maxSize.HasValue; } /// <summary> /// Gets and sets the property MinSize. /// <para> /// The minimum size of the group. /// </para> /// </summary> public int MinSize { get { return this._minSize.GetValueOrDefault(); } set { this._minSize = value; } } // Check to see if MinSize property is set internal bool IsSetMinSize() { return this._minSize.HasValue; } /// <summary> /// Gets and sets the property PlacementGroup. /// <para> /// The name of the placement group into which you'll launch your instances, if any. For /// more information, see <a href="http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/placement-groups.html">Placement /// Groups</a>. /// </para> /// </summary> public string PlacementGroup { get { return this._placementGroup; } set { this._placementGroup = value; } } // Check to see if PlacementGroup property is set internal bool IsSetPlacementGroup() { return this._placementGroup != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tag to be created or updated. Each tag should be defined by its resource type, /// resource ID, key, value, and a propagate flag. Valid values: key=<i>value</i>, value=<i>value</i>, /// propagate=<i>true</i> or <i>false</i>. Value and propagate are optional parameters. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/ASTagging.html">Add, /// Modify, or Remove Auto Scaling Group Tags</a> in the <i>Auto Scaling Developer Guide</i>. /// </para> /// </summary> public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property TerminationPolicies. /// <para> /// One or more termination policies used to select the instance to terminate. These policies /// are executed in the order that they are listed. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/us-termination-policy.html">Choosing /// a Termination Policy for Your Auto Scaling Group</a> in the <i>Auto Scaling Developer /// Guide</i>. /// </para> /// </summary> public List<string> TerminationPolicies { get { return this._terminationPolicies; } set { this._terminationPolicies = value; } } // Check to see if TerminationPolicies property is set internal bool IsSetTerminationPolicies() { return this._terminationPolicies != null && this._terminationPolicies.Count > 0; } /// <summary> /// Gets and sets the property VPCZoneIdentifier. /// <para> /// A comma-separated list of subnet identifiers for your virtual private cloud (VPC). /// </para> /// /// <para> /// If you specify subnets and Availability Zones with this call, ensure that the subnets' /// Availability Zones match the Availability Zones specified. /// </para> /// /// <para> /// For more information, see <a href="http://docs.aws.amazon.com/AutoScaling/latest/DeveloperGuide/autoscalingsubnets.html">Auto /// Scaling and Amazon VPC</a> in the <i>Auto Scaling Developer Guide</i>. /// </para> /// </summary> public string VPCZoneIdentifier { get { return this._vpcZoneIdentifier; } set { this._vpcZoneIdentifier = value; } } // Check to see if VPCZoneIdentifier property is set internal bool IsSetVPCZoneIdentifier() { return this._vpcZoneIdentifier != null; } } }
37.664216
148
0.589315
[ "Apache-2.0" ]
amazon-archives/aws-sdk-xamarin
AWS.XamarinSDK/AWSSDK_Android/Amazon.AutoScaling/Model/CreateAutoScalingGroupRequest.cs
15,367
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable enable using System.Buffers; using System.Runtime.InteropServices; using System.Text; using static Interop; namespace System.Windows.Forms.Metafiles { [StructLayout(LayoutKind.Sequential)] internal unsafe struct EMREXTSELECTCLIPRGN { public EMR emr; public uint cbRgnData; // Size of region data in bytes public Gdi32.RGN iMode; public byte RgnData; public Gdi32.RGNDATAHEADER* RegionDataHeader { get { fixed (void* data = &RgnData) { return cbRgnData >= sizeof(Gdi32.RGNDATAHEADER) ? (Gdi32.RGNDATAHEADER*)data : null; } } } public RECT[] ClippingRectangles => Gdi32.RGNDATAHEADER.GetRegionRects(RegionDataHeader); public override string ToString() { if (RegionDataHeader is null) { return $"[{nameof(EMREXTSELECTCLIPRGN)}] Mode: Set Default"; } StringBuilder sb = new StringBuilder(512); sb.Append($@"[{nameof(EMREXTSELECTCLIPRGN)}] Mode: {iMode} Bounds: {RegionDataHeader->rcBound} Rects: { RegionDataHeader->nCount}"); RECT[] clippingRects = ClippingRectangles; for (int i = 0; i < clippingRects.Length; i++) { sb.AppendFormat("\n\tRect index {0}: {1}", i, clippingRects[i]); } return sb.ToString(); } } }
30.75
115
0.584204
[ "MIT" ]
Amy-Li03/winforms
src/System.Windows.Forms.Primitives/tests/TestUtilities/Metafiles/RecordTypes/EMREXTSELECTCLIPRGN.cs
1,724
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.AzureNextGen.ContainerService.V20190801.Outputs { [OutputType] public sealed class ContainerServiceSshConfigurationResponse { /// <summary> /// The list of SSH public keys used to authenticate with Linux-based VMs. Only expect one key specified. /// </summary> public readonly ImmutableArray<Outputs.ContainerServiceSshPublicKeyResponse> PublicKeys; [OutputConstructor] private ContainerServiceSshConfigurationResponse(ImmutableArray<Outputs.ContainerServiceSshPublicKeyResponse> publicKeys) { PublicKeys = publicKeys; } } }
33.392857
129
0.726203
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/ContainerService/V20190801/Outputs/ContainerServiceSshConfigurationResponse.cs
935
C#
using System; using System.Text; using Microsoft.AspNetCore.Hosting; using Microsoft.Extensions.Configuration; using Microsoft.IdentityModel.Tokens; using Abp.AspNetCore; using Abp.AspNetCore.Configuration; using Abp.AspNetCore.SignalR; using Abp.Modules; using Abp.Reflection.Extensions; using Abp.Zero.Configuration; using myEventCloud.Authentication.JwtBearer; using myEventCloud.Configuration; using myEventCloud.EntityFrameworkCore; namespace myEventCloud { [DependsOn( typeof(myEventCloudApplicationModule), typeof(myEventCloudEntityFrameworkModule), typeof(AbpAspNetCoreModule) ,typeof(AbpAspNetCoreSignalRModule) )] public class myEventCloudWebCoreModule : AbpModule { private readonly IHostingEnvironment _env; private readonly IConfigurationRoot _appConfiguration; public myEventCloudWebCoreModule(IHostingEnvironment env) { _env = env; _appConfiguration = env.GetAppConfiguration(); } public override void PreInitialize() { Configuration.DefaultNameOrConnectionString = _appConfiguration.GetConnectionString( myEventCloudConsts.ConnectionStringName ); // Use database for language management Configuration.Modules.Zero().LanguageManagement.EnableDbLocalization(); Configuration.Modules.AbpAspNetCore() .CreateControllersForAppServices( typeof(myEventCloudApplicationModule).GetAssembly() ); ConfigureTokenAuth(); } private void ConfigureTokenAuth() { IocManager.Register<TokenAuthConfiguration>(); var tokenAuthConfig = IocManager.Resolve<TokenAuthConfiguration>(); tokenAuthConfig.SecurityKey = new SymmetricSecurityKey(Encoding.ASCII.GetBytes(_appConfiguration["Authentication:JwtBearer:SecurityKey"])); tokenAuthConfig.Issuer = _appConfiguration["Authentication:JwtBearer:Issuer"]; tokenAuthConfig.Audience = _appConfiguration["Authentication:JwtBearer:Audience"]; tokenAuthConfig.SigningCredentials = new SigningCredentials(tokenAuthConfig.SecurityKey, SecurityAlgorithms.HmacSha256); tokenAuthConfig.Expiration = TimeSpan.FromDays(1); } public override void Initialize() { IocManager.RegisterAssemblyByConvention(typeof(myEventCloudWebCoreModule).GetAssembly()); } } }
36.085714
151
0.704671
[ "MIT" ]
lyzr2507/myEventCloud
aspnet-core/src/myEventCloud.Web.Core/myEventCloudWebCoreModule.cs
2,528
C#
using ElmanANN.ObjectOrientedElman; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ElmanANN { class Program { static void Main(string[] args) { ObjectOrientedElmanNetwork.NetworkInstance.initialize(3, 3, 3, 1.0); double[] input = new double[] { -0.3, 0.2, 0.8 }; double[] input2 = new double[] { -0.3, 0.2, 0.8 }; ObjectOrientedElmanNetwork.NetworkInstance.use(input); double[] output = ObjectOrientedElmanNetwork.NetworkInstance.use(input2); for (int i=0; i < output.Length; i++) { Console.WriteLine(output[i].ToString()); } } } }
29.269231
85
0.595269
[ "MIT" ]
kubiesh/HDDetector
Detector/ElmanANN/Program.cs
763
C#
using Microsoft.eShopWeb.ApplicationCore.Entities; using System.Collections.Generic; namespace Microsoft.eShopWeb.ViewModels { public class CatalogItemViewModel { public int Id { get; set; } public string Name { get; set; } public string PictureUri { get; set; } public decimal Price { get; set; } } }
23.266667
51
0.664756
[ "MIT" ]
Venkat5160/eShopOnWeb-master
src/Web/ViewModels/CatalogItemViewModel.cs
351
C#
/********************************************* 作者:曹旭升 QQ:279060597 访问博客了解详细介绍及更多内容: http://blog.shengxunwei.com **********************************************/ using System; using System.Diagnostics; using System.Reflection; using Microsoft.Practices.EnterpriseLibrary.Common.Configuration.Unity; using Microsoft.Practices.EnterpriseLibrary.Logging.Formatters; using Microsoft.Practices.ObjectBuilder2; namespace Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.Unity { public class TraceListenerConstructorArgumentMatchingPolicyCreator : ConstructorArgumentMatchingPolicyCreator { public TraceListenerConstructorArgumentMatchingPolicyCreator(Type targetType) : base(CheckTraceListenerType(targetType)) { } private static Type CheckTraceListenerType(Type targetType) { Guard.ArgumentNotNull(targetType, "targetType"); return targetType; } protected override bool MatchArgumentAndPropertyTypes(ParameterInfo parameterInfo, PropertyInfo propertyInfo) { return base.MatchArgumentAndPropertyTypes(parameterInfo, propertyInfo) || (parameterInfo.ParameterType == typeof(ILogFormatter) && propertyInfo.PropertyType == typeof(string)); } protected override IDependencyResolverPolicy CreateDependencyResolverPolicy(ParameterInfo parameterInfo, object value) { if (parameterInfo.ParameterType == typeof(ILogFormatter)) { if (value != null) { if (value is string) { string stringValue = (string)value; if (!string.IsNullOrEmpty(stringValue)) { return new ReferenceResolverPolicy(NamedTypeBuildKey.Make<ILogFormatter>(stringValue)); } else { value = null; } } else { Debug.Fail("This shouldn't happen. When matching the parameter and the property type compatibility should have been ensured."); } } else { } } return base.CreateDependencyResolverPolicy(parameterInfo, value); } } }
32.935484
134
0.686582
[ "MIT" ]
ckalvin-hub/Sheng.Winform.IDE
SourceCode/Source/EnterpriseLibrary/Logging/Src/Logging/Configuration/Unity/TraceListenerConstructorArgumentMatchingPolicyCreator.cs
2,090
C#
// ------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. // ------------------------------------------------------------------------------ // **NOTE** This file was generated by a tool and any changes will be overwritten. // <auto-generated/> // Template Source: IMethodCollectionPage.cs.tt namespace Microsoft.Graph { using System.Text.Json.Serialization; /// <summary> /// The interface ISiteRemoveCollectionPage. /// </summary> [InterfaceConverter(typeof(InterfaceConverter<SiteRemoveCollectionPage>))] public interface ISiteRemoveCollectionPage : ICollectionPage<Site> { /// <summary> /// Gets the next page <see cref="ISiteRemoveRequest"/> instance. /// </summary> ISiteRemoveRequest NextPageRequest { get; } /// <summary> /// Initializes the NextPageRequest property. /// </summary> void InitializeNextPageRequest(IBaseClient client, string nextPageLinkString); } }
37.16129
153
0.592882
[ "MIT" ]
Aliases/msgraph-sdk-dotnet
src/Microsoft.Graph/Generated/requests/ISiteRemoveCollectionPage.cs
1,152
C#
// *** WARNING: this file was generated by the Pulumi SDK Generator. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Generic; using System.Collections.Immutable; using System.Threading.Tasks; using Pulumi.Serialization; namespace Pulumi.AzureNextGen.RecoveryServices.V20180110.Inputs { /// <summary> /// Fabric provider specific settings. /// </summary> public sealed class AzureFabricCreationInputArgs : Pulumi.ResourceArgs { /// <summary> /// Gets the class type. /// Expected value is 'Azure'. /// </summary> [Input("instanceType")] public Input<string>? InstanceType { get; set; } /// <summary> /// The Location. /// </summary> [Input("location")] public Input<string>? Location { get; set; } public AzureFabricCreationInputArgs() { } } }
26.694444
81
0.619147
[ "Apache-2.0" ]
pulumi/pulumi-azure-nextgen
sdk/dotnet/RecoveryServices/V20180110/Inputs/AzureFabricCreationInputArgs.cs
961
C#
/*---------------------------------------------------------------- Copyright (C) 2016 Senparc 文件名:RequestMessageImage.cs 文件功能描述:接收普通图片消息 创建标识:Senparc - 20150313 修改标识:Senparc - 20150313 修改描述:整理接口 ----------------------------------------------------------------*/ namespace Niue.WeChat.EnterpriseAccounts.Entities.Request { public class RequestMessageImage : RequestMessageBase, IRequestMessageBase { public override RequestMsgType MsgType { get { return RequestMsgType.Image; } } public string MediaId { get; set; } public string PicUrl { get; set; } } }
24.62963
78
0.505263
[ "MIT" ]
P79N6A/abp-ant-design-pro-vue
Niue.WeChat/EnterpriseAccounts/Entities/Request/RequestMessageImage.cs
743
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("WinNodeEditerTest")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Microsoft")] [assembly: AssemblyProduct("WinNodeEditerTest")] [assembly: AssemblyCopyright("Copyright © Microsoft 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("2c0c84a0-fb66-4133-80f5-053356fa0f04")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
39.486486
85
0.731691
[ "MIT" ]
ZJ69719496/DotNet_WinForm_NodeEditor
WinNodeEditerTest/Properties/AssemblyInfo.cs
1,464
C#
using System; using System.ComponentModel.DataAnnotations; using Quantumart.QP8.Resources; namespace Quantumart.QP8.BLL.ListItems { public class StatusHistoryListItem { public int Id { get; set; } public string StatusTypeName { get; set; } public string SystemStatusTypeName { get; set; } public DateTime ActionDate { get; set; } public string ActionMadeBy { get; set; } private string _comment = string.Empty; [Display(Name = "LastComment", ResourceType = typeof(ArticleStrings))] public string Comment { get => _comment; set => _comment = value.Trim().EndsWith("Comment:") ? value.Replace("Comment: ", string.Empty) : value; } } }
26.068966
115
0.630952
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
QuantumArt/QP
bll/ListItems/StatusHistoryListItem.cs
756
C#
using System.Collections; using System.Collections.Generic; using UnityEngine; public class coinSpawner : MonoBehaviour { // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } }
15.578947
52
0.625
[ "MIT" ]
jlandron/Coin-Brigade
Assets/Scripts/coinSpawner.cs
298
C#
using System.Runtime.Serialization; namespace EncompassRest.Loans.Enums { public enum RefinancePurpose { CashOutDebtConsolidation = 0, CashOutHomeImprovement = 1, CashOutLimited = 2, CashOutOther = 3, CashOutOriginalLender = 4, ChangeInRateTerm = 5, NoCashOutOther = 6, NoCashOutFHAStreamlinedRefinance = 7, NoCashOutFREOwnedRefinance = 8, NoCashOutStreamlinedRefinance = 9, NoCashOutOriginalLender = 10 } }
26.736842
45
0.65748
[ "MIT" ]
gashach/EncompassRest
src/EncompassRest/Loans/Enums/RefinancePurpose.cs
508
C#
using System; using System.Collections.Generic; using System.Security.Cryptography; using System.Text; namespace TSOClient.Network.Encryption { /// <summary> /// Class for generating hashes. /// From: http://www.dijksterhuis.org/creating-salted-hash-values-in-c/ /// </summary> class SaltedHash { HashAlgorithm HashProvider; int SalthLength; /// <summary> /// The constructor takes a HashAlgorithm as a parameter. /// </summary> /// <param name="HashAlgorithm"> /// A <see cref="HashAlgorithm"/> HashAlgorihm which is derived from HashAlgorithm. C# provides /// the following classes: SHA1Managed,SHA256Managed, SHA384Managed, SHA512Managed and MD5CryptoServiceProvider /// </param> public SaltedHash(HashAlgorithm HashAlgorithm, int theSaltLength) { HashProvider = HashAlgorithm; SalthLength = theSaltLength; } /// <summary> /// Default constructor which initialises the SaltedHash with the SHA256Managed algorithm /// and a Salt of 4 bytes ( or 4*8 = 32 bits) /// </summary> public SaltedHash() : this(new SHA256Managed(), 4) { } /// <summary> /// The actual hash calculation is shared by both GetHashAndSalt and the VerifyHash functions /// </summary> /// <param name="Data">A byte array of the Data to Hash</param> /// <param name="Salt">A byte array of the Salt to add to the Hash</param> /// <returns>A byte array with the calculated hash</returns> private byte[] ComputeHash(byte[] Data, byte[] Salt) { // Allocate memory to store both the Data and Salt together byte[] DataAndSalt = new byte[Data.Length + SalthLength]; // Copy both the data and salt into the new array Array.Copy(Data, DataAndSalt, Data.Length); Array.Copy(Salt, 0, DataAndSalt, Data.Length, SalthLength); // Calculate the hash // Compute hash value of our plain text with appended salt. return HashProvider.ComputeHash(DataAndSalt); } /// <summary> /// Calculates a password-hash using a username as the salt. /// </summary> /// <param name="Username">The username to use as a salt.</param> /// <param name="Password">The password to hash.</param> public byte[] ComputePasswordHash(string Username, string Password) { //Turn the strings into bytearrays and then allocate memory. byte[] UsernameBuf = Encoding.ASCII.GetBytes(Username); byte[] PasswordBuf = Encoding.ASCII.GetBytes(Password); byte[] DataAndSalt = new byte[UsernameBuf.Length + PasswordBuf.Length]; //Copy the username and password into the new array. Array.Copy(PasswordBuf, DataAndSalt, PasswordBuf.Length); Array.Copy(UsernameBuf, 0, DataAndSalt, PasswordBuf.Length, UsernameBuf.Length); return HashProvider.ComputeHash(DataAndSalt); } /// <summary> /// Given a data block this routine returns both a Hash and a Salt /// </summary> /// <param name="Data"> /// A <see cref="System.Byte"/>byte array containing the data from which to derive the salt /// </param> /// <param name="Hash"> /// A <see cref="System.Byte"/>byte array which will contain the hash calculated /// </param> /// <param name="Salt"> /// A <see cref="System.Byte"/>byte array which will contain the salt generated /// </param> public void GetHashAndSalt(byte[] Data, out byte[] Hash, out byte[] Salt) { // Allocate memory for the salt Salt = new byte[SalthLength]; // Strong runtime pseudo-random number generator, on Windows uses CryptAPI // on Unix /dev/urandom RNGCryptoServiceProvider random = new RNGCryptoServiceProvider(); // Create a random salt random.GetNonZeroBytes(Salt); // Compute hash value of our data with the salt. Hash = ComputeHash(Data, Salt); } /// <summary> /// The routine provides a wrapper around the GetHashAndSalt function providing conversion /// from the required byte arrays to strings. Both the Hash and Salt are returned as Base-64 encoded strings. /// </summary> /// <param name="Data"> /// A <see cref="System.String"/> string containing the data to hash /// </param> /// <param name="Hash"> /// A <see cref="System.String"/> base64 encoded string containing the generated hash /// </param> /// <param name="Salt"> /// A <see cref="System.String"/> base64 encoded string containing the generated salt /// </param> public void GetHashAndSaltString(string Data, out string Hash, out string Salt) { byte[] HashOut; byte[] SaltOut; // Obtain the Hash and Salt for the given string GetHashAndSalt(Encoding.UTF8.GetBytes(Data), out HashOut, out SaltOut); // Transform the byte[] to Base-64 encoded strings Hash = Convert.ToBase64String(HashOut); Salt = Convert.ToBase64String(SaltOut); } /// <summary> /// This routine verifies whether the data generates the same hash as we had stored previously /// </summary> /// <param name="Data">The data to verify </param> /// <param name="Hash">The hash we had stored previously</param> /// <param name="Salt">The salt we had stored previously</param> /// <returns>True on a succesfull match</returns> public bool VerifyHash(byte[] Data, byte[] Hash, byte[] Salt) { byte[] NewHash = ComputeHash(Data, Salt); // No easy array comparison in C# -- we do the legwork if (NewHash.Length != Hash.Length) return false; for (int Lp = 0; Lp < Hash.Length; Lp++) if (!Hash[Lp].Equals(NewHash[Lp])) return false; return true; } /// <summary> /// This routine provides a wrapper around VerifyHash converting the strings containing the /// data, hash and salt into byte arrays before calling VerifyHash. /// </summary> /// <param name="Data">A UTF-8 encoded string containing the data to verify</param> /// <param name="Hash">A base-64 encoded string containing the previously stored hash</param> /// <param name="Salt">A base-64 encoded string containing the previously stored salt</param> /// <returns></returns> public bool VerifyHashString(string Data, string Hash, string Salt) { byte[] HashToVerify = Convert.FromBase64String(Hash); byte[] SaltToVerify = Convert.FromBase64String(Salt); byte[] DataToVerify = Encoding.UTF8.GetBytes(Data); return VerifyHash(DataToVerify, HashToVerify, SaltToVerify); } } }
40.5
119
0.601887
[ "MPL-2.0", "MPL-2.0-no-copyleft-exception" ]
Blayer98/FreeSO
TSOClient/tso.client/Network/Encryption/SaltedHash.cs
7,211
C#
//------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Entitas.CodeGeneration.Plugins.ComponentEntityApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ public partial class GameEntity { public Lockstep.Core.State.Game.AssetComponent asset { get { return (Lockstep.Core.State.Game.AssetComponent)GetComponent(GameComponentsLookup.Asset); } } public bool hasAsset { get { return HasComponent(GameComponentsLookup.Asset); } } public void AddAsset(string newName) { var index = GameComponentsLookup.Asset; var component = (Lockstep.Core.State.Game.AssetComponent)CreateComponent(index, typeof(Lockstep.Core.State.Game.AssetComponent)); component.name = newName; AddComponent(index, component); } public void ReplaceAsset(string newName) { var index = GameComponentsLookup.Asset; var component = (Lockstep.Core.State.Game.AssetComponent)CreateComponent(index, typeof(Lockstep.Core.State.Game.AssetComponent)); component.name = newName; ReplaceComponent(index, component); } public void RemoveAsset() { RemoveComponent(GameComponentsLookup.Asset); } } //------------------------------------------------------------------------------ // <auto-generated> // This code was generated by Entitas.CodeGeneration.Plugins.ComponentMatcherApiGenerator. // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> //------------------------------------------------------------------------------ public sealed partial class GameMatcher { static Entitas.IMatcher<GameEntity> _matcherAsset; public static Entitas.IMatcher<GameEntity> Asset { get { if (_matcherAsset == null) { var matcher = (Entitas.Matcher<GameEntity>)Entitas.Matcher<GameEntity>.AllOf(GameComponentsLookup.Asset); matcher.componentNames = GameComponentsLookup.componentNames; _matcherAsset = matcher; } return _matcherAsset; } } }
41.035088
158
0.602822
[ "MIT" ]
654306663/UnityLockstep
Engine/Core.State/Generated/Game/Components/GameAssetComponent.cs
2,339
C#
using System; using System.Collections.Generic; using System.Linq; using Foundation; using UIKit; namespace ShellSampleApp.iOS { // The UIApplicationDelegate for the application. This class is responsible for launching the // User Interface of the application, as well as listening (and optionally responding) to // application events from iOS. [Register("AppDelegate")] public partial class AppDelegate : global::Xamarin.Forms.Platform.iOS.FormsApplicationDelegate { // // This method is invoked when the application has loaded and is ready to run. In this // method you should instantiate the window, load the UI into it and then make the window // visible. // // You have 17 seconds to return from this method, or iOS will terminate your application. // public override bool FinishedLaunching(UIApplication app, NSDictionary options) { global::Xamarin.Forms.Forms.SetFlags("CollectionView_Experimental"); global::Xamarin.Forms.Forms.Init(); LoadApplication(new App()); return base.FinishedLaunching(app, options); } } }
35.939394
98
0.681282
[ "MIT" ]
runceel/Xamarin.Forms-Shell-Android-BackButtonBehavior
src/ShellSampleApp/ShellSampleApp/ShellSampleApp.iOS/AppDelegate.cs
1,188
C#
{{#tables}} namespace Persistence.Models { public class {{entity_name}} { {{#colunas}} public {{data_type}} {{attribute_name}} { get; set; }{{/colunas}} } } ---<EOF: {"nameFile": "{{entity_name}}.cs"}>--- {{/tables}}
23.7
69
0.561181
[ "MIT" ]
jairzjunior/vscode-automagic-code
sample/templates/CSharp.Model.ClassPerFile.mustache.cs
237
C#
// // IPortableTaskSupport.cs // // Author: // Martin Baulig <mabaul@microsoft.com> // // Copyright (c) 2017 Xamarin Inc. (http://www.xamarin.com) // // 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. using System; using System.Threading; using System.Threading.Tasks; namespace Xamarin.AsyncTests.Portable { public interface IPortableTaskSupport : ISingletonInstance { TaskCompletionSource<T> CreateAsyncCompletionSource<T> (); Task CompletedTask { get; } Task FromCanceled (CancellationToken cancellationToken); Task<T> FromCanceled<T> (CancellationToken cancellationToken); Task FromException (Exception exception); Task<T> FromException<T> (Exception exception); } }
35.204082
80
0.76
[ "MIT" ]
xamarin/web-tests
Xamarin.AsyncTests/Xamarin.AsyncTests.Portable/IPortableTaskSupport.cs
1,727
C#
using DevAssessment.Resources; using Prism.Commands; using Prism.Logging; using Prism.Navigation; using System.Collections.Generic; using System.Collections.ObjectModel; using Xamarin.Essentials.Interfaces; using Category = DevAssessment.Models.Category; namespace DevAssessment.ViewModels { public class NewsReaderPageViewModel : ViewModelBase { private INavigationService NavigationService { get; } private ILogger Logger { get; } public NewsReaderPageViewModel(INavigationService navigationService, ILogger logger, IConnectivity connectivity) : base(connectivity) { Logger = logger; NavigationService = navigationService; CategoryList = new ObservableCollection<Category>() { new Category{ DisplayName = AppResources.BusinessText, Name = "Business" }, new Category{ DisplayName = AppResources.EntertainmentText , Name = "Entertainment" }, new Category{ DisplayName = AppResources.GeneralText, Name = "General" }, new Category{ DisplayName = AppResources.HealthText, Name = "Health" }, new Category{ DisplayName = AppResources.ScienceText, Name = "Science" }, new Category{ DisplayName = AppResources.SportsText, Name = "Sports" }, new Category{ DisplayName = AppResources.TechnologyText , Name = "Technology" } }; NavigationCommand = new DelegateCommand<Category>(OnNavigationCommandExecuted); } public IEnumerable<Category> CategoryList { get; } public DelegateCommand<Category> NavigationCommand { get; } private async void OnNavigationCommandExecuted(Category category) { await NavigationService.NavigateAsync("ArticleListPage", ("category", category.Name)); } } }
40.586957
141
0.678093
[ "MIT" ]
zohaibhanif/DevAssessment
src/DevAssessment/ViewModels/NewsReaderPageViewModel.cs
1,869
C#
using Pyro.Common.PyroHealthFhirResource.CodeSystems; namespace Pyro.Common.PyroHealthFhirResource { public class CodeSystem : ICodeSystem { private readonly IPyroFhirServer IPyroFhirServer; private readonly IPyroTask IPyroTask; private readonly IPyroHealth IPyroHealth; public CodeSystem(IPyroFhirServer IPyroFhirServer, IPyroTask IPyroTask, IPyroHealth IPyroHealth) { this.IPyroFhirServer = IPyroFhirServer; this.IPyroTask = IPyroTask; this.IPyroHealth = IPyroHealth; } public IPyroFhirServer PyroFhirServerCodeSystem => IPyroFhirServer; public IPyroTask PyroTaskCodeSystem => IPyroTask; public IPyroHealth PyroHealthCodeSystem => IPyroHealth; } }
31.217391
100
0.771588
[ "BSD-3-Clause" ]
angusmillar/Pyro
Pyro.Common/PyroHealthFhirResource/CodeSystem.cs
720
C#
using System; using System.Text; using System.Drawing; using System.Drawing.Imaging; using System.Diagnostics; using System.Collections.Generic; using System.Linq; namespace ImageMetaDataParser { /// <summary> /// Zusammenfassung für ExifInfo. /// </summary> public class ExifInfo { protected ExifData[] Infofields; public string Manufacturer { get { return GetString(0x10F); } } public string CameraModel { get { return GetString(0x110); } } public string Title { get { var t = GetUtf8String(0x010e); if (t != null) return t; t = GetUtf8String(0x320); return t; } } public string HorizontalResolution { get { int index = Array.BinarySearch(Infofields, 0x11A); if (index < 0) return null; Fraction b = Infofields[index].GetRational(); index = Array.BinarySearch(Infofields, 0x128); if (index < 0) return null; int res = Infofields[index].GetUInt16(); return b.Value.ToString("0") + (res == 2 ? " dpi" : " 1/cm"); } } public string VerticalResolution { get { int index = Array.BinarySearch(Infofields, 0x11B); if (index < 0) return null; Fraction b = Infofields[index].GetRational(); index = Array.BinarySearch(Infofields, 0x128); if (index < 0) return null; int res = Infofields[index].GetUInt16(); return b.Value.ToString("0") + (res == 2 ? " dpi" : " 1/cm"); } } public DateTime DateCreated { get { return GetDate(0x132); } set { SetDate(0x132, value); } } public DateTime DateOriginal { get { return GetDate(0x9003); } set { SetDate(0x9003, value); } } public DateTime DateDigitized { get { return GetDate(0x9004); } set { SetDate(0x9004, value); } } public DateTime DateThumbnailimage { get { return GetDate(0x5033); } } public string ShutterSpeed { get { int index = Array.BinarySearch(Infofields, 0x829A); if (index < 0) return null; Fraction b = Infofields[index].GetRational(); return string.Format("{0}/{1} Sec.", b.Numerator, b.Denominator); } } public string Aperture { get { int index = Array.BinarySearch(Infofields, 0x829D); if (index < 0) return null; Fraction b = Infofields[index].GetRational(); return string.Format("F/{0:0.0}", b.Value); } } public string ExposureProgram { get { int index = Array.BinarySearch(Infofields, 0x8822); if (index < 0) return null; int pgm = Infofields[index].GetUInt16(); switch (pgm) { case 0: return "Nicht definiert"; case 1: return "Manuell"; case 2: return "Standardprogramm"; case 3: return "Zeitautomatik"; case 4: return "Blendenautomatik"; case 5: return "Kreativprogramm"; case 6: return "Sportprogramm"; case 7: return "Portraitmodus"; case 8: return "Landschaftsprogramm"; default: return "unbekannt"; } } } public string ExposureMeasurement { get { int index = Array.BinarySearch(Infofields, 0x9207); if (index < 0) return null; int pgm = Infofields[index].GetUInt16(); switch (pgm) { case 0: return "Nicht definiert"; case 1: return "Mittenbetonte Integralmessung"; case 2: return "Mittenbetont"; case 3: return "Spot"; case 4: return "Multispot"; case 5: return "Mehrfeldmessung"; case 6: return "Selektivmessung"; default: return "unbekannt"; } } } public string ExposureCompensationAmount { get { int index = Array.BinarySearch(Infofields, 0x9204); if (index < 0) return null; Fraction b = Infofields[index].GetSRational(); if (b.Numerator == 0) return "±0"; return b.Numerator + "/" + b.Denominator; } } public string ExposureMode { get { int index = Array.BinarySearch(Infofields, 0xA402); if (index < 0) return null; int pgm = Infofields[index].GetUInt16(); switch (pgm) { case 0: return "Automatisch"; case 1: return "Manuell"; case 2: return "Auto bracket"; default: return "unbekannt"; } } } public string WhiteBalance { get { int index = Array.BinarySearch(Infofields, 0xA403); if (index < 0) return null; int pgm = Infofields[index].GetUInt16(); switch (pgm) { case 0: return "Automatisch"; case 1: return "Manuell"; default: return "unbekannt"; } } } public string Flash { get { int index = Array.BinarySearch(Infofields, 0x9209); if (index < 0) return null; int blitz = Infofields[index].GetUInt16(); switch (blitz) { case 0x0000: return "-"; case 0x0001: return "Flash fired."; case 0x0005: return "Strobe return light not detected."; case 0x0007: return "Strobe return light detected."; case 0x0009: return "Flash fired, compulsory flash mode"; case 0x000D: return "Flash fired, compulsory flash mode, return light not detected"; case 0x000F: return "Flash fired, compulsory flash mode, return light detected"; case 0x0010: return "-"; case 0x0018: return "Flash did not fire, auto mode"; case 0x0019: return "Flash fired, auto mode"; case 0x001D: return "Flash fired, auto mode, return light not detected"; case 0x001F: return "Flash fired, auto mode, return light detected"; case 0x0020: return "No flash function"; case 0x0041: return "Flash fired, red-eye reduction mode"; case 0x0045: return "Flash fired, red-eye reduction mode, return light not detected"; case 0x0047: return "Flash fired, red-eye reduction mode, return light detected"; case 0x0049: return "Flash fired, compulsory flash mode, red-eye reduction mode"; case 0x004D: return "Flash fired, compulsory flash mode, red-eye reduction mode, return light not detected"; case 0x004F: return "Flash fired, compulsory flash mode, red-eye reduction mode, return light detected"; case 0x0059: return "Flash fired, auto mode, red-eye reduction mode"; case 0x005D: return "Flash fired, auto mode, return light not detected, red-eye reduction mode"; case 0x005F: return "Flash fired, auto mode, return light detected, red-eye reduction mode"; default: return "unbekannt"; } } } public string ColorSpace { get { int index = Array.BinarySearch(Infofields, 0xA001); if (index < 0) return null; int fr = Infofields[index].GetUInt16() & 0xffff; switch (fr) { case 1: return "sRGB"; case 0xffff: return "Unkalibriert"; default: return "unbekannt"; } } } public int ISO { get { int index = Array.BinarySearch(Infofields, 0x8827); if (index < 0) return 0; return Infofields[index].GetUInt16(); } } public int ImageWidth { get { int index = Array.BinarySearch(Infofields, 0xA002); if (index < 0) return ImageSize.Width; return Infofields[index].GetInteger(); } } public int ImageHeight { get { int index = Array.BinarySearch(Infofields, 0xA003); if (index < 0) return ImageSize.Height; return Infofields[index].GetInteger(); } } public string ExifVersion { get { int index = Array.BinarySearch(Infofields, 0x9000); if (index < 0) return ""; byte[] bytes = Infofields[index].GetBytes(); return string.Format("{0}{1}{2}{3}", (char)bytes[0], (char)bytes[1], (char)bytes[2], (char)bytes[3]); } } public string FlashpixVersion { get { int index = Array.BinarySearch(Infofields, 0xA000); if (index < 0) return ""; byte[] bytes = Infofields[index].GetBytes(); return string.Format("{0}{1}{2}{3}", (char)bytes[0], (char)bytes[1], (char)bytes[2], (char)bytes[3]); } } public double ShutterSpeedCalculated { get { int index = Array.BinarySearch(Infofields, 0x9201); if (index < 0) return 0; Fraction b = Infofields[index].GetSRational(); return 1 / Math.Pow(2, b.Value); } } public double ApertureCalculated { get { int index = Array.BinarySearch(Infofields, 0x9202); if (index < 0) return 0; Fraction b = Infofields[index].GetRational(); return Math.Pow(2, b.Value / 2.0); } } public string FocalLength { get { int index = Array.BinarySearch(Infofields, 0x920A); if (index < 0) return ""; return Infofields[index].GetRational().Value.ToString("0 mm"); } } public string FocalLength35mm { get { int index = Array.BinarySearch(Infofields, 0xA405); if (index < 0) return ""; return Infofields[index].GetUInt16().ToString("0 mm"); } } public string ImageFormat { get { int index = Array.BinarySearch(Infofields, 0xA406); if (index < 0) return ""; switch (Infofields[index].GetUInt16()) { case 0: return "Standard"; case 1: return "Querformat"; case 2: return "Hochformat"; case 3: return "Nacht"; default: return "unbekannt"; } } } public double Latitude { get { int index = Array.BinarySearch(Infofields, 0x1); if (index < 0) return 0; string NS = Infofields[index].GetASCIIString(); double faktor = NS == "N" ? 1 : -1; index = Array.BinarySearch(Infofields, 0x2); if (index < 0) return 0; return faktor * (Infofields[index].GetRational(0).Value + Infofields[index].GetRational(1).Value / 60 + Infofields[index].GetRational(2).Value / 3600); } } public double Longitude { get { int index = Array.BinarySearch(Infofields, 0x3); if (index < 0) return 0; string EW = Infofields[index].GetASCIIString(); double faktor = EW == "E" ? 1 : -1; index = Array.BinarySearch(Infofields, 0x4); if (index < 0) return 0; return faktor * (Infofields[index].GetRational(0).Value + Infofields[index].GetRational(1).Value / 60 + Infofields[index].GetRational(2).Value / 3600); } } private Size imageSize; public Size ImageSize { get { return imageSize; } } public IEnumerable<string> AllStrings { get { return Infofields.Where(inf => inf.PI.Type == 2).Select(inf => inf.GetASCIIString()); } } public ExifInfo(Image image) { imageSize = new Size(image.Width, image.Height); Infofields = new ExifData[image.PropertyItems.Length]; for (int i = 0; i < Infofields.Length; i++) { PropertyItem pi = image.PropertyItems[i]; Infofields[i] = new ExifData(pi); } Array.Sort(Infofields); } public string GetString(int id) { int index = Array.BinarySearch(Infofields, id); if (index < 0) return null; return Infofields[index].GetASCIIString(); } public string GetUtf8String(int id) { int index = Array.BinarySearch(Infofields, id); if (index < 0) return null; return Infofields[index].GetUtf8String(); } public DateTime GetDate(int id) { string t = GetString(id); if (t == null) return new DateTime(0); string[] teile = t.Split(new char[] { ':', ' ' }); return new DateTime(int.Parse(teile[0]), int.Parse(teile[1]), int.Parse(teile[2]), int.Parse(teile[3]), int.Parse(teile[4]), int.Parse(teile[5])); } public void SetDate(int id, DateTime zeit) { int index = Array.BinarySearch(Infofields, id); if (index < 0) return; Infofields[index].SetASCIIString(zeit.ToString("yyyy:MM:dd hh:mm:ss")); } } }
27.545652
159
0.569963
[ "Apache-2.0" ]
drjofu/ImageMetaDataParser
ExifInfo.cs
12,673
C#
using System; using System.Collections.Generic; using System.Text; namespace CrystalClear.UserInterface { public interface IEditorObject { public void ModifierUI() { EditorGUI.Text("No custom Modifier UI has been made for this object."); } } }
17.2
74
0.744186
[ "MIT" ]
CrystalClearEngine/CrystalClear
UserInterface/IEditorObject.cs
260
C#
using System.Resources; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("NetworkConnections")] [assembly: AssemblyDescription("This is a DotNet framework package built for the sole purpose of simplifying the process of network connection information retrieval")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Gaurav Madarkal")] [assembly: AssemblyProduct("NetworkConnections")] [assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("7992eaec-8f0d-411e-93fb-6d0005589eae")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.1")] [assembly: AssemblyFileVersion("1.0.0.1")] [assembly: NeutralResourcesLanguage("en-IN")]
41.564103
167
0.762492
[ "MIT" ]
gauravmadarkal/NetworkConnections
NetworkConnections.Windows/Properties/AssemblyInfo.cs
1,624
C#
using System; using System.Collections.Generic; using Robust.Shared.GameObjects; using Robust.Shared.Serialization; using Robust.Shared.ViewVariables; namespace Content.Shared.GameObjects.Components.VendingMachines { public class SharedVendingMachineComponent : Component { public override string Name => "VendingMachine"; public override uint? NetID => ContentNetIDs.VENDING_MACHINE; [ViewVariables] public List<VendingMachineInventoryEntry> Inventory = new(); [Serializable, NetSerializable] public enum VendingMachineVisuals { VisualState, } [Serializable, NetSerializable] public enum VendingMachineVisualState { Normal, Off, Broken, Eject, Deny, } [Serializable, NetSerializable] public class VendingMachineEjectMessage : BoundUserInterfaceMessage { public readonly string ID; public VendingMachineEjectMessage(string id) { ID = id; } } [Serializable, NetSerializable] public enum VendingMachineUiKey { Key, } [Serializable, NetSerializable] public class InventorySyncRequestMessage : BoundUserInterfaceMessage { } [Serializable, NetSerializable] public class VendingMachineInventoryMessage : BoundUserInterfaceMessage { public readonly List<VendingMachineInventoryEntry> Inventory; public VendingMachineInventoryMessage(List<VendingMachineInventoryEntry> inventory) { Inventory = inventory; } } [Serializable, NetSerializable] public class VendingMachineInventoryEntry { [ViewVariables(VVAccess.ReadWrite)] public string ID; [ViewVariables(VVAccess.ReadWrite)] public uint Amount; public VendingMachineInventoryEntry(string id, uint amount) { ID = id; Amount = amount; } } } }
27.708861
95
0.599817
[ "MIT" ]
assasinwar9/space-station-14
Content.Shared/GameObjects/Components/VendingMachines/SharedVendingMachineComponent.cs
2,191
C#
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; namespace SGI.DataBase.Models { public partial class SGI_Disparo { public long ID { get; set; } [Column(TypeName = "datetime")] public DateTime DATA { get; set; } [Column(TypeName = "time(0)")] public TimeSpan HORA_INICIO { get; set; } public int LIMITE { get; set; } public int DISPARO { get; set; } public int TOTAL_DIA { get; set; } } }
29.1
52
0.621993
[ "Apache-2.0" ]
afonsoft/SGI
SGI.DataBase/Models/SGI_Disparo.cs
584
C#
//------------------------------------------------------------------------------------- // <auto-generated> // This code was generated by the following tool: // https://github.com/bottlenoselabs/c2cs (v2.3.0.0) // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // </auto-generated> // ReSharper disable All //------------------------------------------------------------------------------------- #nullable enable #pragma warning disable 1591 using System; using System.Collections.Generic; using System.Globalization; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; using static bottlenoselabs.imgui.Runtime; using System.Numerics; namespace bottlenoselabs { public static unsafe partial class imgui { private const string LibraryName = "cimgui"; // Function @ cimgui.h:2423:20 [DllImport(LibraryName)] public static extern Vector2* ImVec2_ImVec2_Nil(); // Function @ cimgui.h:2424:17 [DllImport(LibraryName)] public static extern void ImVec2_destroy(Vector2* self); // Function @ cimgui.h:2425:20 [DllImport(LibraryName)] public static extern Vector2* ImVec2_ImVec2_Float(float _x, float _y); // Function @ cimgui.h:2426:20 [DllImport(LibraryName)] public static extern Vector4* ImVec4_ImVec4_Nil(); // Function @ cimgui.h:2427:17 [DllImport(LibraryName)] public static extern void ImVec4_destroy(Vector4* self); // Function @ cimgui.h:2428:20 [DllImport(LibraryName)] public static extern Vector4* ImVec4_ImVec4_Float(float _x, float _y, float _z, float _w); // Function @ cimgui.h:2429:26 [DllImport(LibraryName)] public static extern ImGuiContext* igCreateContext(ImFontAtlas* shared_font_atlas); // Function @ cimgui.h:2430:17 [DllImport(LibraryName)] public static extern void igDestroyContext(ImGuiContext* ctx); // Function @ cimgui.h:2431:26 [DllImport(LibraryName)] public static extern ImGuiContext* igGetCurrentContext(); // Function @ cimgui.h:2432:17 [DllImport(LibraryName)] public static extern void igSetCurrentContext(ImGuiContext* ctx); // Function @ cimgui.h:2433:21 [DllImport(LibraryName)] public static extern ImGuiIO* igGetIO(); // Function @ cimgui.h:2434:24 [DllImport(LibraryName)] public static extern ImGuiStyle* igGetStyle(); // Function @ cimgui.h:2435:17 [DllImport(LibraryName)] public static extern void igNewFrame(); // Function @ cimgui.h:2436:17 [DllImport(LibraryName)] public static extern void igEndFrame(); // Function @ cimgui.h:2437:17 [DllImport(LibraryName)] public static extern void igRender(); // Function @ cimgui.h:2438:24 [DllImport(LibraryName)] public static extern ImDrawData* igGetDrawData(); // Function @ cimgui.h:2439:17 [DllImport(LibraryName)] public static extern void igShowDemoWindow(CBool* p_open); // Function @ cimgui.h:2440:17 [DllImport(LibraryName)] public static extern void igShowMetricsWindow(CBool* p_open); // Function @ cimgui.h:2441:17 [DllImport(LibraryName)] public static extern void igShowStackToolWindow(CBool* p_open); // Function @ cimgui.h:2442:17 [DllImport(LibraryName)] public static extern void igShowAboutWindow(CBool* p_open); // Function @ cimgui.h:2443:17 [DllImport(LibraryName)] public static extern void igShowStyleEditor(ImGuiStyle* @ref); // Function @ cimgui.h:2444:17 [DllImport(LibraryName)] public static extern CBool igShowStyleSelector(CString label); // Function @ cimgui.h:2445:17 [DllImport(LibraryName)] public static extern void igShowFontSelector(CString label); // Function @ cimgui.h:2446:17 [DllImport(LibraryName)] public static extern void igShowUserGuide(); // Function @ cimgui.h:2447:24 [DllImport(LibraryName)] public static extern CString igGetVersion(); // Function @ cimgui.h:2448:17 [DllImport(LibraryName)] public static extern void igStyleColorsDark(ImGuiStyle* dst); // Function @ cimgui.h:2449:17 [DllImport(LibraryName)] public static extern void igStyleColorsLight(ImGuiStyle* dst); // Function @ cimgui.h:2450:17 [DllImport(LibraryName)] public static extern void igStyleColorsClassic(ImGuiStyle* dst); // Function @ cimgui.h:2451:17 [DllImport(LibraryName)] public static extern CBool igBegin(CString name, CBool* p_open, ImGuiWindowFlags flags); // Function @ cimgui.h:2452:17 [DllImport(LibraryName)] public static extern void igEnd(); // Function @ cimgui.h:2453:17 [DllImport(LibraryName)] public static extern CBool igBeginChild_Str(CString str_id, Vector2 size, CBool border, ImGuiWindowFlags flags); // Function @ cimgui.h:2454:17 [DllImport(LibraryName)] public static extern CBool igBeginChild_ID(ImGuiID id, Vector2 size, CBool border, ImGuiWindowFlags flags); // Function @ cimgui.h:2455:17 [DllImport(LibraryName)] public static extern void igEndChild(); // Function @ cimgui.h:2456:17 [DllImport(LibraryName)] public static extern CBool igIsWindowAppearing(); // Function @ cimgui.h:2457:17 [DllImport(LibraryName)] public static extern CBool igIsWindowCollapsed(); // Function @ cimgui.h:2458:17 [DllImport(LibraryName)] public static extern CBool igIsWindowFocused(ImGuiFocusedFlags flags); // Function @ cimgui.h:2459:17 [DllImport(LibraryName)] public static extern CBool igIsWindowHovered(ImGuiHoveredFlags flags); // Function @ cimgui.h:2460:24 [DllImport(LibraryName)] public static extern ImDrawList* igGetWindowDrawList(); // Function @ cimgui.h:2461:17 [DllImport(LibraryName)] public static extern void igGetWindowPos(Vector2* pOut); // Function @ cimgui.h:2462:17 [DllImport(LibraryName)] public static extern void igGetWindowSize(Vector2* pOut); // Function @ cimgui.h:2463:18 [DllImport(LibraryName)] public static extern float igGetWindowWidth(); // Function @ cimgui.h:2464:18 [DllImport(LibraryName)] public static extern float igGetWindowHeight(); // Function @ cimgui.h:2465:17 [DllImport(LibraryName)] public static extern void igSetNextWindowPos(Vector2 pos, ImGuiCond cond, Vector2 pivot); // Function @ cimgui.h:2466:17 [DllImport(LibraryName)] public static extern void igSetNextWindowSize(Vector2 size, ImGuiCond cond); // Function @ cimgui.h:2467:17 [DllImport(LibraryName)] public static extern void igSetNextWindowSizeConstraints(Vector2 size_min, Vector2 size_max, ImGuiSizeCallback custom_callback, void* custom_callback_data); // Function @ cimgui.h:2468:17 [DllImport(LibraryName)] public static extern void igSetNextWindowContentSize(Vector2 size); // Function @ cimgui.h:2469:17 [DllImport(LibraryName)] public static extern void igSetNextWindowCollapsed(CBool collapsed, ImGuiCond cond); // Function @ cimgui.h:2470:17 [DllImport(LibraryName)] public static extern void igSetNextWindowFocus(); // Function @ cimgui.h:2471:17 [DllImport(LibraryName)] public static extern void igSetNextWindowBgAlpha(float alpha); // Function @ cimgui.h:2472:17 [DllImport(LibraryName)] public static extern void igSetWindowPos_Vec2(Vector2 pos, ImGuiCond cond); // Function @ cimgui.h:2473:17 [DllImport(LibraryName)] public static extern void igSetWindowSize_Vec2(Vector2 size, ImGuiCond cond); // Function @ cimgui.h:2474:17 [DllImport(LibraryName)] public static extern void igSetWindowCollapsed_Bool(CBool collapsed, ImGuiCond cond); // Function @ cimgui.h:2475:17 [DllImport(LibraryName)] public static extern void igSetWindowFocus_Nil(); // Function @ cimgui.h:2476:17 [DllImport(LibraryName)] public static extern void igSetWindowFontScale(float scale); // Function @ cimgui.h:2477:17 [DllImport(LibraryName)] public static extern void igSetWindowPos_Str(CString name, Vector2 pos, ImGuiCond cond); // Function @ cimgui.h:2478:17 [DllImport(LibraryName)] public static extern void igSetWindowSize_Str(CString name, Vector2 size, ImGuiCond cond); // Function @ cimgui.h:2479:17 [DllImport(LibraryName)] public static extern void igSetWindowCollapsed_Str(CString name, CBool collapsed, ImGuiCond cond); // Function @ cimgui.h:2480:17 [DllImport(LibraryName)] public static extern void igSetWindowFocus_Str(CString name); // Function @ cimgui.h:2481:17 [DllImport(LibraryName)] public static extern void igGetContentRegionAvail(Vector2* pOut); // Function @ cimgui.h:2482:17 [DllImport(LibraryName)] public static extern void igGetContentRegionMax(Vector2* pOut); // Function @ cimgui.h:2483:17 [DllImport(LibraryName)] public static extern void igGetWindowContentRegionMin(Vector2* pOut); // Function @ cimgui.h:2484:17 [DllImport(LibraryName)] public static extern void igGetWindowContentRegionMax(Vector2* pOut); // Function @ cimgui.h:2485:18 [DllImport(LibraryName)] public static extern float igGetScrollX(); // Function @ cimgui.h:2486:18 [DllImport(LibraryName)] public static extern float igGetScrollY(); // Function @ cimgui.h:2487:17 [DllImport(LibraryName)] public static extern void igSetScrollX_Float(float scroll_x); // Function @ cimgui.h:2488:17 [DllImport(LibraryName)] public static extern void igSetScrollY_Float(float scroll_y); // Function @ cimgui.h:2489:18 [DllImport(LibraryName)] public static extern float igGetScrollMaxX(); // Function @ cimgui.h:2490:18 [DllImport(LibraryName)] public static extern float igGetScrollMaxY(); // Function @ cimgui.h:2491:17 [DllImport(LibraryName)] public static extern void igSetScrollHereX(float center_x_ratio); // Function @ cimgui.h:2492:17 [DllImport(LibraryName)] public static extern void igSetScrollHereY(float center_y_ratio); // Function @ cimgui.h:2493:17 [DllImport(LibraryName)] public static extern void igSetScrollFromPosX_Float(float local_x, float center_x_ratio); // Function @ cimgui.h:2494:17 [DllImport(LibraryName)] public static extern void igSetScrollFromPosY_Float(float local_y, float center_y_ratio); // Function @ cimgui.h:2495:17 [DllImport(LibraryName)] public static extern void igPushFont(ImFont* font); // Function @ cimgui.h:2496:17 [DllImport(LibraryName)] public static extern void igPopFont(); // Function @ cimgui.h:2497:17 [DllImport(LibraryName)] public static extern void igPushStyleColor_U32(ImGuiCol idx, uint col); // Function @ cimgui.h:2498:17 [DllImport(LibraryName)] public static extern void igPushStyleColor_Vec4(ImGuiCol idx, Vector4 col); // Function @ cimgui.h:2499:17 [DllImport(LibraryName)] public static extern void igPopStyleColor(int count); // Function @ cimgui.h:2500:17 [DllImport(LibraryName)] public static extern void igPushStyleVar_Float(ImGuiStyleVar idx, float val); // Function @ cimgui.h:2501:17 [DllImport(LibraryName)] public static extern void igPushStyleVar_Vec2(ImGuiStyleVar idx, Vector2 val); // Function @ cimgui.h:2502:17 [DllImport(LibraryName)] public static extern void igPopStyleVar(int count); // Function @ cimgui.h:2503:17 [DllImport(LibraryName)] public static extern void igPushAllowKeyboardFocus(CBool allow_keyboard_focus); // Function @ cimgui.h:2504:17 [DllImport(LibraryName)] public static extern void igPopAllowKeyboardFocus(); // Function @ cimgui.h:2505:17 [DllImport(LibraryName)] public static extern void igPushButtonRepeat(CBool repeat); // Function @ cimgui.h:2506:17 [DllImport(LibraryName)] public static extern void igPopButtonRepeat(); // Function @ cimgui.h:2507:17 [DllImport(LibraryName)] public static extern void igPushItemWidth(float item_width); // Function @ cimgui.h:2508:17 [DllImport(LibraryName)] public static extern void igPopItemWidth(); // Function @ cimgui.h:2509:17 [DllImport(LibraryName)] public static extern void igSetNextItemWidth(float item_width); // Function @ cimgui.h:2510:18 [DllImport(LibraryName)] public static extern float igCalcItemWidth(); // Function @ cimgui.h:2511:17 [DllImport(LibraryName)] public static extern void igPushTextWrapPos(float wrap_local_pos_x); // Function @ cimgui.h:2512:17 [DllImport(LibraryName)] public static extern void igPopTextWrapPos(); // Function @ cimgui.h:2513:20 [DllImport(LibraryName)] public static extern ImFont* igGetFont(); // Function @ cimgui.h:2514:18 [DllImport(LibraryName)] public static extern float igGetFontSize(); // Function @ cimgui.h:2515:17 [DllImport(LibraryName)] public static extern void igGetFontTexUvWhitePixel(Vector2* pOut); // Function @ cimgui.h:2516:18 [DllImport(LibraryName)] public static extern uint igGetColorU32_Col(ImGuiCol idx, float alpha_mul); // Function @ cimgui.h:2517:18 [DllImport(LibraryName)] public static extern uint igGetColorU32_Vec4(Vector4 col); // Function @ cimgui.h:2518:18 [DllImport(LibraryName)] public static extern uint igGetColorU32_U32(uint col); // Function @ cimgui.h:2519:26 [DllImport(LibraryName)] public static extern Vector4* igGetStyleColorVec4(ImGuiCol idx); // Function @ cimgui.h:2520:17 [DllImport(LibraryName)] public static extern void igSeparator(); // Function @ cimgui.h:2521:17 [DllImport(LibraryName)] public static extern void igSameLine(float offset_from_start_x, float spacing); // Function @ cimgui.h:2522:17 [DllImport(LibraryName)] public static extern void igNewLine(); // Function @ cimgui.h:2523:17 [DllImport(LibraryName)] public static extern void igSpacing(); // Function @ cimgui.h:2524:17 [DllImport(LibraryName)] public static extern void igDummy(Vector2 size); // Function @ cimgui.h:2525:17 [DllImport(LibraryName)] public static extern void igIndent(float indent_w); // Function @ cimgui.h:2526:17 [DllImport(LibraryName)] public static extern void igUnindent(float indent_w); // Function @ cimgui.h:2527:17 [DllImport(LibraryName)] public static extern void igBeginGroup(); // Function @ cimgui.h:2528:17 [DllImport(LibraryName)] public static extern void igEndGroup(); // Function @ cimgui.h:2529:17 [DllImport(LibraryName)] public static extern void igGetCursorPos(Vector2* pOut); // Function @ cimgui.h:2530:18 [DllImport(LibraryName)] public static extern float igGetCursorPosX(); // Function @ cimgui.h:2531:18 [DllImport(LibraryName)] public static extern float igGetCursorPosY(); // Function @ cimgui.h:2532:17 [DllImport(LibraryName)] public static extern void igSetCursorPos(Vector2 local_pos); // Function @ cimgui.h:2533:17 [DllImport(LibraryName)] public static extern void igSetCursorPosX(float local_x); // Function @ cimgui.h:2534:17 [DllImport(LibraryName)] public static extern void igSetCursorPosY(float local_y); // Function @ cimgui.h:2535:17 [DllImport(LibraryName)] public static extern void igGetCursorStartPos(Vector2* pOut); // Function @ cimgui.h:2536:17 [DllImport(LibraryName)] public static extern void igGetCursorScreenPos(Vector2* pOut); // Function @ cimgui.h:2537:17 [DllImport(LibraryName)] public static extern void igSetCursorScreenPos(Vector2 pos); // Function @ cimgui.h:2538:17 [DllImport(LibraryName)] public static extern void igAlignTextToFramePadding(); // Function @ cimgui.h:2539:18 [DllImport(LibraryName)] public static extern float igGetTextLineHeight(); // Function @ cimgui.h:2540:18 [DllImport(LibraryName)] public static extern float igGetTextLineHeightWithSpacing(); // Function @ cimgui.h:2541:18 [DllImport(LibraryName)] public static extern float igGetFrameHeight(); // Function @ cimgui.h:2542:18 [DllImport(LibraryName)] public static extern float igGetFrameHeightWithSpacing(); // Function @ cimgui.h:2543:17 [DllImport(LibraryName)] public static extern void igPushID_Str(CString str_id); // Function @ cimgui.h:2544:17 [DllImport(LibraryName)] public static extern void igPushID_StrStr(CString str_id_begin, CString str_id_end); // Function @ cimgui.h:2545:17 [DllImport(LibraryName)] public static extern void igPushID_Ptr(void* ptr_id); // Function @ cimgui.h:2546:17 [DllImport(LibraryName)] public static extern void igPushID_Int(int int_id); // Function @ cimgui.h:2547:17 [DllImport(LibraryName)] public static extern void igPopID(); // Function @ cimgui.h:2548:20 [DllImport(LibraryName)] public static extern ImGuiID igGetID_Str(CString str_id); // Function @ cimgui.h:2549:20 [DllImport(LibraryName)] public static extern ImGuiID igGetID_StrStr(CString str_id_begin, CString str_id_end); // Function @ cimgui.h:2550:20 [DllImport(LibraryName)] public static extern ImGuiID igGetID_Ptr(void* ptr_id); // Function @ cimgui.h:2551:17 [DllImport(LibraryName)] public static extern void igTextUnformatted(CString text, CString text_end); // Function @ cimgui.h:2552:17 [DllImport(LibraryName)] public static extern void igText(CString fmt); // Function @ cimgui.h:2553:17 [DllImport(LibraryName)] public static extern void igTextV(CString fmt, nint args); // Function @ cimgui.h:2554:17 [DllImport(LibraryName)] public static extern void igTextColored(Vector4 col, CString fmt); // Function @ cimgui.h:2555:17 [DllImport(LibraryName)] public static extern void igTextColoredV(Vector4 col, CString fmt, nint args); // Function @ cimgui.h:2556:17 [DllImport(LibraryName)] public static extern void igTextDisabled(CString fmt); // Function @ cimgui.h:2557:17 [DllImport(LibraryName)] public static extern void igTextDisabledV(CString fmt, nint args); // Function @ cimgui.h:2558:17 [DllImport(LibraryName)] public static extern void igTextWrapped(CString fmt); // Function @ cimgui.h:2559:17 [DllImport(LibraryName)] public static extern void igTextWrappedV(CString fmt, nint args); // Function @ cimgui.h:2560:17 [DllImport(LibraryName)] public static extern void igLabelText(CString label, CString fmt); // Function @ cimgui.h:2561:17 [DllImport(LibraryName)] public static extern void igLabelTextV(CString label, CString fmt, nint args); // Function @ cimgui.h:2562:17 [DllImport(LibraryName)] public static extern void igBulletText(CString fmt); // Function @ cimgui.h:2563:17 [DllImport(LibraryName)] public static extern void igBulletTextV(CString fmt, nint args); // Function @ cimgui.h:2564:17 [DllImport(LibraryName)] public static extern CBool igButton(CString label, Vector2 size); // Function @ cimgui.h:2565:17 [DllImport(LibraryName)] public static extern CBool igSmallButton(CString label); // Function @ cimgui.h:2566:17 [DllImport(LibraryName)] public static extern CBool igInvisibleButton(CString str_id, Vector2 size, ImGuiButtonFlags flags); // Function @ cimgui.h:2567:17 [DllImport(LibraryName)] public static extern CBool igArrowButton(CString str_id, ImGuiDir dir); // Function @ cimgui.h:2568:17 [DllImport(LibraryName)] public static extern void igImage(ImTextureID user_texture_id, Vector2 size, Vector2 uv0, Vector2 uv1, Vector4 tint_col, Vector4 border_col); // Function @ cimgui.h:2569:17 [DllImport(LibraryName)] public static extern CBool igImageButton(ImTextureID user_texture_id, Vector2 size, Vector2 uv0, Vector2 uv1, int frame_padding, Vector4 bg_col, Vector4 tint_col); // Function @ cimgui.h:2570:17 [DllImport(LibraryName)] public static extern CBool igCheckbox(CString label, CBool* v); // Function @ cimgui.h:2571:17 [DllImport(LibraryName)] public static extern CBool igCheckboxFlags_IntPtr(CString label, long* flags, int flags_value); // Function @ cimgui.h:2572:17 [DllImport(LibraryName)] public static extern CBool igCheckboxFlags_UintPtr(CString label, ulong* flags, uint flags_value); // Function @ cimgui.h:2573:17 [DllImport(LibraryName)] public static extern CBool igRadioButton_Bool(CString label, CBool active); // Function @ cimgui.h:2574:17 [DllImport(LibraryName)] public static extern CBool igRadioButton_IntPtr(CString label, long* v, int v_button); // Function @ cimgui.h:2575:17 [DllImport(LibraryName)] public static extern void igProgressBar(float fraction, Vector2 size_arg, CString overlay); // Function @ cimgui.h:2576:17 [DllImport(LibraryName)] public static extern void igBullet(); // Function @ cimgui.h:2577:17 [DllImport(LibraryName)] public static extern CBool igBeginCombo(CString label, CString preview_value, ImGuiComboFlags flags); // Function @ cimgui.h:2578:17 [DllImport(LibraryName)] public static extern void igEndCombo(); // Function @ cimgui.h:2579:17 [DllImport(LibraryName)] public static extern CBool igCombo_Str_arr(CString label, long* current_item, CString* items, int items_count, int popup_max_height_in_items); // Function @ cimgui.h:2580:17 [DllImport(LibraryName)] public static extern CBool igCombo_Str(CString label, long* current_item, CString items_separated_by_zeros, int popup_max_height_in_items); // Function @ cimgui.h:2581:17 [DllImport(LibraryName)] public static extern CBool igCombo_FnBoolPtr(CString label, long* current_item, FnPtr_IMGUI_VoidPtr_Int_CStringPtr_CBool items_getter, void* data, int items_count, int popup_max_height_in_items); // Function @ cimgui.h:2582:17 [DllImport(LibraryName)] public static extern CBool igDragFloat(CString label, float* v, float v_speed, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2583:17 [DllImport(LibraryName)] public static extern CBool igDragFloat2(CString label, float* v, float v_speed, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2584:17 [DllImport(LibraryName)] public static extern CBool igDragFloat3(CString label, float* v, float v_speed, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2585:17 [DllImport(LibraryName)] public static extern CBool igDragFloat4(CString label, float* v, float v_speed, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2586:17 [DllImport(LibraryName)] public static extern CBool igDragFloatRange2(CString label, float* v_current_min, float* v_current_max, float v_speed, float v_min, float v_max, CString format, CString format_max, ImGuiSliderFlags flags); // Function @ cimgui.h:2587:17 [DllImport(LibraryName)] public static extern CBool igDragInt(CString label, long* v, float v_speed, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2588:17 [DllImport(LibraryName)] public static extern CBool igDragInt2(CString label, int* v, float v_speed, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2589:17 [DllImport(LibraryName)] public static extern CBool igDragInt3(CString label, int* v, float v_speed, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2590:17 [DllImport(LibraryName)] public static extern CBool igDragInt4(CString label, int* v, float v_speed, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2591:17 [DllImport(LibraryName)] public static extern CBool igDragIntRange2(CString label, long* v_current_min, long* v_current_max, float v_speed, int v_min, int v_max, CString format, CString format_max, ImGuiSliderFlags flags); // Function @ cimgui.h:2592:17 [DllImport(LibraryName)] public static extern CBool igDragScalar(CString label, ImGuiDataType data_type, void* p_data, float v_speed, void* p_min, void* p_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2593:17 [DllImport(LibraryName)] public static extern CBool igDragScalarN(CString label, ImGuiDataType data_type, void* p_data, int components, float v_speed, void* p_min, void* p_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2594:17 [DllImport(LibraryName)] public static extern CBool igSliderFloat(CString label, float* v, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2595:17 [DllImport(LibraryName)] public static extern CBool igSliderFloat2(CString label, float* v, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2596:17 [DllImport(LibraryName)] public static extern CBool igSliderFloat3(CString label, float* v, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2597:17 [DllImport(LibraryName)] public static extern CBool igSliderFloat4(CString label, float* v, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2598:17 [DllImport(LibraryName)] public static extern CBool igSliderAngle(CString label, float* v_rad, float v_degrees_min, float v_degrees_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2599:17 [DllImport(LibraryName)] public static extern CBool igSliderInt(CString label, long* v, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2600:17 [DllImport(LibraryName)] public static extern CBool igSliderInt2(CString label, int* v, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2601:17 [DllImport(LibraryName)] public static extern CBool igSliderInt3(CString label, int* v, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2602:17 [DllImport(LibraryName)] public static extern CBool igSliderInt4(CString label, int* v, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2603:17 [DllImport(LibraryName)] public static extern CBool igSliderScalar(CString label, ImGuiDataType data_type, void* p_data, void* p_min, void* p_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2604:17 [DllImport(LibraryName)] public static extern CBool igSliderScalarN(CString label, ImGuiDataType data_type, void* p_data, int components, void* p_min, void* p_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2605:17 [DllImport(LibraryName)] public static extern CBool igVSliderFloat(CString label, Vector2 size, float* v, float v_min, float v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2606:17 [DllImport(LibraryName)] public static extern CBool igVSliderInt(CString label, Vector2 size, long* v, int v_min, int v_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2607:17 [DllImport(LibraryName)] public static extern CBool igVSliderScalar(CString label, Vector2 size, ImGuiDataType data_type, void* p_data, void* p_min, void* p_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:2608:17 [DllImport(LibraryName)] public static extern CBool igInputText(CString label, CString buf, ulong buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); // Function @ cimgui.h:2609:17 [DllImport(LibraryName)] public static extern CBool igInputTextMultiline(CString label, CString buf, ulong buf_size, Vector2 size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); // Function @ cimgui.h:2610:17 [DllImport(LibraryName)] public static extern CBool igInputTextWithHint(CString label, CString hint, CString buf, ulong buf_size, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); // Function @ cimgui.h:2611:17 [DllImport(LibraryName)] public static extern CBool igInputFloat(CString label, float* v, float step, float step_fast, CString format, ImGuiInputTextFlags flags); // Function @ cimgui.h:2612:17 [DllImport(LibraryName)] public static extern CBool igInputFloat2(CString label, float* v, CString format, ImGuiInputTextFlags flags); // Function @ cimgui.h:2613:17 [DllImport(LibraryName)] public static extern CBool igInputFloat3(CString label, float* v, CString format, ImGuiInputTextFlags flags); // Function @ cimgui.h:2614:17 [DllImport(LibraryName)] public static extern CBool igInputFloat4(CString label, float* v, CString format, ImGuiInputTextFlags flags); // Function @ cimgui.h:2615:17 [DllImport(LibraryName)] public static extern CBool igInputInt(CString label, long* v, int step, int step_fast, ImGuiInputTextFlags flags); // Function @ cimgui.h:2616:17 [DllImport(LibraryName)] public static extern CBool igInputInt2(CString label, int* v, ImGuiInputTextFlags flags); // Function @ cimgui.h:2617:17 [DllImport(LibraryName)] public static extern CBool igInputInt3(CString label, int* v, ImGuiInputTextFlags flags); // Function @ cimgui.h:2618:17 [DllImport(LibraryName)] public static extern CBool igInputInt4(CString label, int* v, ImGuiInputTextFlags flags); // Function @ cimgui.h:2619:17 [DllImport(LibraryName)] public static extern CBool igInputDouble(CString label, double* v, double step, double step_fast, CString format, ImGuiInputTextFlags flags); // Function @ cimgui.h:2620:17 [DllImport(LibraryName)] public static extern CBool igInputScalar(CString label, ImGuiDataType data_type, void* p_data, void* p_step, void* p_step_fast, CString format, ImGuiInputTextFlags flags); // Function @ cimgui.h:2621:17 [DllImport(LibraryName)] public static extern CBool igInputScalarN(CString label, ImGuiDataType data_type, void* p_data, int components, void* p_step, void* p_step_fast, CString format, ImGuiInputTextFlags flags); // Function @ cimgui.h:2622:17 [DllImport(LibraryName)] public static extern CBool igColorEdit3(CString label, float* col, ImGuiColorEditFlags flags); // Function @ cimgui.h:2623:17 [DllImport(LibraryName)] public static extern CBool igColorEdit4(CString label, float* col, ImGuiColorEditFlags flags); // Function @ cimgui.h:2624:17 [DllImport(LibraryName)] public static extern CBool igColorPicker3(CString label, float* col, ImGuiColorEditFlags flags); // Function @ cimgui.h:2625:17 [DllImport(LibraryName)] public static extern CBool igColorPicker4(CString label, float* col, ImGuiColorEditFlags flags, float* ref_col); // Function @ cimgui.h:2626:17 [DllImport(LibraryName)] public static extern CBool igColorButton(CString desc_id, Vector4 col, ImGuiColorEditFlags flags, Vector2 size); // Function @ cimgui.h:2627:17 [DllImport(LibraryName)] public static extern void igSetColorEditOptions(ImGuiColorEditFlags flags); // Function @ cimgui.h:2628:17 [DllImport(LibraryName)] public static extern CBool igTreeNode_Str(CString label); // Function @ cimgui.h:2629:17 [DllImport(LibraryName)] public static extern CBool igTreeNode_StrStr(CString str_id, CString fmt); // Function @ cimgui.h:2630:17 [DllImport(LibraryName)] public static extern CBool igTreeNode_Ptr(void* ptr_id, CString fmt); // Function @ cimgui.h:2631:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeV_Str(CString str_id, CString fmt, nint args); // Function @ cimgui.h:2632:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeV_Ptr(void* ptr_id, CString fmt, nint args); // Function @ cimgui.h:2633:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeEx_Str(CString label, ImGuiTreeNodeFlags flags); // Function @ cimgui.h:2634:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeEx_StrStr(CString str_id, ImGuiTreeNodeFlags flags, CString fmt); // Function @ cimgui.h:2635:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeEx_Ptr(void* ptr_id, ImGuiTreeNodeFlags flags, CString fmt); // Function @ cimgui.h:2636:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeExV_Str(CString str_id, ImGuiTreeNodeFlags flags, CString fmt, nint args); // Function @ cimgui.h:2637:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeExV_Ptr(void* ptr_id, ImGuiTreeNodeFlags flags, CString fmt, nint args); // Function @ cimgui.h:2638:17 [DllImport(LibraryName)] public static extern void igTreePush_Str(CString str_id); // Function @ cimgui.h:2639:17 [DllImport(LibraryName)] public static extern void igTreePush_Ptr(void* ptr_id); // Function @ cimgui.h:2640:17 [DllImport(LibraryName)] public static extern void igTreePop(); // Function @ cimgui.h:2641:18 [DllImport(LibraryName)] public static extern float igGetTreeNodeToLabelSpacing(); // Function @ cimgui.h:2642:17 [DllImport(LibraryName)] public static extern CBool igCollapsingHeader_TreeNodeFlags(CString label, ImGuiTreeNodeFlags flags); // Function @ cimgui.h:2643:17 [DllImport(LibraryName)] public static extern CBool igCollapsingHeader_BoolPtr(CString label, CBool* p_visible, ImGuiTreeNodeFlags flags); // Function @ cimgui.h:2644:17 [DllImport(LibraryName)] public static extern void igSetNextItemOpen(CBool is_open, ImGuiCond cond); // Function @ cimgui.h:2645:17 [DllImport(LibraryName)] public static extern CBool igSelectable_Bool(CString label, CBool selected, ImGuiSelectableFlags flags, Vector2 size); // Function @ cimgui.h:2646:17 [DllImport(LibraryName)] public static extern CBool igSelectable_BoolPtr(CString label, CBool* p_selected, ImGuiSelectableFlags flags, Vector2 size); // Function @ cimgui.h:2647:17 [DllImport(LibraryName)] public static extern CBool igBeginListBox(CString label, Vector2 size); // Function @ cimgui.h:2648:17 [DllImport(LibraryName)] public static extern void igEndListBox(); // Function @ cimgui.h:2649:17 [DllImport(LibraryName)] public static extern CBool igListBox_Str_arr(CString label, long* current_item, CString* items, int items_count, int height_in_items); // Function @ cimgui.h:2650:17 [DllImport(LibraryName)] public static extern CBool igListBox_FnBoolPtr(CString label, long* current_item, FnPtr_IMGUI_VoidPtr_Int_CStringPtr_CBool items_getter, void* data, int items_count, int height_in_items); // Function @ cimgui.h:2651:17 [DllImport(LibraryName)] public static extern void igPlotLines_FloatPtr(CString label, float* values, int values_count, int values_offset, CString overlay_text, float scale_min, float scale_max, Vector2 graph_size, int stride); // Function @ cimgui.h:2652:17 [DllImport(LibraryName)] public static extern void igPlotLines_FnFloatPtr(CString label, FnPtr_IMGUI_VoidPtr_Int_Float values_getter, void* data, int values_count, int values_offset, CString overlay_text, float scale_min, float scale_max, Vector2 graph_size); // Function @ cimgui.h:2653:17 [DllImport(LibraryName)] public static extern void igPlotHistogram_FloatPtr(CString label, float* values, int values_count, int values_offset, CString overlay_text, float scale_min, float scale_max, Vector2 graph_size, int stride); // Function @ cimgui.h:2654:17 [DllImport(LibraryName)] public static extern void igPlotHistogram_FnFloatPtr(CString label, FnPtr_IMGUI_VoidPtr_Int_Float values_getter, void* data, int values_count, int values_offset, CString overlay_text, float scale_min, float scale_max, Vector2 graph_size); // Function @ cimgui.h:2655:17 [DllImport(LibraryName)] public static extern void igValue_Bool(CString prefix, CBool b); // Function @ cimgui.h:2656:17 [DllImport(LibraryName)] public static extern void igValue_Int(CString prefix, int v); // Function @ cimgui.h:2657:17 [DllImport(LibraryName)] public static extern void igValue_Uint(CString prefix, uint v); // Function @ cimgui.h:2658:17 [DllImport(LibraryName)] public static extern void igValue_Float(CString prefix, float v, CString float_format); // Function @ cimgui.h:2659:17 [DllImport(LibraryName)] public static extern CBool igBeginMenuBar(); // Function @ cimgui.h:2660:17 [DllImport(LibraryName)] public static extern void igEndMenuBar(); // Function @ cimgui.h:2661:17 [DllImport(LibraryName)] public static extern CBool igBeginMainMenuBar(); // Function @ cimgui.h:2662:17 [DllImport(LibraryName)] public static extern void igEndMainMenuBar(); // Function @ cimgui.h:2663:17 [DllImport(LibraryName)] public static extern CBool igBeginMenu(CString label, CBool enabled); // Function @ cimgui.h:2664:17 [DllImport(LibraryName)] public static extern void igEndMenu(); // Function @ cimgui.h:2665:17 [DllImport(LibraryName)] public static extern CBool igMenuItem_Bool(CString label, CString shortcut, CBool selected, CBool enabled); // Function @ cimgui.h:2666:17 [DllImport(LibraryName)] public static extern CBool igMenuItem_BoolPtr(CString label, CString shortcut, CBool* p_selected, CBool enabled); // Function @ cimgui.h:2667:17 [DllImport(LibraryName)] public static extern void igBeginTooltip(); // Function @ cimgui.h:2668:17 [DllImport(LibraryName)] public static extern void igEndTooltip(); // Function @ cimgui.h:2669:17 [DllImport(LibraryName)] public static extern void igSetTooltip(CString fmt); // Function @ cimgui.h:2670:17 [DllImport(LibraryName)] public static extern void igSetTooltipV(CString fmt, nint args); // Function @ cimgui.h:2671:17 [DllImport(LibraryName)] public static extern CBool igBeginPopup(CString str_id, ImGuiWindowFlags flags); // Function @ cimgui.h:2672:17 [DllImport(LibraryName)] public static extern CBool igBeginPopupModal(CString name, CBool* p_open, ImGuiWindowFlags flags); // Function @ cimgui.h:2673:17 [DllImport(LibraryName)] public static extern void igEndPopup(); // Function @ cimgui.h:2674:17 [DllImport(LibraryName)] public static extern void igOpenPopup_Str(CString str_id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:2675:17 [DllImport(LibraryName)] public static extern void igOpenPopup_ID(ImGuiID id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:2676:17 [DllImport(LibraryName)] public static extern void igOpenPopupOnItemClick(CString str_id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:2677:17 [DllImport(LibraryName)] public static extern void igCloseCurrentPopup(); // Function @ cimgui.h:2678:17 [DllImport(LibraryName)] public static extern CBool igBeginPopupContextItem(CString str_id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:2679:17 [DllImport(LibraryName)] public static extern CBool igBeginPopupContextWindow(CString str_id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:2680:17 [DllImport(LibraryName)] public static extern CBool igBeginPopupContextVoid(CString str_id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:2681:17 [DllImport(LibraryName)] public static extern CBool igIsPopupOpen_Str(CString str_id, ImGuiPopupFlags flags); // Function @ cimgui.h:2682:17 [DllImport(LibraryName)] public static extern CBool igBeginTable(CString str_id, int column, ImGuiTableFlags flags, Vector2 outer_size, float inner_width); // Function @ cimgui.h:2683:17 [DllImport(LibraryName)] public static extern void igEndTable(); // Function @ cimgui.h:2684:17 [DllImport(LibraryName)] public static extern void igTableNextRow(ImGuiTableRowFlags row_flags, float min_row_height); // Function @ cimgui.h:2685:17 [DllImport(LibraryName)] public static extern CBool igTableNextColumn(); // Function @ cimgui.h:2686:17 [DllImport(LibraryName)] public static extern CBool igTableSetColumnIndex(int column_n); // Function @ cimgui.h:2687:17 [DllImport(LibraryName)] public static extern void igTableSetupColumn(CString label, ImGuiTableColumnFlags flags, float init_width_or_weight, ImGuiID user_id); // Function @ cimgui.h:2688:17 [DllImport(LibraryName)] public static extern void igTableSetupScrollFreeze(int cols, int rows); // Function @ cimgui.h:2689:17 [DllImport(LibraryName)] public static extern void igTableHeadersRow(); // Function @ cimgui.h:2690:17 [DllImport(LibraryName)] public static extern void igTableHeader(CString label); // Function @ cimgui.h:2691:33 [DllImport(LibraryName)] public static extern ImGuiTableSortSpecs* igTableGetSortSpecs(); // Function @ cimgui.h:2692:16 [DllImport(LibraryName)] public static extern int igTableGetColumnCount(); // Function @ cimgui.h:2693:16 [DllImport(LibraryName)] public static extern int igTableGetColumnIndex(); // Function @ cimgui.h:2694:16 [DllImport(LibraryName)] public static extern int igTableGetRowIndex(); // Function @ cimgui.h:2695:24 [DllImport(LibraryName)] public static extern CString igTableGetColumnName_Int(int column_n); // Function @ cimgui.h:2696:34 [DllImport(LibraryName)] public static extern ImGuiTableColumnFlags igTableGetColumnFlags(int column_n); // Function @ cimgui.h:2697:17 [DllImport(LibraryName)] public static extern void igTableSetColumnEnabled(int column_n, CBool v); // Function @ cimgui.h:2698:17 [DllImport(LibraryName)] public static extern void igTableSetBgColor(ImGuiTableBgTarget target, uint color, int column_n); // Function @ cimgui.h:2699:17 [DllImport(LibraryName)] public static extern void igColumns(int count, CString id, CBool border); // Function @ cimgui.h:2700:17 [DllImport(LibraryName)] public static extern void igNextColumn(); // Function @ cimgui.h:2701:16 [DllImport(LibraryName)] public static extern int igGetColumnIndex(); // Function @ cimgui.h:2702:18 [DllImport(LibraryName)] public static extern float igGetColumnWidth(int column_index); // Function @ cimgui.h:2703:17 [DllImport(LibraryName)] public static extern void igSetColumnWidth(int column_index, float width); // Function @ cimgui.h:2704:18 [DllImport(LibraryName)] public static extern float igGetColumnOffset(int column_index); // Function @ cimgui.h:2705:17 [DllImport(LibraryName)] public static extern void igSetColumnOffset(int column_index, float offset_x); // Function @ cimgui.h:2706:16 [DllImport(LibraryName)] public static extern int igGetColumnsCount(); // Function @ cimgui.h:2707:17 [DllImport(LibraryName)] public static extern CBool igBeginTabBar(CString str_id, ImGuiTabBarFlags flags); // Function @ cimgui.h:2708:17 [DllImport(LibraryName)] public static extern void igEndTabBar(); // Function @ cimgui.h:2709:17 [DllImport(LibraryName)] public static extern CBool igBeginTabItem(CString label, CBool* p_open, ImGuiTabItemFlags flags); // Function @ cimgui.h:2710:17 [DllImport(LibraryName)] public static extern void igEndTabItem(); // Function @ cimgui.h:2711:17 [DllImport(LibraryName)] public static extern CBool igTabItemButton(CString label, ImGuiTabItemFlags flags); // Function @ cimgui.h:2712:17 [DllImport(LibraryName)] public static extern void igSetTabItemClosed(CString tab_or_docked_window_label); // Function @ cimgui.h:2713:17 [DllImport(LibraryName)] public static extern void igLogToTTY(int auto_open_depth); // Function @ cimgui.h:2714:17 [DllImport(LibraryName)] public static extern void igLogToFile(int auto_open_depth, CString filename); // Function @ cimgui.h:2715:17 [DllImport(LibraryName)] public static extern void igLogToClipboard(int auto_open_depth); // Function @ cimgui.h:2716:17 [DllImport(LibraryName)] public static extern void igLogFinish(); // Function @ cimgui.h:2717:17 [DllImport(LibraryName)] public static extern void igLogButtons(); // Function @ cimgui.h:2718:17 [DllImport(LibraryName)] public static extern void igLogTextV(CString fmt, nint args); // Function @ cimgui.h:2719:17 [DllImport(LibraryName)] public static extern CBool igBeginDragDropSource(ImGuiDragDropFlags flags); // Function @ cimgui.h:2720:17 [DllImport(LibraryName)] public static extern CBool igSetDragDropPayload(CString type, void* data, ulong sz, ImGuiCond cond); // Function @ cimgui.h:2721:17 [DllImport(LibraryName)] public static extern void igEndDragDropSource(); // Function @ cimgui.h:2722:17 [DllImport(LibraryName)] public static extern CBool igBeginDragDropTarget(); // Function @ cimgui.h:2723:32 [DllImport(LibraryName)] public static extern ImGuiPayload* igAcceptDragDropPayload(CString type, ImGuiDragDropFlags flags); // Function @ cimgui.h:2724:17 [DllImport(LibraryName)] public static extern void igEndDragDropTarget(); // Function @ cimgui.h:2725:32 [DllImport(LibraryName)] public static extern ImGuiPayload* igGetDragDropPayload(); // Function @ cimgui.h:2726:17 [DllImport(LibraryName)] public static extern void igBeginDisabled(CBool disabled); // Function @ cimgui.h:2727:17 [DllImport(LibraryName)] public static extern void igEndDisabled(); // Function @ cimgui.h:2728:17 [DllImport(LibraryName)] public static extern void igPushClipRect(Vector2 clip_rect_min, Vector2 clip_rect_max, CBool intersect_with_current_clip_rect); // Function @ cimgui.h:2729:17 [DllImport(LibraryName)] public static extern void igPopClipRect(); // Function @ cimgui.h:2730:17 [DllImport(LibraryName)] public static extern void igSetItemDefaultFocus(); // Function @ cimgui.h:2731:17 [DllImport(LibraryName)] public static extern void igSetKeyboardFocusHere(int offset); // Function @ cimgui.h:2732:17 [DllImport(LibraryName)] public static extern CBool igIsItemHovered(ImGuiHoveredFlags flags); // Function @ cimgui.h:2733:17 [DllImport(LibraryName)] public static extern CBool igIsItemActive(); // Function @ cimgui.h:2734:17 [DllImport(LibraryName)] public static extern CBool igIsItemFocused(); // Function @ cimgui.h:2735:17 [DllImport(LibraryName)] public static extern CBool igIsItemClicked(ImGuiMouseButton mouse_button); // Function @ cimgui.h:2736:17 [DllImport(LibraryName)] public static extern CBool igIsItemVisible(); // Function @ cimgui.h:2737:17 [DllImport(LibraryName)] public static extern CBool igIsItemEdited(); // Function @ cimgui.h:2738:17 [DllImport(LibraryName)] public static extern CBool igIsItemActivated(); // Function @ cimgui.h:2739:17 [DllImport(LibraryName)] public static extern CBool igIsItemDeactivated(); // Function @ cimgui.h:2740:17 [DllImport(LibraryName)] public static extern CBool igIsItemDeactivatedAfterEdit(); // Function @ cimgui.h:2741:17 [DllImport(LibraryName)] public static extern CBool igIsItemToggledOpen(); // Function @ cimgui.h:2742:17 [DllImport(LibraryName)] public static extern CBool igIsAnyItemHovered(); // Function @ cimgui.h:2743:17 [DllImport(LibraryName)] public static extern CBool igIsAnyItemActive(); // Function @ cimgui.h:2744:17 [DllImport(LibraryName)] public static extern CBool igIsAnyItemFocused(); // Function @ cimgui.h:2745:17 [DllImport(LibraryName)] public static extern void igGetItemRectMin(Vector2* pOut); // Function @ cimgui.h:2746:17 [DllImport(LibraryName)] public static extern void igGetItemRectMax(Vector2* pOut); // Function @ cimgui.h:2747:17 [DllImport(LibraryName)] public static extern void igGetItemRectSize(Vector2* pOut); // Function @ cimgui.h:2748:17 [DllImport(LibraryName)] public static extern void igSetItemAllowOverlap(); // Function @ cimgui.h:2749:27 [DllImport(LibraryName)] public static extern ImGuiViewport* igGetMainViewport(); // Function @ cimgui.h:2750:17 [DllImport(LibraryName)] public static extern CBool igIsRectVisible_Nil(Vector2 size); // Function @ cimgui.h:2751:17 [DllImport(LibraryName)] public static extern CBool igIsRectVisible_Vec2(Vector2 rect_min, Vector2 rect_max); // Function @ cimgui.h:2752:19 [DllImport(LibraryName)] public static extern double igGetTime(); // Function @ cimgui.h:2753:16 [DllImport(LibraryName)] public static extern int igGetFrameCount(); // Function @ cimgui.h:2754:24 [DllImport(LibraryName)] public static extern ImDrawList* igGetBackgroundDrawList_Nil(); // Function @ cimgui.h:2755:24 [DllImport(LibraryName)] public static extern ImDrawList* igGetForegroundDrawList_Nil(); // Function @ cimgui.h:2756:34 [DllImport(LibraryName)] public static extern ImDrawListSharedData* igGetDrawListSharedData(); // Function @ cimgui.h:2757:24 [DllImport(LibraryName)] public static extern CString igGetStyleColorName(ImGuiCol idx); // Function @ cimgui.h:2758:17 [DllImport(LibraryName)] public static extern void igSetStateStorage(ImGuiStorage* storage); // Function @ cimgui.h:2759:26 [DllImport(LibraryName)] public static extern ImGuiStorage* igGetStateStorage(); // Function @ cimgui.h:2760:17 [DllImport(LibraryName)] public static extern CBool igBeginChildFrame(ImGuiID id, Vector2 size, ImGuiWindowFlags flags); // Function @ cimgui.h:2761:17 [DllImport(LibraryName)] public static extern void igEndChildFrame(); // Function @ cimgui.h:2762:17 [DllImport(LibraryName)] public static extern void igCalcTextSize(Vector2* pOut, CString text, CString text_end, CBool hide_text_after_double_hash, float wrap_width); // Function @ cimgui.h:2763:17 [DllImport(LibraryName)] public static extern void igColorConvertU32ToFloat4(Vector4* pOut, uint @in); // Function @ cimgui.h:2764:18 [DllImport(LibraryName)] public static extern uint igColorConvertFloat4ToU32(Vector4 @in); // Function @ cimgui.h:2765:17 [DllImport(LibraryName)] public static extern void igColorConvertRGBtoHSV(float r, float g, float b, float* out_h, float* out_s, float* out_v); // Function @ cimgui.h:2766:17 [DllImport(LibraryName)] public static extern void igColorConvertHSVtoRGB(float h, float s, float v, float* out_r, float* out_g, float* out_b); // Function @ cimgui.h:2767:16 [DllImport(LibraryName)] public static extern int igGetKeyIndex(ImGuiKey imgui_key); // Function @ cimgui.h:2768:17 [DllImport(LibraryName)] public static extern CBool igIsKeyDown(int user_key_index); // Function @ cimgui.h:2769:17 [DllImport(LibraryName)] public static extern CBool igIsKeyPressed(int user_key_index, CBool repeat); // Function @ cimgui.h:2770:17 [DllImport(LibraryName)] public static extern CBool igIsKeyReleased(int user_key_index); // Function @ cimgui.h:2771:16 [DllImport(LibraryName)] public static extern int igGetKeyPressedAmount(int key_index, float repeat_delay, float rate); // Function @ cimgui.h:2772:17 [DllImport(LibraryName)] public static extern void igCaptureKeyboardFromApp(CBool want_capture_keyboard_value); // Function @ cimgui.h:2773:17 [DllImport(LibraryName)] public static extern CBool igIsMouseDown(ImGuiMouseButton button); // Function @ cimgui.h:2774:17 [DllImport(LibraryName)] public static extern CBool igIsMouseClicked(ImGuiMouseButton button, CBool repeat); // Function @ cimgui.h:2775:17 [DllImport(LibraryName)] public static extern CBool igIsMouseReleased(ImGuiMouseButton button); // Function @ cimgui.h:2776:17 [DllImport(LibraryName)] public static extern CBool igIsMouseDoubleClicked(ImGuiMouseButton button); // Function @ cimgui.h:2777:16 [DllImport(LibraryName)] public static extern int igGetMouseClickedCount(ImGuiMouseButton button); // Function @ cimgui.h:2778:17 [DllImport(LibraryName)] public static extern CBool igIsMouseHoveringRect(Vector2 r_min, Vector2 r_max, CBool clip); // Function @ cimgui.h:2779:17 [DllImport(LibraryName)] public static extern CBool igIsMousePosValid(Vector2* mouse_pos); // Function @ cimgui.h:2780:17 [DllImport(LibraryName)] public static extern CBool igIsAnyMouseDown(); // Function @ cimgui.h:2781:17 [DllImport(LibraryName)] public static extern void igGetMousePos(Vector2* pOut); // Function @ cimgui.h:2782:17 [DllImport(LibraryName)] public static extern void igGetMousePosOnOpeningCurrentPopup(Vector2* pOut); // Function @ cimgui.h:2783:17 [DllImport(LibraryName)] public static extern CBool igIsMouseDragging(ImGuiMouseButton button, float lock_threshold); // Function @ cimgui.h:2784:17 [DllImport(LibraryName)] public static extern void igGetMouseDragDelta(Vector2* pOut, ImGuiMouseButton button, float lock_threshold); // Function @ cimgui.h:2785:17 [DllImport(LibraryName)] public static extern void igResetMouseDragDelta(ImGuiMouseButton button); // Function @ cimgui.h:2786:29 [DllImport(LibraryName)] public static extern ImGuiMouseCursor igGetMouseCursor(); // Function @ cimgui.h:2787:17 [DllImport(LibraryName)] public static extern void igSetMouseCursor(ImGuiMouseCursor cursor_type); // Function @ cimgui.h:2788:17 [DllImport(LibraryName)] public static extern void igCaptureMouseFromApp(CBool want_capture_mouse_value); // Function @ cimgui.h:2789:24 [DllImport(LibraryName)] public static extern CString igGetClipboardText(); // Function @ cimgui.h:2790:17 [DllImport(LibraryName)] public static extern void igSetClipboardText(CString text); // Function @ cimgui.h:2791:17 [DllImport(LibraryName)] public static extern void igLoadIniSettingsFromDisk(CString ini_filename); // Function @ cimgui.h:2792:17 [DllImport(LibraryName)] public static extern void igLoadIniSettingsFromMemory(CString ini_data, ulong ini_size); // Function @ cimgui.h:2793:17 [DllImport(LibraryName)] public static extern void igSaveIniSettingsToDisk(CString ini_filename); // Function @ cimgui.h:2794:24 [DllImport(LibraryName)] public static extern CString igSaveIniSettingsToMemory(ulong* out_ini_size); // Function @ cimgui.h:2795:17 [DllImport(LibraryName)] public static extern CBool igDebugCheckVersionAndDataLayout(CString version_str, ulong sz_io, ulong sz_style, ulong sz_vec2, ulong sz_vec4, ulong sz_drawvert, ulong sz_drawidx); // Function @ cimgui.h:2796:17 [DllImport(LibraryName)] public static extern void igSetAllocatorFunctions(ImGuiMemAllocFunc alloc_func, ImGuiMemFreeFunc free_func, void* user_data); // Function @ cimgui.h:2797:17 [DllImport(LibraryName)] public static extern void igGetAllocatorFunctions(ImGuiMemAllocFunc* p_alloc_func, ImGuiMemFreeFunc* p_free_func, void** p_user_data); // Function @ cimgui.h:2798:18 [DllImport(LibraryName)] public static extern void* igMemAlloc(ulong size); // Function @ cimgui.h:2799:17 [DllImport(LibraryName)] public static extern void igMemFree(void* ptr); // Function @ cimgui.h:2800:24 [DllImport(LibraryName)] public static extern ImGuiStyle* ImGuiStyle_ImGuiStyle(); // Function @ cimgui.h:2801:17 [DllImport(LibraryName)] public static extern void ImGuiStyle_destroy(ImGuiStyle* self); // Function @ cimgui.h:2802:17 [DllImport(LibraryName)] public static extern void ImGuiStyle_ScaleAllSizes(ImGuiStyle* self, float scale_factor); // Function @ cimgui.h:2803:17 [DllImport(LibraryName)] public static extern void ImGuiIO_AddInputCharacter(ImGuiIO* self, uint c); // Function @ cimgui.h:2804:17 [DllImport(LibraryName)] public static extern void ImGuiIO_AddInputCharacterUTF16(ImGuiIO* self, ushort c); // Function @ cimgui.h:2805:17 [DllImport(LibraryName)] public static extern void ImGuiIO_AddInputCharactersUTF8(ImGuiIO* self, CString str); // Function @ cimgui.h:2806:17 [DllImport(LibraryName)] public static extern void ImGuiIO_AddFocusEvent(ImGuiIO* self, CBool focused); // Function @ cimgui.h:2807:17 [DllImport(LibraryName)] public static extern void ImGuiIO_ClearInputCharacters(ImGuiIO* self); // Function @ cimgui.h:2808:17 [DllImport(LibraryName)] public static extern void ImGuiIO_ClearInputKeys(ImGuiIO* self); // Function @ cimgui.h:2809:21 [DllImport(LibraryName)] public static extern ImGuiIO* ImGuiIO_ImGuiIO(); // Function @ cimgui.h:2810:17 [DllImport(LibraryName)] public static extern void ImGuiIO_destroy(ImGuiIO* self); // Function @ cimgui.h:2811:40 [DllImport(LibraryName)] public static extern ImGuiInputTextCallbackData* ImGuiInputTextCallbackData_ImGuiInputTextCallbackData(); // Function @ cimgui.h:2812:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextCallbackData_destroy(ImGuiInputTextCallbackData* self); // Function @ cimgui.h:2813:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextCallbackData_DeleteChars(ImGuiInputTextCallbackData* self, int pos, int bytes_count); // Function @ cimgui.h:2814:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextCallbackData_InsertChars(ImGuiInputTextCallbackData* self, int pos, CString text, CString text_end); // Function @ cimgui.h:2815:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextCallbackData_SelectAll(ImGuiInputTextCallbackData* self); // Function @ cimgui.h:2816:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextCallbackData_ClearSelection(ImGuiInputTextCallbackData* self); // Function @ cimgui.h:2817:17 [DllImport(LibraryName)] public static extern CBool ImGuiInputTextCallbackData_HasSelection(ImGuiInputTextCallbackData* self); // Function @ cimgui.h:2818:26 [DllImport(LibraryName)] public static extern ImGuiPayload* ImGuiPayload_ImGuiPayload(); // Function @ cimgui.h:2819:17 [DllImport(LibraryName)] public static extern void ImGuiPayload_destroy(ImGuiPayload* self); // Function @ cimgui.h:2820:17 [DllImport(LibraryName)] public static extern void ImGuiPayload_Clear(ImGuiPayload* self); // Function @ cimgui.h:2821:17 [DllImport(LibraryName)] public static extern CBool ImGuiPayload_IsDataType(ImGuiPayload* self, CString type); // Function @ cimgui.h:2822:17 [DllImport(LibraryName)] public static extern CBool ImGuiPayload_IsPreview(ImGuiPayload* self); // Function @ cimgui.h:2823:17 [DllImport(LibraryName)] public static extern CBool ImGuiPayload_IsDelivery(ImGuiPayload* self); // Function @ cimgui.h:2824:39 [DllImport(LibraryName)] public static extern ImGuiTableColumnSortSpecs* ImGuiTableColumnSortSpecs_ImGuiTableColumnSortSpecs(); // Function @ cimgui.h:2825:17 [DllImport(LibraryName)] public static extern void ImGuiTableColumnSortSpecs_destroy(ImGuiTableColumnSortSpecs* self); // Function @ cimgui.h:2826:33 [DllImport(LibraryName)] public static extern ImGuiTableSortSpecs* ImGuiTableSortSpecs_ImGuiTableSortSpecs(); // Function @ cimgui.h:2827:17 [DllImport(LibraryName)] public static extern void ImGuiTableSortSpecs_destroy(ImGuiTableSortSpecs* self); // Function @ cimgui.h:2828:33 [DllImport(LibraryName)] public static extern ImGuiOnceUponAFrame* ImGuiOnceUponAFrame_ImGuiOnceUponAFrame(); // Function @ cimgui.h:2829:17 [DllImport(LibraryName)] public static extern void ImGuiOnceUponAFrame_destroy(ImGuiOnceUponAFrame* self); // Function @ cimgui.h:2830:29 [DllImport(LibraryName)] public static extern ImGuiTextFilter* ImGuiTextFilter_ImGuiTextFilter(CString default_filter); // Function @ cimgui.h:2831:17 [DllImport(LibraryName)] public static extern void ImGuiTextFilter_destroy(ImGuiTextFilter* self); // Function @ cimgui.h:2832:17 [DllImport(LibraryName)] public static extern CBool ImGuiTextFilter_Draw(ImGuiTextFilter* self, CString label, float width); // Function @ cimgui.h:2833:17 [DllImport(LibraryName)] public static extern CBool ImGuiTextFilter_PassFilter(ImGuiTextFilter* self, CString text, CString text_end); // Function @ cimgui.h:2834:17 [DllImport(LibraryName)] public static extern void ImGuiTextFilter_Build(ImGuiTextFilter* self); // Function @ cimgui.h:2835:17 [DllImport(LibraryName)] public static extern void ImGuiTextFilter_Clear(ImGuiTextFilter* self); // Function @ cimgui.h:2836:17 [DllImport(LibraryName)] public static extern CBool ImGuiTextFilter_IsActive(ImGuiTextFilter* self); // Function @ cimgui.h:2837:28 [DllImport(LibraryName)] public static extern ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Nil(); // Function @ cimgui.h:2838:17 [DllImport(LibraryName)] public static extern void ImGuiTextRange_destroy(ImGuiTextRange* self); // Function @ cimgui.h:2839:28 [DllImport(LibraryName)] public static extern ImGuiTextRange* ImGuiTextRange_ImGuiTextRange_Str(CString _b, CString _e); // Function @ cimgui.h:2840:17 [DllImport(LibraryName)] public static extern CBool ImGuiTextRange_empty(ImGuiTextRange* self); // Function @ cimgui.h:2841:17 [DllImport(LibraryName)] public static extern void ImGuiTextRange_split(ImGuiTextRange* self, CChar separator, ImVector_ImGuiTextRange* @out); // Function @ cimgui.h:2842:29 [DllImport(LibraryName)] public static extern ImGuiTextBuffer* ImGuiTextBuffer_ImGuiTextBuffer(); // Function @ cimgui.h:2843:17 [DllImport(LibraryName)] public static extern void ImGuiTextBuffer_destroy(ImGuiTextBuffer* self); // Function @ cimgui.h:2844:24 [DllImport(LibraryName)] public static extern CString ImGuiTextBuffer_begin(ImGuiTextBuffer* self); // Function @ cimgui.h:2845:24 [DllImport(LibraryName)] public static extern CString ImGuiTextBuffer_end(ImGuiTextBuffer* self); // Function @ cimgui.h:2846:16 [DllImport(LibraryName)] public static extern int ImGuiTextBuffer_size(ImGuiTextBuffer* self); // Function @ cimgui.h:2847:17 [DllImport(LibraryName)] public static extern CBool ImGuiTextBuffer_empty(ImGuiTextBuffer* self); // Function @ cimgui.h:2848:17 [DllImport(LibraryName)] public static extern void ImGuiTextBuffer_clear(ImGuiTextBuffer* self); // Function @ cimgui.h:2849:17 [DllImport(LibraryName)] public static extern void ImGuiTextBuffer_reserve(ImGuiTextBuffer* self, int capacity); // Function @ cimgui.h:2850:24 [DllImport(LibraryName)] public static extern CString ImGuiTextBuffer_c_str(ImGuiTextBuffer* self); // Function @ cimgui.h:2851:17 [DllImport(LibraryName)] public static extern void ImGuiTextBuffer_append(ImGuiTextBuffer* self, CString str, CString str_end); // Function @ cimgui.h:2852:17 [DllImport(LibraryName)] public static extern void ImGuiTextBuffer_appendfv(ImGuiTextBuffer* self, CString fmt, nint args); // Function @ cimgui.h:2853:30 [DllImport(LibraryName)] public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Int(ImGuiID _key, int _val_i); // Function @ cimgui.h:2854:17 [DllImport(LibraryName)] public static extern void ImGuiStoragePair_destroy(ImGuiStoragePair* self); // Function @ cimgui.h:2855:30 [DllImport(LibraryName)] public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Float(ImGuiID _key, float _val_f); // Function @ cimgui.h:2856:30 [DllImport(LibraryName)] public static extern ImGuiStoragePair* ImGuiStoragePair_ImGuiStoragePair_Ptr(ImGuiID _key, void* _val_p); // Function @ cimgui.h:2857:17 [DllImport(LibraryName)] public static extern void ImGuiStorage_Clear(ImGuiStorage* self); // Function @ cimgui.h:2858:16 [DllImport(LibraryName)] public static extern int ImGuiStorage_GetInt(ImGuiStorage* self, ImGuiID key, int default_val); // Function @ cimgui.h:2859:17 [DllImport(LibraryName)] public static extern void ImGuiStorage_SetInt(ImGuiStorage* self, ImGuiID key, int val); // Function @ cimgui.h:2860:17 [DllImport(LibraryName)] public static extern CBool ImGuiStorage_GetBool(ImGuiStorage* self, ImGuiID key, CBool default_val); // Function @ cimgui.h:2861:17 [DllImport(LibraryName)] public static extern void ImGuiStorage_SetBool(ImGuiStorage* self, ImGuiID key, CBool val); // Function @ cimgui.h:2862:18 [DllImport(LibraryName)] public static extern float ImGuiStorage_GetFloat(ImGuiStorage* self, ImGuiID key, float default_val); // Function @ cimgui.h:2863:17 [DllImport(LibraryName)] public static extern void ImGuiStorage_SetFloat(ImGuiStorage* self, ImGuiID key, float val); // Function @ cimgui.h:2864:18 [DllImport(LibraryName)] public static extern void* ImGuiStorage_GetVoidPtr(ImGuiStorage* self, ImGuiID key); // Function @ cimgui.h:2865:17 [DllImport(LibraryName)] public static extern void ImGuiStorage_SetVoidPtr(ImGuiStorage* self, ImGuiID key, void* val); // Function @ cimgui.h:2866:17 [DllImport(LibraryName)] public static extern long* ImGuiStorage_GetIntRef(ImGuiStorage* self, ImGuiID key, int default_val); // Function @ cimgui.h:2867:18 [DllImport(LibraryName)] public static extern CBool* ImGuiStorage_GetBoolRef(ImGuiStorage* self, ImGuiID key, CBool default_val); // Function @ cimgui.h:2868:19 [DllImport(LibraryName)] public static extern float* ImGuiStorage_GetFloatRef(ImGuiStorage* self, ImGuiID key, float default_val); // Function @ cimgui.h:2869:19 [DllImport(LibraryName)] public static extern void** ImGuiStorage_GetVoidPtrRef(ImGuiStorage* self, ImGuiID key, void* default_val); // Function @ cimgui.h:2870:17 [DllImport(LibraryName)] public static extern void ImGuiStorage_SetAllInt(ImGuiStorage* self, int val); // Function @ cimgui.h:2871:17 [DllImport(LibraryName)] public static extern void ImGuiStorage_BuildSortByKey(ImGuiStorage* self); // Function @ cimgui.h:2872:30 [DllImport(LibraryName)] public static extern ImGuiListClipper* ImGuiListClipper_ImGuiListClipper(); // Function @ cimgui.h:2873:17 [DllImport(LibraryName)] public static extern void ImGuiListClipper_destroy(ImGuiListClipper* self); // Function @ cimgui.h:2874:17 [DllImport(LibraryName)] public static extern void ImGuiListClipper_Begin(ImGuiListClipper* self, int items_count, float items_height); // Function @ cimgui.h:2875:17 [DllImport(LibraryName)] public static extern void ImGuiListClipper_End(ImGuiListClipper* self); // Function @ cimgui.h:2876:17 [DllImport(LibraryName)] public static extern CBool ImGuiListClipper_Step(ImGuiListClipper* self); // Function @ cimgui.h:2877:17 [DllImport(LibraryName)] public static extern void ImGuiListClipper_ForceDisplayRangeByIndices(ImGuiListClipper* self, int item_min, int item_max); // Function @ cimgui.h:2878:21 [DllImport(LibraryName)] public static extern ImColor* ImColor_ImColor_Nil(); // Function @ cimgui.h:2879:17 [DllImport(LibraryName)] public static extern void ImColor_destroy(ImColor* self); // Function @ cimgui.h:2880:21 [DllImport(LibraryName)] public static extern ImColor* ImColor_ImColor_Int(int r, int g, int b, int a); // Function @ cimgui.h:2881:21 [DllImport(LibraryName)] public static extern ImColor* ImColor_ImColor_U32(uint rgba); // Function @ cimgui.h:2882:21 [DllImport(LibraryName)] public static extern ImColor* ImColor_ImColor_Float(float r, float g, float b, float a); // Function @ cimgui.h:2883:21 [DllImport(LibraryName)] public static extern ImColor* ImColor_ImColor_Vec4(Vector4 col); // Function @ cimgui.h:2884:17 [DllImport(LibraryName)] public static extern void ImColor_SetHSV(ImColor* self, float h, float s, float v, float a); // Function @ cimgui.h:2885:17 [DllImport(LibraryName)] public static extern void ImColor_HSV(ImColor* pOut, float h, float s, float v, float a); // Function @ cimgui.h:2886:23 [DllImport(LibraryName)] public static extern ImDrawCmd* ImDrawCmd_ImDrawCmd(); // Function @ cimgui.h:2887:17 [DllImport(LibraryName)] public static extern void ImDrawCmd_destroy(ImDrawCmd* self); // Function @ cimgui.h:2888:24 [DllImport(LibraryName)] public static extern ImTextureID ImDrawCmd_GetTexID(ImDrawCmd* self); // Function @ cimgui.h:2889:32 [DllImport(LibraryName)] public static extern ImDrawListSplitter* ImDrawListSplitter_ImDrawListSplitter(); // Function @ cimgui.h:2890:17 [DllImport(LibraryName)] public static extern void ImDrawListSplitter_destroy(ImDrawListSplitter* self); // Function @ cimgui.h:2891:17 [DllImport(LibraryName)] public static extern void ImDrawListSplitter_Clear(ImDrawListSplitter* self); // Function @ cimgui.h:2892:17 [DllImport(LibraryName)] public static extern void ImDrawListSplitter_ClearFreeMemory(ImDrawListSplitter* self); // Function @ cimgui.h:2893:17 [DllImport(LibraryName)] public static extern void ImDrawListSplitter_Split(ImDrawListSplitter* self, ImDrawList* draw_list, int count); // Function @ cimgui.h:2894:17 [DllImport(LibraryName)] public static extern void ImDrawListSplitter_Merge(ImDrawListSplitter* self, ImDrawList* draw_list); // Function @ cimgui.h:2895:17 [DllImport(LibraryName)] public static extern void ImDrawListSplitter_SetCurrentChannel(ImDrawListSplitter* self, ImDrawList* draw_list, int channel_idx); // Function @ cimgui.h:2896:24 [DllImport(LibraryName)] public static extern ImDrawList* ImDrawList_ImDrawList(ImDrawListSharedData* shared_data); // Function @ cimgui.h:2897:17 [DllImport(LibraryName)] public static extern void ImDrawList_destroy(ImDrawList* self); // Function @ cimgui.h:2898:17 [DllImport(LibraryName)] public static extern void ImDrawList_PushClipRect(ImDrawList* self, Vector2 clip_rect_min, Vector2 clip_rect_max, CBool intersect_with_current_clip_rect); // Function @ cimgui.h:2899:17 [DllImport(LibraryName)] public static extern void ImDrawList_PushClipRectFullScreen(ImDrawList* self); // Function @ cimgui.h:2900:17 [DllImport(LibraryName)] public static extern void ImDrawList_PopClipRect(ImDrawList* self); // Function @ cimgui.h:2901:17 [DllImport(LibraryName)] public static extern void ImDrawList_PushTextureID(ImDrawList* self, ImTextureID texture_id); // Function @ cimgui.h:2902:17 [DllImport(LibraryName)] public static extern void ImDrawList_PopTextureID(ImDrawList* self); // Function @ cimgui.h:2903:17 [DllImport(LibraryName)] public static extern void ImDrawList_GetClipRectMin(Vector2* pOut, ImDrawList* self); // Function @ cimgui.h:2904:17 [DllImport(LibraryName)] public static extern void ImDrawList_GetClipRectMax(Vector2* pOut, ImDrawList* self); // Function @ cimgui.h:2905:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddLine(ImDrawList* self, Vector2 p1, Vector2 p2, uint col, float thickness); // Function @ cimgui.h:2906:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddRect(ImDrawList* self, Vector2 p_min, Vector2 p_max, uint col, float rounding, ImDrawFlags flags, float thickness); // Function @ cimgui.h:2907:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddRectFilled(ImDrawList* self, Vector2 p_min, Vector2 p_max, uint col, float rounding, ImDrawFlags flags); // Function @ cimgui.h:2908:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddRectFilledMultiColor(ImDrawList* self, Vector2 p_min, Vector2 p_max, uint col_upr_left, uint col_upr_right, uint col_bot_right, uint col_bot_left); // Function @ cimgui.h:2909:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddQuad(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness); // Function @ cimgui.h:2910:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddQuadFilled(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col); // Function @ cimgui.h:2911:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddTriangle(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness); // Function @ cimgui.h:2912:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddTriangleFilled(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col); // Function @ cimgui.h:2913:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddCircle(ImDrawList* self, Vector2 center, float radius, uint col, int num_segments, float thickness); // Function @ cimgui.h:2914:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddCircleFilled(ImDrawList* self, Vector2 center, float radius, uint col, int num_segments); // Function @ cimgui.h:2915:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddNgon(ImDrawList* self, Vector2 center, float radius, uint col, int num_segments, float thickness); // Function @ cimgui.h:2916:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddNgonFilled(ImDrawList* self, Vector2 center, float radius, uint col, int num_segments); // Function @ cimgui.h:2917:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddText_Vec2(ImDrawList* self, Vector2 pos, uint col, CString text_begin, CString text_end); // Function @ cimgui.h:2918:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddText_FontPtr(ImDrawList* self, ImFont* font, float font_size, Vector2 pos, uint col, CString text_begin, CString text_end, float wrap_width, Vector4* cpu_fine_clip_rect); // Function @ cimgui.h:2919:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddPolyline(ImDrawList* self, Vector2* points, int num_points, uint col, ImDrawFlags flags, float thickness); // Function @ cimgui.h:2920:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddConvexPolyFilled(ImDrawList* self, Vector2* points, int num_points, uint col); // Function @ cimgui.h:2921:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddBezierCubic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, uint col, float thickness, int num_segments); // Function @ cimgui.h:2922:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddBezierQuadratic(ImDrawList* self, Vector2 p1, Vector2 p2, Vector2 p3, uint col, float thickness, int num_segments); // Function @ cimgui.h:2923:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddImage(ImDrawList* self, ImTextureID user_texture_id, Vector2 p_min, Vector2 p_max, Vector2 uv_min, Vector2 uv_max, uint col); // Function @ cimgui.h:2924:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddImageQuad(ImDrawList* self, ImTextureID user_texture_id, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 uv1, Vector2 uv2, Vector2 uv3, Vector2 uv4, uint col); // Function @ cimgui.h:2925:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddImageRounded(ImDrawList* self, ImTextureID user_texture_id, Vector2 p_min, Vector2 p_max, Vector2 uv_min, Vector2 uv_max, uint col, float rounding, ImDrawFlags flags); // Function @ cimgui.h:2926:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathClear(ImDrawList* self); // Function @ cimgui.h:2927:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathLineTo(ImDrawList* self, Vector2 pos); // Function @ cimgui.h:2928:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathLineToMergeDuplicate(ImDrawList* self, Vector2 pos); // Function @ cimgui.h:2929:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathFillConvex(ImDrawList* self, uint col); // Function @ cimgui.h:2930:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathStroke(ImDrawList* self, uint col, ImDrawFlags flags, float thickness); // Function @ cimgui.h:2931:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathArcTo(ImDrawList* self, Vector2 center, float radius, float a_min, float a_max, int num_segments); // Function @ cimgui.h:2932:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathArcToFast(ImDrawList* self, Vector2 center, float radius, int a_min_of_12, int a_max_of_12); // Function @ cimgui.h:2933:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathBezierCubicCurveTo(ImDrawList* self, Vector2 p2, Vector2 p3, Vector2 p4, int num_segments); // Function @ cimgui.h:2934:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathBezierQuadraticCurveTo(ImDrawList* self, Vector2 p2, Vector2 p3, int num_segments); // Function @ cimgui.h:2935:17 [DllImport(LibraryName)] public static extern void ImDrawList_PathRect(ImDrawList* self, Vector2 rect_min, Vector2 rect_max, float rounding, ImDrawFlags flags); // Function @ cimgui.h:2936:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddCallback(ImDrawList* self, ImDrawCallback callback, void* callback_data); // Function @ cimgui.h:2937:17 [DllImport(LibraryName)] public static extern void ImDrawList_AddDrawCmd(ImDrawList* self); // Function @ cimgui.h:2938:24 [DllImport(LibraryName)] public static extern ImDrawList* ImDrawList_CloneOutput(ImDrawList* self); // Function @ cimgui.h:2939:17 [DllImport(LibraryName)] public static extern void ImDrawList_ChannelsSplit(ImDrawList* self, int count); // Function @ cimgui.h:2940:17 [DllImport(LibraryName)] public static extern void ImDrawList_ChannelsMerge(ImDrawList* self); // Function @ cimgui.h:2941:17 [DllImport(LibraryName)] public static extern void ImDrawList_ChannelsSetCurrent(ImDrawList* self, int n); // Function @ cimgui.h:2942:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimReserve(ImDrawList* self, int idx_count, int vtx_count); // Function @ cimgui.h:2943:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimUnreserve(ImDrawList* self, int idx_count, int vtx_count); // Function @ cimgui.h:2944:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimRect(ImDrawList* self, Vector2 a, Vector2 b, uint col); // Function @ cimgui.h:2945:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimRectUV(ImDrawList* self, Vector2 a, Vector2 b, Vector2 uv_a, Vector2 uv_b, uint col); // Function @ cimgui.h:2946:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimQuadUV(ImDrawList* self, Vector2 a, Vector2 b, Vector2 c, Vector2 d, Vector2 uv_a, Vector2 uv_b, Vector2 uv_c, Vector2 uv_d, uint col); // Function @ cimgui.h:2947:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimWriteVtx(ImDrawList* self, Vector2 pos, Vector2 uv, uint col); // Function @ cimgui.h:2948:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimWriteIdx(ImDrawList* self, ImDrawIdx idx); // Function @ cimgui.h:2949:17 [DllImport(LibraryName)] public static extern void ImDrawList_PrimVtx(ImDrawList* self, Vector2 pos, Vector2 uv, uint col); // Function @ cimgui.h:2950:17 [DllImport(LibraryName)] public static extern void ImDrawList__ResetForNewFrame(ImDrawList* self); // Function @ cimgui.h:2951:17 [DllImport(LibraryName)] public static extern void ImDrawList__ClearFreeMemory(ImDrawList* self); // Function @ cimgui.h:2952:17 [DllImport(LibraryName)] public static extern void ImDrawList__PopUnusedDrawCmd(ImDrawList* self); // Function @ cimgui.h:2953:17 [DllImport(LibraryName)] public static extern void ImDrawList__TryMergeDrawCmds(ImDrawList* self); // Function @ cimgui.h:2954:17 [DllImport(LibraryName)] public static extern void ImDrawList__OnChangedClipRect(ImDrawList* self); // Function @ cimgui.h:2955:17 [DllImport(LibraryName)] public static extern void ImDrawList__OnChangedTextureID(ImDrawList* self); // Function @ cimgui.h:2956:17 [DllImport(LibraryName)] public static extern void ImDrawList__OnChangedVtxOffset(ImDrawList* self); // Function @ cimgui.h:2957:16 [DllImport(LibraryName)] public static extern int ImDrawList__CalcCircleAutoSegmentCount(ImDrawList* self, float radius); // Function @ cimgui.h:2958:17 [DllImport(LibraryName)] public static extern void ImDrawList__PathArcToFastEx(ImDrawList* self, Vector2 center, float radius, int a_min_sample, int a_max_sample, int a_step); // Function @ cimgui.h:2959:17 [DllImport(LibraryName)] public static extern void ImDrawList__PathArcToN(ImDrawList* self, Vector2 center, float radius, float a_min, float a_max, int num_segments); // Function @ cimgui.h:2960:24 [DllImport(LibraryName)] public static extern ImDrawData* ImDrawData_ImDrawData(); // Function @ cimgui.h:2961:17 [DllImport(LibraryName)] public static extern void ImDrawData_destroy(ImDrawData* self); // Function @ cimgui.h:2962:17 [DllImport(LibraryName)] public static extern void ImDrawData_Clear(ImDrawData* self); // Function @ cimgui.h:2963:17 [DllImport(LibraryName)] public static extern void ImDrawData_DeIndexAllBuffers(ImDrawData* self); // Function @ cimgui.h:2964:17 [DllImport(LibraryName)] public static extern void ImDrawData_ScaleClipRects(ImDrawData* self, Vector2 fb_scale); // Function @ cimgui.h:2965:26 [DllImport(LibraryName)] public static extern ImFontConfig* ImFontConfig_ImFontConfig(); // Function @ cimgui.h:2966:17 [DllImport(LibraryName)] public static extern void ImFontConfig_destroy(ImFontConfig* self); // Function @ cimgui.h:2967:38 [DllImport(LibraryName)] public static extern ImFontGlyphRangesBuilder* ImFontGlyphRangesBuilder_ImFontGlyphRangesBuilder(); // Function @ cimgui.h:2968:17 [DllImport(LibraryName)] public static extern void ImFontGlyphRangesBuilder_destroy(ImFontGlyphRangesBuilder* self); // Function @ cimgui.h:2969:17 [DllImport(LibraryName)] public static extern void ImFontGlyphRangesBuilder_Clear(ImFontGlyphRangesBuilder* self); // Function @ cimgui.h:2970:17 [DllImport(LibraryName)] public static extern CBool ImFontGlyphRangesBuilder_GetBit(ImFontGlyphRangesBuilder* self, ulong n); // Function @ cimgui.h:2971:17 [DllImport(LibraryName)] public static extern void ImFontGlyphRangesBuilder_SetBit(ImFontGlyphRangesBuilder* self, ulong n); // Function @ cimgui.h:2972:17 [DllImport(LibraryName)] public static extern void ImFontGlyphRangesBuilder_AddChar(ImFontGlyphRangesBuilder* self, byte c); // Function @ cimgui.h:2973:17 [DllImport(LibraryName)] public static extern void ImFontGlyphRangesBuilder_AddText(ImFontGlyphRangesBuilder* self, CString text, CString text_end); // Function @ cimgui.h:2974:17 [DllImport(LibraryName)] public static extern void ImFontGlyphRangesBuilder_AddRanges(ImFontGlyphRangesBuilder* self, byte* ranges); // Function @ cimgui.h:2975:17 [DllImport(LibraryName)] public static extern void ImFontGlyphRangesBuilder_BuildRanges(ImFontGlyphRangesBuilder* self, ImVector_ImWchar* out_ranges); // Function @ cimgui.h:2976:35 [DllImport(LibraryName)] public static extern ImFontAtlasCustomRect* ImFontAtlasCustomRect_ImFontAtlasCustomRect(); // Function @ cimgui.h:2977:17 [DllImport(LibraryName)] public static extern void ImFontAtlasCustomRect_destroy(ImFontAtlasCustomRect* self); // Function @ cimgui.h:2978:17 [DllImport(LibraryName)] public static extern CBool ImFontAtlasCustomRect_IsPacked(ImFontAtlasCustomRect* self); // Function @ cimgui.h:2979:25 [DllImport(LibraryName)] public static extern ImFontAtlas* ImFontAtlas_ImFontAtlas(); // Function @ cimgui.h:2980:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_destroy(ImFontAtlas* self); // Function @ cimgui.h:2981:20 [DllImport(LibraryName)] public static extern ImFont* ImFontAtlas_AddFont(ImFontAtlas* self, ImFontConfig* font_cfg); // Function @ cimgui.h:2982:20 [DllImport(LibraryName)] public static extern ImFont* ImFontAtlas_AddFontDefault(ImFontAtlas* self, ImFontConfig* font_cfg); // Function @ cimgui.h:2983:20 [DllImport(LibraryName)] public static extern ImFont* ImFontAtlas_AddFontFromFileTTF(ImFontAtlas* self, CString filename, float size_pixels, ImFontConfig* font_cfg, byte* glyph_ranges); // Function @ cimgui.h:2984:20 [DllImport(LibraryName)] public static extern ImFont* ImFontAtlas_AddFontFromMemoryTTF(ImFontAtlas* self, void* font_data, int font_size, float size_pixels, ImFontConfig* font_cfg, byte* glyph_ranges); // Function @ cimgui.h:2985:20 [DllImport(LibraryName)] public static extern ImFont* ImFontAtlas_AddFontFromMemoryCompressedTTF(ImFontAtlas* self, void* compressed_font_data, int compressed_font_size, float size_pixels, ImFontConfig* font_cfg, byte* glyph_ranges); // Function @ cimgui.h:2986:20 [DllImport(LibraryName)] public static extern ImFont* ImFontAtlas_AddFontFromMemoryCompressedBase85TTF(ImFontAtlas* self, CString compressed_font_data_base85, float size_pixels, ImFontConfig* font_cfg, byte* glyph_ranges); // Function @ cimgui.h:2987:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_ClearInputData(ImFontAtlas* self); // Function @ cimgui.h:2988:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_ClearTexData(ImFontAtlas* self); // Function @ cimgui.h:2989:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_ClearFonts(ImFontAtlas* self); // Function @ cimgui.h:2990:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_Clear(ImFontAtlas* self); // Function @ cimgui.h:2991:17 [DllImport(LibraryName)] public static extern CBool ImFontAtlas_Build(ImFontAtlas* self); // Function @ cimgui.h:2992:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_GetTexDataAsAlpha8(ImFontAtlas* self, ulong** out_pixels, long* out_width, long* out_height, long* out_bytes_per_pixel); // Function @ cimgui.h:2993:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_GetTexDataAsRGBA32(ImFontAtlas* self, ulong** out_pixels, long* out_width, long* out_height, long* out_bytes_per_pixel); // Function @ cimgui.h:2994:17 [DllImport(LibraryName)] public static extern CBool ImFontAtlas_IsBuilt(ImFontAtlas* self); // Function @ cimgui.h:2995:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_SetTexID(ImFontAtlas* self, ImTextureID id); // Function @ cimgui.h:2996:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesDefault(ImFontAtlas* self); // Function @ cimgui.h:2997:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesKorean(ImFontAtlas* self); // Function @ cimgui.h:2998:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesJapanese(ImFontAtlas* self); // Function @ cimgui.h:2999:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesChineseFull(ImFontAtlas* self); // Function @ cimgui.h:3000:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesChineseSimplifiedCommon(ImFontAtlas* self); // Function @ cimgui.h:3001:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesCyrillic(ImFontAtlas* self); // Function @ cimgui.h:3002:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesThai(ImFontAtlas* self); // Function @ cimgui.h:3003:27 [DllImport(LibraryName)] public static extern byte* ImFontAtlas_GetGlyphRangesVietnamese(ImFontAtlas* self); // Function @ cimgui.h:3004:16 [DllImport(LibraryName)] public static extern int ImFontAtlas_AddCustomRectRegular(ImFontAtlas* self, int width, int height); // Function @ cimgui.h:3005:16 [DllImport(LibraryName)] public static extern int ImFontAtlas_AddCustomRectFontGlyph(ImFontAtlas* self, ImFont* font, byte id, int width, int height, float advance_x, Vector2 offset); // Function @ cimgui.h:3006:35 [DllImport(LibraryName)] public static extern ImFontAtlasCustomRect* ImFontAtlas_GetCustomRectByIndex(ImFontAtlas* self, int index); // Function @ cimgui.h:3007:17 [DllImport(LibraryName)] public static extern void ImFontAtlas_CalcCustomRectUV(ImFontAtlas* self, ImFontAtlasCustomRect* rect, Vector2* out_uv_min, Vector2* out_uv_max); // Function @ cimgui.h:3008:17 [DllImport(LibraryName)] public static extern CBool ImFontAtlas_GetMouseCursorTexData(ImFontAtlas* self, ImGuiMouseCursor cursor, Vector2* out_offset, Vector2* out_size, Vector2* out_uv_border, Vector2* out_uv_fill); // Function @ cimgui.h:3009:20 [DllImport(LibraryName)] public static extern ImFont* ImFont_ImFont(); // Function @ cimgui.h:3010:17 [DllImport(LibraryName)] public static extern void ImFont_destroy(ImFont* self); // Function @ cimgui.h:3011:31 [DllImport(LibraryName)] public static extern ImFontGlyph* ImFont_FindGlyph(ImFont* self, byte c); // Function @ cimgui.h:3012:31 [DllImport(LibraryName)] public static extern ImFontGlyph* ImFont_FindGlyphNoFallback(ImFont* self, byte c); // Function @ cimgui.h:3013:18 [DllImport(LibraryName)] public static extern float ImFont_GetCharAdvance(ImFont* self, byte c); // Function @ cimgui.h:3014:17 [DllImport(LibraryName)] public static extern CBool ImFont_IsLoaded(ImFont* self); // Function @ cimgui.h:3015:24 [DllImport(LibraryName)] public static extern CString ImFont_GetDebugName(ImFont* self); // Function @ cimgui.h:3016:17 [DllImport(LibraryName)] public static extern void ImFont_CalcTextSizeA(Vector2* pOut, ImFont* self, float size, float max_width, float wrap_width, CString text_begin, CString text_end, CString* remaining); // Function @ cimgui.h:3017:24 [DllImport(LibraryName)] public static extern CString ImFont_CalcWordWrapPositionA(ImFont* self, float scale, CString text, CString text_end, float wrap_width); // Function @ cimgui.h:3018:17 [DllImport(LibraryName)] public static extern void ImFont_RenderChar(ImFont* self, ImDrawList* draw_list, float size, Vector2 pos, uint col, byte c); // Function @ cimgui.h:3019:17 [DllImport(LibraryName)] public static extern void ImFont_RenderText(ImFont* self, ImDrawList* draw_list, float size, Vector2 pos, uint col, Vector4 clip_rect, CString text_begin, CString text_end, float wrap_width, CBool cpu_fine_clip); // Function @ cimgui.h:3020:17 [DllImport(LibraryName)] public static extern void ImFont_BuildLookupTable(ImFont* self); // Function @ cimgui.h:3021:17 [DllImport(LibraryName)] public static extern void ImFont_ClearOutputData(ImFont* self); // Function @ cimgui.h:3022:17 [DllImport(LibraryName)] public static extern void ImFont_GrowIndex(ImFont* self, int new_size); // Function @ cimgui.h:3023:17 [DllImport(LibraryName)] public static extern void ImFont_AddGlyph(ImFont* self, ImFontConfig* src_cfg, byte c, float x0, float y0, float x1, float y1, float u0, float v0, float u1, float v1, float advance_x); // Function @ cimgui.h:3024:17 [DllImport(LibraryName)] public static extern void ImFont_AddRemapChar(ImFont* self, byte dst, byte src, CBool overwrite_dst); // Function @ cimgui.h:3025:17 [DllImport(LibraryName)] public static extern void ImFont_SetGlyphVisible(ImFont* self, byte c, CBool visible); // Function @ cimgui.h:3026:17 [DllImport(LibraryName)] public static extern CBool ImFont_IsGlyphRangeUnused(ImFont* self, uint c_begin, uint c_last); // Function @ cimgui.h:3027:27 [DllImport(LibraryName)] public static extern ImGuiViewport* ImGuiViewport_ImGuiViewport(); // Function @ cimgui.h:3028:17 [DllImport(LibraryName)] public static extern void ImGuiViewport_destroy(ImGuiViewport* self); // Function @ cimgui.h:3029:17 [DllImport(LibraryName)] public static extern void ImGuiViewport_GetCenter(Vector2* pOut, ImGuiViewport* self); // Function @ cimgui.h:3030:17 [DllImport(LibraryName)] public static extern void ImGuiViewport_GetWorkCenter(Vector2* pOut, ImGuiViewport* self); // Function @ cimgui.h:3031:20 [DllImport(LibraryName)] public static extern ImGuiID igImHashData(void* data, ulong data_size, uint seed); // Function @ cimgui.h:3032:20 [DllImport(LibraryName)] public static extern ImGuiID igImHashStr(CString data, ulong data_size, uint seed); // Function @ cimgui.h:3033:17 [DllImport(LibraryName)] public static extern void igImQsort(void* @base, ulong count, ulong size_of_element, FnPtr_IMGUI_VoidPtr_VoidPtr_Int compare_func); // Function @ cimgui.h:3034:18 [DllImport(LibraryName)] public static extern uint igImAlphaBlendColors(uint col_a, uint col_b); // Function @ cimgui.h:3035:17 [DllImport(LibraryName)] public static extern CBool igImIsPowerOfTwo_Int(int v); // Function @ cimgui.h:3036:17 [DllImport(LibraryName)] public static extern CBool igImIsPowerOfTwo_U64(ulong v); // Function @ cimgui.h:3037:16 [DllImport(LibraryName)] public static extern int igImUpperPowerOfTwo(int v); // Function @ cimgui.h:3038:16 [DllImport(LibraryName)] public static extern int igImStricmp(CString str1, CString str2); // Function @ cimgui.h:3039:16 [DllImport(LibraryName)] public static extern int igImStrnicmp(CString str1, CString str2, ulong count); // Function @ cimgui.h:3040:17 [DllImport(LibraryName)] public static extern void igImStrncpy(CString dst, CString src, ulong count); // Function @ cimgui.h:3041:18 [DllImport(LibraryName)] public static extern CString igImStrdup(CString str); // Function @ cimgui.h:3042:18 [DllImport(LibraryName)] public static extern CString igImStrdupcpy(CString dst, ulong* p_dst_size, CString str); // Function @ cimgui.h:3043:24 [DllImport(LibraryName)] public static extern CString igImStrchrRange(CString str_begin, CString str_end, CChar c); // Function @ cimgui.h:3044:16 [DllImport(LibraryName)] public static extern int igImStrlenW(byte* str); // Function @ cimgui.h:3045:24 [DllImport(LibraryName)] public static extern CString igImStreolRange(CString str, CString str_end); // Function @ cimgui.h:3046:27 [DllImport(LibraryName)] public static extern byte* igImStrbolW(byte* buf_mid_line, byte* buf_begin); // Function @ cimgui.h:3047:24 [DllImport(LibraryName)] public static extern CString igImStristr(CString haystack, CString haystack_end, CString needle, CString needle_end); // Function @ cimgui.h:3048:17 [DllImport(LibraryName)] public static extern void igImStrTrimBlanks(CString str); // Function @ cimgui.h:3049:24 [DllImport(LibraryName)] public static extern CString igImStrSkipBlank(CString str); // Function @ cimgui.h:3050:16 [DllImport(LibraryName)] public static extern int igImFormatString(CString buf, ulong buf_size, CString fmt); // Function @ cimgui.h:3051:16 [DllImport(LibraryName)] public static extern int igImFormatStringV(CString buf, ulong buf_size, CString fmt, nint args); // Function @ cimgui.h:3052:24 [DllImport(LibraryName)] public static extern CString igImParseFormatFindStart(CString format); // Function @ cimgui.h:3053:24 [DllImport(LibraryName)] public static extern CString igImParseFormatFindEnd(CString format); // Function @ cimgui.h:3054:24 [DllImport(LibraryName)] public static extern CString igImParseFormatTrimDecorations(CString format, CString buf, ulong buf_size); // Function @ cimgui.h:3055:16 [DllImport(LibraryName)] public static extern int igImParseFormatPrecision(CString format, int default_value); // Function @ cimgui.h:3056:17 [DllImport(LibraryName)] public static extern CBool igImCharIsBlankA(CChar c); // Function @ cimgui.h:3057:17 [DllImport(LibraryName)] public static extern CBool igImCharIsBlankW(uint c); // Function @ cimgui.h:3058:24 [DllImport(LibraryName)] public static extern CString igImTextCharToUtf8(CString out_buf, uint c); // Function @ cimgui.h:3059:16 [DllImport(LibraryName)] public static extern int igImTextStrToUtf8(CString out_buf, int out_buf_size, byte* in_text, byte* in_text_end); // Function @ cimgui.h:3060:16 [DllImport(LibraryName)] public static extern int igImTextCharFromUtf8(ulong* out_char, CString in_text, CString in_text_end); // Function @ cimgui.h:3061:16 [DllImport(LibraryName)] public static extern int igImTextStrFromUtf8(byte* out_buf, int out_buf_size, CString in_text, CString in_text_end, CString* in_remaining); // Function @ cimgui.h:3062:16 [DllImport(LibraryName)] public static extern int igImTextCountCharsFromUtf8(CString in_text, CString in_text_end); // Function @ cimgui.h:3063:16 [DllImport(LibraryName)] public static extern int igImTextCountUtf8BytesFromChar(CString in_text, CString in_text_end); // Function @ cimgui.h:3064:16 [DllImport(LibraryName)] public static extern int igImTextCountUtf8BytesFromStr(byte* in_text, byte* in_text_end); // Function @ cimgui.h:3065:25 [DllImport(LibraryName)] public static extern ImFileHandle igImFileOpen(CString filename, CString mode); // Function @ cimgui.h:3066:17 [DllImport(LibraryName)] public static extern CBool igImFileClose(ImFileHandle file); // Function @ cimgui.h:3067:18 [DllImport(LibraryName)] public static extern ulong igImFileGetSize(ImFileHandle file); // Function @ cimgui.h:3068:18 [DllImport(LibraryName)] public static extern ulong igImFileRead(void* data, ulong size, ulong count, ImFileHandle file); // Function @ cimgui.h:3069:18 [DllImport(LibraryName)] public static extern ulong igImFileWrite(void* data, ulong size, ulong count, ImFileHandle file); // Function @ cimgui.h:3070:18 [DllImport(LibraryName)] public static extern void* igImFileLoadToMemory(CString filename, CString mode, ulong* out_file_size, int padding_bytes); // Function @ cimgui.h:3071:18 [DllImport(LibraryName)] public static extern float igImPow_Float(float x, float y); // Function @ cimgui.h:3072:19 [DllImport(LibraryName)] public static extern double igImPow_double(double x, double y); // Function @ cimgui.h:3073:18 [DllImport(LibraryName)] public static extern float igImLog_Float(float x); // Function @ cimgui.h:3074:19 [DllImport(LibraryName)] public static extern double igImLog_double(double x); // Function @ cimgui.h:3075:16 [DllImport(LibraryName)] public static extern int igImAbs_Int(int x); // Function @ cimgui.h:3076:18 [DllImport(LibraryName)] public static extern float igImAbs_Float(float x); // Function @ cimgui.h:3077:19 [DllImport(LibraryName)] public static extern double igImAbs_double(double x); // Function @ cimgui.h:3078:18 [DllImport(LibraryName)] public static extern float igImSign_Float(float x); // Function @ cimgui.h:3079:19 [DllImport(LibraryName)] public static extern double igImSign_double(double x); // Function @ cimgui.h:3080:18 [DllImport(LibraryName)] public static extern float igImRsqrt_Float(float x); // Function @ cimgui.h:3081:19 [DllImport(LibraryName)] public static extern double igImRsqrt_double(double x); // Function @ cimgui.h:3082:17 [DllImport(LibraryName)] public static extern void igImMin(Vector2* pOut, Vector2 lhs, Vector2 rhs); // Function @ cimgui.h:3083:17 [DllImport(LibraryName)] public static extern void igImMax(Vector2* pOut, Vector2 lhs, Vector2 rhs); // Function @ cimgui.h:3084:17 [DllImport(LibraryName)] public static extern void igImClamp(Vector2* pOut, Vector2 v, Vector2 mn, Vector2 mx); // Function @ cimgui.h:3085:17 [DllImport(LibraryName)] public static extern void igImLerp_Vec2Float(Vector2* pOut, Vector2 a, Vector2 b, float t); // Function @ cimgui.h:3086:17 [DllImport(LibraryName)] public static extern void igImLerp_Vec2Vec2(Vector2* pOut, Vector2 a, Vector2 b, Vector2 t); // Function @ cimgui.h:3087:17 [DllImport(LibraryName)] public static extern void igImLerp_Vec4(Vector4* pOut, Vector4 a, Vector4 b, float t); // Function @ cimgui.h:3088:18 [DllImport(LibraryName)] public static extern float igImSaturate(float f); // Function @ cimgui.h:3089:18 [DllImport(LibraryName)] public static extern float igImLengthSqr_Vec2(Vector2 lhs); // Function @ cimgui.h:3090:18 [DllImport(LibraryName)] public static extern float igImLengthSqr_Vec4(Vector4 lhs); // Function @ cimgui.h:3091:18 [DllImport(LibraryName)] public static extern float igImInvLength(Vector2 lhs, float fail_value); // Function @ cimgui.h:3092:18 [DllImport(LibraryName)] public static extern float igImFloor_Float(float f); // Function @ cimgui.h:3093:18 [DllImport(LibraryName)] public static extern float igImFloorSigned(float f); // Function @ cimgui.h:3094:17 [DllImport(LibraryName)] public static extern void igImFloor_Vec2(Vector2* pOut, Vector2 v); // Function @ cimgui.h:3095:16 [DllImport(LibraryName)] public static extern int igImModPositive(int a, int b); // Function @ cimgui.h:3096:18 [DllImport(LibraryName)] public static extern float igImDot(Vector2 a, Vector2 b); // Function @ cimgui.h:3097:17 [DllImport(LibraryName)] public static extern void igImRotate(Vector2* pOut, Vector2 v, float cos_a, float sin_a); // Function @ cimgui.h:3098:18 [DllImport(LibraryName)] public static extern float igImLinearSweep(float current, float target, float speed); // Function @ cimgui.h:3099:17 [DllImport(LibraryName)] public static extern void igImMul(Vector2* pOut, Vector2 lhs, Vector2 rhs); // Function @ cimgui.h:3100:17 [DllImport(LibraryName)] public static extern CBool igImIsFloatAboveGuaranteedIntegerPrecision(float f); // Function @ cimgui.h:3101:17 [DllImport(LibraryName)] public static extern void igImBezierCubicCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, float t); // Function @ cimgui.h:3102:17 [DllImport(LibraryName)] public static extern void igImBezierCubicClosestPoint(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, int num_segments); // Function @ cimgui.h:3103:17 [DllImport(LibraryName)] public static extern void igImBezierCubicClosestPointCasteljau(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, Vector2 p4, Vector2 p, float tess_tol); // Function @ cimgui.h:3104:17 [DllImport(LibraryName)] public static extern void igImBezierQuadraticCalc(Vector2* pOut, Vector2 p1, Vector2 p2, Vector2 p3, float t); // Function @ cimgui.h:3105:17 [DllImport(LibraryName)] public static extern void igImLineClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 p); // Function @ cimgui.h:3106:17 [DllImport(LibraryName)] public static extern CBool igImTriangleContainsPoint(Vector2 a, Vector2 b, Vector2 c, Vector2 p); // Function @ cimgui.h:3107:17 [DllImport(LibraryName)] public static extern void igImTriangleClosestPoint(Vector2* pOut, Vector2 a, Vector2 b, Vector2 c, Vector2 p); // Function @ cimgui.h:3108:17 [DllImport(LibraryName)] public static extern void igImTriangleBarycentricCoords(Vector2 a, Vector2 b, Vector2 c, Vector2 p, float* out_u, float* out_v, float* out_w); // Function @ cimgui.h:3109:18 [DllImport(LibraryName)] public static extern float igImTriangleArea(Vector2 a, Vector2 b, Vector2 c); // Function @ cimgui.h:3110:21 [DllImport(LibraryName)] public static extern ImGuiDir igImGetDirQuadrantFromDelta(float dx, float dy); // Function @ cimgui.h:3111:20 [DllImport(LibraryName)] public static extern float* ImVec1_ImVec1_Nil(); // Function @ cimgui.h:3112:17 [DllImport(LibraryName)] public static extern void ImVec1_destroy(float* self); // Function @ cimgui.h:3113:20 [DllImport(LibraryName)] public static extern float* ImVec1_ImVec1_Float(float _x); // Function @ cimgui.h:3114:22 [DllImport(LibraryName)] public static extern ImVec2ih* ImVec2ih_ImVec2ih_Nil(); // Function @ cimgui.h:3115:17 [DllImport(LibraryName)] public static extern void ImVec2ih_destroy(ImVec2ih* self); // Function @ cimgui.h:3116:22 [DllImport(LibraryName)] public static extern ImVec2ih* ImVec2ih_ImVec2ih_short(short _x, short _y); // Function @ cimgui.h:3117:22 [DllImport(LibraryName)] public static extern ImVec2ih* ImVec2ih_ImVec2ih_Vec2(Vector2 rhs); // Function @ cimgui.h:3118:20 [DllImport(LibraryName)] public static extern ImRect* ImRect_ImRect_Nil(); // Function @ cimgui.h:3119:17 [DllImport(LibraryName)] public static extern void ImRect_destroy(ImRect* self); // Function @ cimgui.h:3120:20 [DllImport(LibraryName)] public static extern ImRect* ImRect_ImRect_Vec2(Vector2 min, Vector2 max); // Function @ cimgui.h:3121:20 [DllImport(LibraryName)] public static extern ImRect* ImRect_ImRect_Vec4(Vector4 v); // Function @ cimgui.h:3122:20 [DllImport(LibraryName)] public static extern ImRect* ImRect_ImRect_Float(float x1, float y1, float x2, float y2); // Function @ cimgui.h:3123:17 [DllImport(LibraryName)] public static extern void ImRect_GetCenter(Vector2* pOut, ImRect* self); // Function @ cimgui.h:3124:17 [DllImport(LibraryName)] public static extern void ImRect_GetSize(Vector2* pOut, ImRect* self); // Function @ cimgui.h:3125:18 [DllImport(LibraryName)] public static extern float ImRect_GetWidth(ImRect* self); // Function @ cimgui.h:3126:18 [DllImport(LibraryName)] public static extern float ImRect_GetHeight(ImRect* self); // Function @ cimgui.h:3127:18 [DllImport(LibraryName)] public static extern float ImRect_GetArea(ImRect* self); // Function @ cimgui.h:3128:17 [DllImport(LibraryName)] public static extern void ImRect_GetTL(Vector2* pOut, ImRect* self); // Function @ cimgui.h:3129:17 [DllImport(LibraryName)] public static extern void ImRect_GetTR(Vector2* pOut, ImRect* self); // Function @ cimgui.h:3130:17 [DllImport(LibraryName)] public static extern void ImRect_GetBL(Vector2* pOut, ImRect* self); // Function @ cimgui.h:3131:17 [DllImport(LibraryName)] public static extern void ImRect_GetBR(Vector2* pOut, ImRect* self); // Function @ cimgui.h:3132:17 [DllImport(LibraryName)] public static extern CBool ImRect_Contains_Vec2(ImRect* self, Vector2 p); // Function @ cimgui.h:3133:17 [DllImport(LibraryName)] public static extern CBool ImRect_Contains_Rect(ImRect* self, ImRect r); // Function @ cimgui.h:3134:17 [DllImport(LibraryName)] public static extern CBool ImRect_Overlaps(ImRect* self, ImRect r); // Function @ cimgui.h:3135:17 [DllImport(LibraryName)] public static extern void ImRect_Add_Vec2(ImRect* self, Vector2 p); // Function @ cimgui.h:3136:17 [DllImport(LibraryName)] public static extern void ImRect_Add_Rect(ImRect* self, ImRect r); // Function @ cimgui.h:3137:17 [DllImport(LibraryName)] public static extern void ImRect_Expand_Float(ImRect* self, float amount); // Function @ cimgui.h:3138:17 [DllImport(LibraryName)] public static extern void ImRect_Expand_Vec2(ImRect* self, Vector2 amount); // Function @ cimgui.h:3139:17 [DllImport(LibraryName)] public static extern void ImRect_Translate(ImRect* self, Vector2 d); // Function @ cimgui.h:3140:17 [DllImport(LibraryName)] public static extern void ImRect_TranslateX(ImRect* self, float dx); // Function @ cimgui.h:3141:17 [DllImport(LibraryName)] public static extern void ImRect_TranslateY(ImRect* self, float dy); // Function @ cimgui.h:3142:17 [DllImport(LibraryName)] public static extern void ImRect_ClipWith(ImRect* self, ImRect r); // Function @ cimgui.h:3143:17 [DllImport(LibraryName)] public static extern void ImRect_ClipWithFull(ImRect* self, ImRect r); // Function @ cimgui.h:3144:17 [DllImport(LibraryName)] public static extern void ImRect_Floor(ImRect* self); // Function @ cimgui.h:3145:17 [DllImport(LibraryName)] public static extern CBool ImRect_IsInverted(ImRect* self); // Function @ cimgui.h:3146:17 [DllImport(LibraryName)] public static extern void ImRect_ToVec4(Vector4* pOut, ImRect* self); // Function @ cimgui.h:3147:17 [DllImport(LibraryName)] public static extern CBool igImBitArrayTestBit(uint* arr, int n); // Function @ cimgui.h:3148:17 [DllImport(LibraryName)] public static extern void igImBitArrayClearBit(uint* arr, int n); // Function @ cimgui.h:3149:17 [DllImport(LibraryName)] public static extern void igImBitArraySetBit(uint* arr, int n); // Function @ cimgui.h:3150:17 [DllImport(LibraryName)] public static extern void igImBitArraySetBitRange(uint* arr, int n, int n2); // Function @ cimgui.h:3151:17 [DllImport(LibraryName)] public static extern void ImBitVector_Create(ImBitVector* self, int sz); // Function @ cimgui.h:3152:17 [DllImport(LibraryName)] public static extern void ImBitVector_Clear(ImBitVector* self); // Function @ cimgui.h:3153:17 [DllImport(LibraryName)] public static extern CBool ImBitVector_TestBit(ImBitVector* self, int n); // Function @ cimgui.h:3154:17 [DllImport(LibraryName)] public static extern void ImBitVector_SetBit(ImBitVector* self, int n); // Function @ cimgui.h:3155:17 [DllImport(LibraryName)] public static extern void ImBitVector_ClearBit(ImBitVector* self, int n); // Function @ cimgui.h:3156:34 [DllImport(LibraryName)] public static extern ImDrawListSharedData* ImDrawListSharedData_ImDrawListSharedData(); // Function @ cimgui.h:3157:17 [DllImport(LibraryName)] public static extern void ImDrawListSharedData_destroy(ImDrawListSharedData* self); // Function @ cimgui.h:3158:17 [DllImport(LibraryName)] public static extern void ImDrawListSharedData_SetCircleTessellationMaxError(ImDrawListSharedData* self, float max_error); // Function @ cimgui.h:3159:17 [DllImport(LibraryName)] public static extern void ImDrawDataBuilder_Clear(ImDrawDataBuilder* self); // Function @ cimgui.h:3160:17 [DllImport(LibraryName)] public static extern void ImDrawDataBuilder_ClearFreeMemory(ImDrawDataBuilder* self); // Function @ cimgui.h:3161:16 [DllImport(LibraryName)] public static extern int ImDrawDataBuilder_GetDrawListCount(ImDrawDataBuilder* self); // Function @ cimgui.h:3162:17 [DllImport(LibraryName)] public static extern void ImDrawDataBuilder_FlattenIntoSingleLayer(ImDrawDataBuilder* self); // Function @ cimgui.h:3163:27 [DllImport(LibraryName)] public static extern ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Int(ImGuiStyleVar idx, int v); // Function @ cimgui.h:3164:17 [DllImport(LibraryName)] public static extern void ImGuiStyleMod_destroy(ImGuiStyleMod* self); // Function @ cimgui.h:3165:27 [DllImport(LibraryName)] public static extern ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Float(ImGuiStyleVar idx, float v); // Function @ cimgui.h:3166:27 [DllImport(LibraryName)] public static extern ImGuiStyleMod* ImGuiStyleMod_ImGuiStyleMod_Vec2(ImGuiStyleVar idx, Vector2 v); // Function @ cimgui.h:3167:35 [DllImport(LibraryName)] public static extern ImGuiComboPreviewData* ImGuiComboPreviewData_ImGuiComboPreviewData(); // Function @ cimgui.h:3168:17 [DllImport(LibraryName)] public static extern void ImGuiComboPreviewData_destroy(ImGuiComboPreviewData* self); // Function @ cimgui.h:3169:30 [DllImport(LibraryName)] public static extern ImGuiMenuColumns* ImGuiMenuColumns_ImGuiMenuColumns(); // Function @ cimgui.h:3170:17 [DllImport(LibraryName)] public static extern void ImGuiMenuColumns_destroy(ImGuiMenuColumns* self); // Function @ cimgui.h:3171:17 [DllImport(LibraryName)] public static extern void ImGuiMenuColumns_Update(ImGuiMenuColumns* self, float spacing, CBool window_reappearing); // Function @ cimgui.h:3172:18 [DllImport(LibraryName)] public static extern float ImGuiMenuColumns_DeclColumns(ImGuiMenuColumns* self, float w_icon, float w_label, float w_shortcut, float w_mark); // Function @ cimgui.h:3173:17 [DllImport(LibraryName)] public static extern void ImGuiMenuColumns_CalcNextTotalWidth(ImGuiMenuColumns* self, CBool update_offsets); // Function @ cimgui.h:3174:33 [DllImport(LibraryName)] public static extern ImGuiInputTextState* ImGuiInputTextState_ImGuiInputTextState(); // Function @ cimgui.h:3175:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_destroy(ImGuiInputTextState* self); // Function @ cimgui.h:3176:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_ClearText(ImGuiInputTextState* self); // Function @ cimgui.h:3177:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_ClearFreeMemory(ImGuiInputTextState* self); // Function @ cimgui.h:3178:16 [DllImport(LibraryName)] public static extern int ImGuiInputTextState_GetUndoAvailCount(ImGuiInputTextState* self); // Function @ cimgui.h:3179:16 [DllImport(LibraryName)] public static extern int ImGuiInputTextState_GetRedoAvailCount(ImGuiInputTextState* self); // Function @ cimgui.h:3180:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_OnKeyPressed(ImGuiInputTextState* self, int key); // Function @ cimgui.h:3181:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_CursorAnimReset(ImGuiInputTextState* self); // Function @ cimgui.h:3182:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_CursorClamp(ImGuiInputTextState* self); // Function @ cimgui.h:3183:17 [DllImport(LibraryName)] public static extern CBool ImGuiInputTextState_HasSelection(ImGuiInputTextState* self); // Function @ cimgui.h:3184:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_ClearSelection(ImGuiInputTextState* self); // Function @ cimgui.h:3185:16 [DllImport(LibraryName)] public static extern int ImGuiInputTextState_GetCursorPos(ImGuiInputTextState* self); // Function @ cimgui.h:3186:16 [DllImport(LibraryName)] public static extern int ImGuiInputTextState_GetSelectionStart(ImGuiInputTextState* self); // Function @ cimgui.h:3187:16 [DllImport(LibraryName)] public static extern int ImGuiInputTextState_GetSelectionEnd(ImGuiInputTextState* self); // Function @ cimgui.h:3188:17 [DllImport(LibraryName)] public static extern void ImGuiInputTextState_SelectAll(ImGuiInputTextState* self); // Function @ cimgui.h:3189:28 [DllImport(LibraryName)] public static extern ImGuiPopupData* ImGuiPopupData_ImGuiPopupData(); // Function @ cimgui.h:3190:17 [DllImport(LibraryName)] public static extern void ImGuiPopupData_destroy(ImGuiPopupData* self); // Function @ cimgui.h:3191:33 [DllImport(LibraryName)] public static extern ImGuiNextWindowData* ImGuiNextWindowData_ImGuiNextWindowData(); // Function @ cimgui.h:3192:17 [DllImport(LibraryName)] public static extern void ImGuiNextWindowData_destroy(ImGuiNextWindowData* self); // Function @ cimgui.h:3193:17 [DllImport(LibraryName)] public static extern void ImGuiNextWindowData_ClearFlags(ImGuiNextWindowData* self); // Function @ cimgui.h:3194:31 [DllImport(LibraryName)] public static extern ImGuiNextItemData* ImGuiNextItemData_ImGuiNextItemData(); // Function @ cimgui.h:3195:17 [DllImport(LibraryName)] public static extern void ImGuiNextItemData_destroy(ImGuiNextItemData* self); // Function @ cimgui.h:3196:17 [DllImport(LibraryName)] public static extern void ImGuiNextItemData_ClearFlags(ImGuiNextItemData* self); // Function @ cimgui.h:3197:31 [DllImport(LibraryName)] public static extern ImGuiLastItemData* ImGuiLastItemData_ImGuiLastItemData(); // Function @ cimgui.h:3198:17 [DllImport(LibraryName)] public static extern void ImGuiLastItemData_destroy(ImGuiLastItemData* self); // Function @ cimgui.h:3199:29 [DllImport(LibraryName)] public static extern ImGuiStackSizes* ImGuiStackSizes_ImGuiStackSizes(); // Function @ cimgui.h:3200:17 [DllImport(LibraryName)] public static extern void ImGuiStackSizes_destroy(ImGuiStackSizes* self); // Function @ cimgui.h:3201:17 [DllImport(LibraryName)] public static extern void ImGuiStackSizes_SetToCurrentState(ImGuiStackSizes* self); // Function @ cimgui.h:3202:17 [DllImport(LibraryName)] public static extern void ImGuiStackSizes_CompareWithCurrentState(ImGuiStackSizes* self); // Function @ cimgui.h:3203:29 [DllImport(LibraryName)] public static extern ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Ptr(void* ptr); // Function @ cimgui.h:3204:17 [DllImport(LibraryName)] public static extern void ImGuiPtrOrIndex_destroy(ImGuiPtrOrIndex* self); // Function @ cimgui.h:3205:29 [DllImport(LibraryName)] public static extern ImGuiPtrOrIndex* ImGuiPtrOrIndex_ImGuiPtrOrIndex_Int(int index); // Function @ cimgui.h:3206:34 [DllImport(LibraryName)] public static extern ImGuiListClipperRange ImGuiListClipperRange_FromIndices(int min, int max); // Function @ cimgui.h:3207:34 [DllImport(LibraryName)] public static extern ImGuiListClipperRange ImGuiListClipperRange_FromPositions(float y1, float y2, int off_min, int off_max); // Function @ cimgui.h:3208:34 [DllImport(LibraryName)] public static extern ImGuiListClipperData* ImGuiListClipperData_ImGuiListClipperData(); // Function @ cimgui.h:3209:17 [DllImport(LibraryName)] public static extern void ImGuiListClipperData_destroy(ImGuiListClipperData* self); // Function @ cimgui.h:3210:17 [DllImport(LibraryName)] public static extern void ImGuiListClipperData_Reset(ImGuiListClipperData* self, ImGuiListClipper* clipper); // Function @ cimgui.h:3211:30 [DllImport(LibraryName)] public static extern ImGuiNavItemData* ImGuiNavItemData_ImGuiNavItemData(); // Function @ cimgui.h:3212:17 [DllImport(LibraryName)] public static extern void ImGuiNavItemData_destroy(ImGuiNavItemData* self); // Function @ cimgui.h:3213:17 [DllImport(LibraryName)] public static extern void ImGuiNavItemData_Clear(ImGuiNavItemData* self); // Function @ cimgui.h:3214:32 [DllImport(LibraryName)] public static extern ImGuiOldColumnData* ImGuiOldColumnData_ImGuiOldColumnData(); // Function @ cimgui.h:3215:17 [DllImport(LibraryName)] public static extern void ImGuiOldColumnData_destroy(ImGuiOldColumnData* self); // Function @ cimgui.h:3216:29 [DllImport(LibraryName)] public static extern ImGuiOldColumns* ImGuiOldColumns_ImGuiOldColumns(); // Function @ cimgui.h:3217:17 [DllImport(LibraryName)] public static extern void ImGuiOldColumns_destroy(ImGuiOldColumns* self); // Function @ cimgui.h:3218:28 [DllImport(LibraryName)] public static extern ImGuiViewportP* ImGuiViewportP_ImGuiViewportP(); // Function @ cimgui.h:3219:17 [DllImport(LibraryName)] public static extern void ImGuiViewportP_destroy(ImGuiViewportP* self); // Function @ cimgui.h:3220:17 [DllImport(LibraryName)] public static extern void ImGuiViewportP_CalcWorkRectPos(Vector2* pOut, ImGuiViewportP* self, Vector2 off_min); // Function @ cimgui.h:3221:17 [DllImport(LibraryName)] public static extern void ImGuiViewportP_CalcWorkRectSize(Vector2* pOut, ImGuiViewportP* self, Vector2 off_min, Vector2 off_max); // Function @ cimgui.h:3222:17 [DllImport(LibraryName)] public static extern void ImGuiViewportP_UpdateWorkRect(ImGuiViewportP* self); // Function @ cimgui.h:3223:17 [DllImport(LibraryName)] public static extern void ImGuiViewportP_GetMainRect(ImRect* pOut, ImGuiViewportP* self); // Function @ cimgui.h:3224:17 [DllImport(LibraryName)] public static extern void ImGuiViewportP_GetWorkRect(ImRect* pOut, ImGuiViewportP* self); // Function @ cimgui.h:3225:17 [DllImport(LibraryName)] public static extern void ImGuiViewportP_GetBuildWorkRect(ImRect* pOut, ImGuiViewportP* self); // Function @ cimgui.h:3226:33 [DllImport(LibraryName)] public static extern ImGuiWindowSettings* ImGuiWindowSettings_ImGuiWindowSettings(); // Function @ cimgui.h:3227:17 [DllImport(LibraryName)] public static extern void ImGuiWindowSettings_destroy(ImGuiWindowSettings* self); // Function @ cimgui.h:3228:18 [DllImport(LibraryName)] public static extern CString ImGuiWindowSettings_GetName(ImGuiWindowSettings* self); // Function @ cimgui.h:3229:34 [DllImport(LibraryName)] public static extern ImGuiSettingsHandler* ImGuiSettingsHandler_ImGuiSettingsHandler(); // Function @ cimgui.h:3230:17 [DllImport(LibraryName)] public static extern void ImGuiSettingsHandler_destroy(ImGuiSettingsHandler* self); // Function @ cimgui.h:3231:32 [DllImport(LibraryName)] public static extern ImGuiMetricsConfig* ImGuiMetricsConfig_ImGuiMetricsConfig(); // Function @ cimgui.h:3232:17 [DllImport(LibraryName)] public static extern void ImGuiMetricsConfig_destroy(ImGuiMetricsConfig* self); // Function @ cimgui.h:3233:33 [DllImport(LibraryName)] public static extern ImGuiStackLevelInfo* ImGuiStackLevelInfo_ImGuiStackLevelInfo(); // Function @ cimgui.h:3234:17 [DllImport(LibraryName)] public static extern void ImGuiStackLevelInfo_destroy(ImGuiStackLevelInfo* self); // Function @ cimgui.h:3235:28 [DllImport(LibraryName)] public static extern ImGuiStackTool* ImGuiStackTool_ImGuiStackTool(); // Function @ cimgui.h:3236:17 [DllImport(LibraryName)] public static extern void ImGuiStackTool_destroy(ImGuiStackTool* self); // Function @ cimgui.h:3237:30 [DllImport(LibraryName)] public static extern ImGuiContextHook* ImGuiContextHook_ImGuiContextHook(); // Function @ cimgui.h:3238:17 [DllImport(LibraryName)] public static extern void ImGuiContextHook_destroy(ImGuiContextHook* self); // Function @ cimgui.h:3239:26 [DllImport(LibraryName)] public static extern ImGuiContext* ImGuiContext_ImGuiContext(ImFontAtlas* shared_font_atlas); // Function @ cimgui.h:3240:17 [DllImport(LibraryName)] public static extern void ImGuiContext_destroy(ImGuiContext* self); // Function @ cimgui.h:3241:25 [DllImport(LibraryName)] public static extern ImGuiWindow* ImGuiWindow_ImGuiWindow(ImGuiContext* context, CString name); // Function @ cimgui.h:3242:17 [DllImport(LibraryName)] public static extern void ImGuiWindow_destroy(ImGuiWindow* self); // Function @ cimgui.h:3243:20 [DllImport(LibraryName)] public static extern ImGuiID ImGuiWindow_GetID_Str(ImGuiWindow* self, CString str, CString str_end); // Function @ cimgui.h:3244:20 [DllImport(LibraryName)] public static extern ImGuiID ImGuiWindow_GetID_Ptr(ImGuiWindow* self, void* ptr); // Function @ cimgui.h:3245:20 [DllImport(LibraryName)] public static extern ImGuiID ImGuiWindow_GetID_Int(ImGuiWindow* self, int n); // Function @ cimgui.h:3246:20 [DllImport(LibraryName)] public static extern ImGuiID ImGuiWindow_GetIDNoKeepAlive_Str(ImGuiWindow* self, CString str, CString str_end); // Function @ cimgui.h:3247:20 [DllImport(LibraryName)] public static extern ImGuiID ImGuiWindow_GetIDNoKeepAlive_Ptr(ImGuiWindow* self, void* ptr); // Function @ cimgui.h:3248:20 [DllImport(LibraryName)] public static extern ImGuiID ImGuiWindow_GetIDNoKeepAlive_Int(ImGuiWindow* self, int n); // Function @ cimgui.h:3249:20 [DllImport(LibraryName)] public static extern ImGuiID ImGuiWindow_GetIDFromRectangle(ImGuiWindow* self, ImRect r_abs); // Function @ cimgui.h:3250:17 [DllImport(LibraryName)] public static extern void ImGuiWindow_Rect(ImRect* pOut, ImGuiWindow* self); // Function @ cimgui.h:3251:18 [DllImport(LibraryName)] public static extern float ImGuiWindow_CalcFontSize(ImGuiWindow* self); // Function @ cimgui.h:3252:18 [DllImport(LibraryName)] public static extern float ImGuiWindow_TitleBarHeight(ImGuiWindow* self); // Function @ cimgui.h:3253:17 [DllImport(LibraryName)] public static extern void ImGuiWindow_TitleBarRect(ImRect* pOut, ImGuiWindow* self); // Function @ cimgui.h:3254:18 [DllImport(LibraryName)] public static extern float ImGuiWindow_MenuBarHeight(ImGuiWindow* self); // Function @ cimgui.h:3255:17 [DllImport(LibraryName)] public static extern void ImGuiWindow_MenuBarRect(ImRect* pOut, ImGuiWindow* self); // Function @ cimgui.h:3256:26 [DllImport(LibraryName)] public static extern ImGuiTabItem* ImGuiTabItem_ImGuiTabItem(); // Function @ cimgui.h:3257:17 [DllImport(LibraryName)] public static extern void ImGuiTabItem_destroy(ImGuiTabItem* self); // Function @ cimgui.h:3258:25 [DllImport(LibraryName)] public static extern ImGuiTabBar* ImGuiTabBar_ImGuiTabBar(); // Function @ cimgui.h:3259:17 [DllImport(LibraryName)] public static extern void ImGuiTabBar_destroy(ImGuiTabBar* self); // Function @ cimgui.h:3260:16 [DllImport(LibraryName)] public static extern int ImGuiTabBar_GetTabOrder(ImGuiTabBar* self, ImGuiTabItem* tab); // Function @ cimgui.h:3261:24 [DllImport(LibraryName)] public static extern CString ImGuiTabBar_GetTabName(ImGuiTabBar* self, ImGuiTabItem* tab); // Function @ cimgui.h:3262:30 [DllImport(LibraryName)] public static extern ImGuiTableColumn* ImGuiTableColumn_ImGuiTableColumn(); // Function @ cimgui.h:3263:17 [DllImport(LibraryName)] public static extern void ImGuiTableColumn_destroy(ImGuiTableColumn* self); // Function @ cimgui.h:3264:24 [DllImport(LibraryName)] public static extern ImGuiTable* ImGuiTable_ImGuiTable(); // Function @ cimgui.h:3265:17 [DllImport(LibraryName)] public static extern void ImGuiTable_destroy(ImGuiTable* self); // Function @ cimgui.h:3266:32 [DllImport(LibraryName)] public static extern ImGuiTableTempData* ImGuiTableTempData_ImGuiTableTempData(); // Function @ cimgui.h:3267:17 [DllImport(LibraryName)] public static extern void ImGuiTableTempData_destroy(ImGuiTableTempData* self); // Function @ cimgui.h:3268:38 [DllImport(LibraryName)] public static extern ImGuiTableColumnSettings* ImGuiTableColumnSettings_ImGuiTableColumnSettings(); // Function @ cimgui.h:3269:17 [DllImport(LibraryName)] public static extern void ImGuiTableColumnSettings_destroy(ImGuiTableColumnSettings* self); // Function @ cimgui.h:3270:32 [DllImport(LibraryName)] public static extern ImGuiTableSettings* ImGuiTableSettings_ImGuiTableSettings(); // Function @ cimgui.h:3271:17 [DllImport(LibraryName)] public static extern void ImGuiTableSettings_destroy(ImGuiTableSettings* self); // Function @ cimgui.h:3272:38 [DllImport(LibraryName)] public static extern ImGuiTableColumnSettings* ImGuiTableSettings_GetColumnSettings(ImGuiTableSettings* self); // Function @ cimgui.h:3273:25 [DllImport(LibraryName)] public static extern ImGuiWindow* igGetCurrentWindowRead(); // Function @ cimgui.h:3274:25 [DllImport(LibraryName)] public static extern ImGuiWindow* igGetCurrentWindow(); // Function @ cimgui.h:3275:25 [DllImport(LibraryName)] public static extern ImGuiWindow* igFindWindowByID(ImGuiID id); // Function @ cimgui.h:3276:25 [DllImport(LibraryName)] public static extern ImGuiWindow* igFindWindowByName(CString name); // Function @ cimgui.h:3277:17 [DllImport(LibraryName)] public static extern void igUpdateWindowParentAndRootLinks(ImGuiWindow* window, ImGuiWindowFlags flags, ImGuiWindow* parent_window); // Function @ cimgui.h:3278:17 [DllImport(LibraryName)] public static extern void igCalcWindowNextAutoFitSize(Vector2* pOut, ImGuiWindow* window); // Function @ cimgui.h:3279:17 [DllImport(LibraryName)] public static extern CBool igIsWindowChildOf(ImGuiWindow* window, ImGuiWindow* potential_parent, CBool popup_hierarchy); // Function @ cimgui.h:3280:17 [DllImport(LibraryName)] public static extern CBool igIsWindowWithinBeginStackOf(ImGuiWindow* window, ImGuiWindow* potential_parent); // Function @ cimgui.h:3281:17 [DllImport(LibraryName)] public static extern CBool igIsWindowAbove(ImGuiWindow* potential_above, ImGuiWindow* potential_below); // Function @ cimgui.h:3282:17 [DllImport(LibraryName)] public static extern CBool igIsWindowNavFocusable(ImGuiWindow* window); // Function @ cimgui.h:3283:17 [DllImport(LibraryName)] public static extern void igSetWindowPos_WindowPtr(ImGuiWindow* window, Vector2 pos, ImGuiCond cond); // Function @ cimgui.h:3284:17 [DllImport(LibraryName)] public static extern void igSetWindowSize_WindowPtr(ImGuiWindow* window, Vector2 size, ImGuiCond cond); // Function @ cimgui.h:3285:17 [DllImport(LibraryName)] public static extern void igSetWindowCollapsed_WindowPtr(ImGuiWindow* window, CBool collapsed, ImGuiCond cond); // Function @ cimgui.h:3286:17 [DllImport(LibraryName)] public static extern void igSetWindowHitTestHole(ImGuiWindow* window, Vector2 pos, Vector2 size); // Function @ cimgui.h:3287:17 [DllImport(LibraryName)] public static extern void igWindowRectAbsToRel(ImRect* pOut, ImGuiWindow* window, ImRect r); // Function @ cimgui.h:3288:17 [DllImport(LibraryName)] public static extern void igWindowRectRelToAbs(ImRect* pOut, ImGuiWindow* window, ImRect r); // Function @ cimgui.h:3289:17 [DllImport(LibraryName)] public static extern void igFocusWindow(ImGuiWindow* window); // Function @ cimgui.h:3290:17 [DllImport(LibraryName)] public static extern void igFocusTopMostWindowUnderOne(ImGuiWindow* under_this_window, ImGuiWindow* ignore_window); // Function @ cimgui.h:3291:17 [DllImport(LibraryName)] public static extern void igBringWindowToFocusFront(ImGuiWindow* window); // Function @ cimgui.h:3292:17 [DllImport(LibraryName)] public static extern void igBringWindowToDisplayFront(ImGuiWindow* window); // Function @ cimgui.h:3293:17 [DllImport(LibraryName)] public static extern void igBringWindowToDisplayBack(ImGuiWindow* window); // Function @ cimgui.h:3294:17 [DllImport(LibraryName)] public static extern void igBringWindowToDisplayBehind(ImGuiWindow* window, ImGuiWindow* above_window); // Function @ cimgui.h:3295:16 [DllImport(LibraryName)] public static extern int igFindWindowDisplayIndex(ImGuiWindow* window); // Function @ cimgui.h:3296:25 [DllImport(LibraryName)] public static extern ImGuiWindow* igFindBottomMostVisibleWindowWithinBeginStack(ImGuiWindow* window); // Function @ cimgui.h:3297:17 [DllImport(LibraryName)] public static extern void igSetCurrentFont(ImFont* font); // Function @ cimgui.h:3298:20 [DllImport(LibraryName)] public static extern ImFont* igGetDefaultFont(); // Function @ cimgui.h:3299:24 [DllImport(LibraryName)] public static extern ImDrawList* igGetForegroundDrawList_WindowPtr(ImGuiWindow* window); // Function @ cimgui.h:3300:24 [DllImport(LibraryName)] public static extern ImDrawList* igGetBackgroundDrawList_ViewportPtr(ImGuiViewport* viewport); // Function @ cimgui.h:3301:24 [DllImport(LibraryName)] public static extern ImDrawList* igGetForegroundDrawList_ViewportPtr(ImGuiViewport* viewport); // Function @ cimgui.h:3302:17 [DllImport(LibraryName)] public static extern void igInitialize(ImGuiContext* context); // Function @ cimgui.h:3303:17 [DllImport(LibraryName)] public static extern void igShutdown(ImGuiContext* context); // Function @ cimgui.h:3304:17 [DllImport(LibraryName)] public static extern void igUpdateHoveredWindowAndCaptureFlags(); // Function @ cimgui.h:3305:17 [DllImport(LibraryName)] public static extern void igStartMouseMovingWindow(ImGuiWindow* window); // Function @ cimgui.h:3306:17 [DllImport(LibraryName)] public static extern void igUpdateMouseMovingWindowNewFrame(); // Function @ cimgui.h:3307:17 [DllImport(LibraryName)] public static extern void igUpdateMouseMovingWindowEndFrame(); // Function @ cimgui.h:3308:20 [DllImport(LibraryName)] public static extern ImGuiID igAddContextHook(ImGuiContext* context, ImGuiContextHook* hook); // Function @ cimgui.h:3309:17 [DllImport(LibraryName)] public static extern void igRemoveContextHook(ImGuiContext* context, ImGuiID hook_to_remove); // Function @ cimgui.h:3310:17 [DllImport(LibraryName)] public static extern void igCallContextHooks(ImGuiContext* context, ImGuiContextHookType type); // Function @ cimgui.h:3311:17 [DllImport(LibraryName)] public static extern void igMarkIniSettingsDirty_Nil(); // Function @ cimgui.h:3312:17 [DllImport(LibraryName)] public static extern void igMarkIniSettingsDirty_WindowPtr(ImGuiWindow* window); // Function @ cimgui.h:3313:17 [DllImport(LibraryName)] public static extern void igClearIniSettings(); // Function @ cimgui.h:3314:33 [DllImport(LibraryName)] public static extern ImGuiWindowSettings* igCreateNewWindowSettings(CString name); // Function @ cimgui.h:3315:33 [DllImport(LibraryName)] public static extern ImGuiWindowSettings* igFindWindowSettings(ImGuiID id); // Function @ cimgui.h:3316:33 [DllImport(LibraryName)] public static extern ImGuiWindowSettings* igFindOrCreateWindowSettings(CString name); // Function @ cimgui.h:3317:34 [DllImport(LibraryName)] public static extern ImGuiSettingsHandler* igFindSettingsHandler(CString type_name); // Function @ cimgui.h:3318:17 [DllImport(LibraryName)] public static extern void igSetNextWindowScroll(Vector2 scroll); // Function @ cimgui.h:3319:17 [DllImport(LibraryName)] public static extern void igSetScrollX_WindowPtr(ImGuiWindow* window, float scroll_x); // Function @ cimgui.h:3320:17 [DllImport(LibraryName)] public static extern void igSetScrollY_WindowPtr(ImGuiWindow* window, float scroll_y); // Function @ cimgui.h:3321:17 [DllImport(LibraryName)] public static extern void igSetScrollFromPosX_WindowPtr(ImGuiWindow* window, float local_x, float center_x_ratio); // Function @ cimgui.h:3322:17 [DllImport(LibraryName)] public static extern void igSetScrollFromPosY_WindowPtr(ImGuiWindow* window, float local_y, float center_y_ratio); // Function @ cimgui.h:3323:17 [DllImport(LibraryName)] public static extern void igScrollToItem(ImGuiScrollFlags flags); // Function @ cimgui.h:3324:17 [DllImport(LibraryName)] public static extern void igScrollToRect(ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags); // Function @ cimgui.h:3325:17 [DllImport(LibraryName)] public static extern void igScrollToRectEx(Vector2* pOut, ImGuiWindow* window, ImRect rect, ImGuiScrollFlags flags); // Function @ cimgui.h:3326:17 [DllImport(LibraryName)] public static extern void igScrollToBringRectIntoView(ImGuiWindow* window, ImRect rect); // Function @ cimgui.h:3327:20 [DllImport(LibraryName)] public static extern ImGuiID igGetItemID(); // Function @ cimgui.h:3328:33 [DllImport(LibraryName)] public static extern ImGuiItemStatusFlags igGetItemStatusFlags(); // Function @ cimgui.h:3329:27 [DllImport(LibraryName)] public static extern ImGuiItemFlags igGetItemFlags(); // Function @ cimgui.h:3330:20 [DllImport(LibraryName)] public static extern ImGuiID igGetActiveID(); // Function @ cimgui.h:3331:20 [DllImport(LibraryName)] public static extern ImGuiID igGetFocusID(); // Function @ cimgui.h:3332:17 [DllImport(LibraryName)] public static extern void igSetActiveID(ImGuiID id, ImGuiWindow* window); // Function @ cimgui.h:3333:17 [DllImport(LibraryName)] public static extern void igSetFocusID(ImGuiID id, ImGuiWindow* window); // Function @ cimgui.h:3334:17 [DllImport(LibraryName)] public static extern void igClearActiveID(); // Function @ cimgui.h:3335:20 [DllImport(LibraryName)] public static extern ImGuiID igGetHoveredID(); // Function @ cimgui.h:3336:17 [DllImport(LibraryName)] public static extern void igSetHoveredID(ImGuiID id); // Function @ cimgui.h:3337:17 [DllImport(LibraryName)] public static extern void igKeepAliveID(ImGuiID id); // Function @ cimgui.h:3338:17 [DllImport(LibraryName)] public static extern void igMarkItemEdited(ImGuiID id); // Function @ cimgui.h:3339:17 [DllImport(LibraryName)] public static extern void igPushOverrideID(ImGuiID id); // Function @ cimgui.h:3340:20 [DllImport(LibraryName)] public static extern ImGuiID igGetIDWithSeed(CString str_id_begin, CString str_id_end, ImGuiID seed); // Function @ cimgui.h:3341:17 [DllImport(LibraryName)] public static extern void igItemSize_Vec2(Vector2 size, float text_baseline_y); // Function @ cimgui.h:3342:17 [DllImport(LibraryName)] public static extern void igItemSize_Rect(ImRect bb, float text_baseline_y); // Function @ cimgui.h:3343:17 [DllImport(LibraryName)] public static extern CBool igItemAdd(ImRect bb, ImGuiID id, ImRect* nav_bb, ImGuiItemFlags extra_flags); // Function @ cimgui.h:3344:17 [DllImport(LibraryName)] public static extern CBool igItemHoverable(ImRect bb, ImGuiID id); // Function @ cimgui.h:3345:17 [DllImport(LibraryName)] public static extern CBool igIsClippedEx(ImRect bb, ImGuiID id); // Function @ cimgui.h:3346:17 [DllImport(LibraryName)] public static extern void igSetLastItemData(ImGuiID item_id, ImGuiItemFlags in_flags, ImGuiItemStatusFlags status_flags, ImRect item_rect); // Function @ cimgui.h:3347:17 [DllImport(LibraryName)] public static extern void igCalcItemSize(Vector2* pOut, Vector2 size, float default_w, float default_h); // Function @ cimgui.h:3348:18 [DllImport(LibraryName)] public static extern float igCalcWrapWidthForPos(Vector2 pos, float wrap_pos_x); // Function @ cimgui.h:3349:17 [DllImport(LibraryName)] public static extern void igPushMultiItemsWidths(int components, float width_full); // Function @ cimgui.h:3350:17 [DllImport(LibraryName)] public static extern CBool igIsItemToggledSelection(); // Function @ cimgui.h:3351:17 [DllImport(LibraryName)] public static extern void igGetContentRegionMaxAbs(Vector2* pOut); // Function @ cimgui.h:3352:17 [DllImport(LibraryName)] public static extern void igShrinkWidths(ImGuiShrinkWidthItem* items, int count, float width_excess); // Function @ cimgui.h:3353:17 [DllImport(LibraryName)] public static extern void igPushItemFlag(ImGuiItemFlags option, CBool enabled); // Function @ cimgui.h:3354:17 [DllImport(LibraryName)] public static extern void igPopItemFlag(); // Function @ cimgui.h:3355:17 [DllImport(LibraryName)] public static extern void igLogBegin(ImGuiLogType type, int auto_open_depth); // Function @ cimgui.h:3356:17 [DllImport(LibraryName)] public static extern void igLogToBuffer(int auto_open_depth); // Function @ cimgui.h:3357:17 [DllImport(LibraryName)] public static extern void igLogRenderedText(Vector2* ref_pos, CString text, CString text_end); // Function @ cimgui.h:3358:17 [DllImport(LibraryName)] public static extern void igLogSetNextTextDecoration(CString prefix, CString suffix); // Function @ cimgui.h:3359:17 [DllImport(LibraryName)] public static extern CBool igBeginChildEx(CString name, ImGuiID id, Vector2 size_arg, CBool border, ImGuiWindowFlags flags); // Function @ cimgui.h:3360:17 [DllImport(LibraryName)] public static extern void igOpenPopupEx(ImGuiID id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:3361:17 [DllImport(LibraryName)] public static extern void igClosePopupToLevel(int remaining, CBool restore_focus_to_window_under_popup); // Function @ cimgui.h:3362:17 [DllImport(LibraryName)] public static extern void igClosePopupsOverWindow(ImGuiWindow* ref_window, CBool restore_focus_to_window_under_popup); // Function @ cimgui.h:3363:17 [DllImport(LibraryName)] public static extern void igClosePopupsExceptModals(); // Function @ cimgui.h:3364:17 [DllImport(LibraryName)] public static extern CBool igIsPopupOpen_ID(ImGuiID id, ImGuiPopupFlags popup_flags); // Function @ cimgui.h:3365:17 [DllImport(LibraryName)] public static extern CBool igBeginPopupEx(ImGuiID id, ImGuiWindowFlags extra_flags); // Function @ cimgui.h:3366:17 [DllImport(LibraryName)] public static extern void igBeginTooltipEx(ImGuiTooltipFlags tooltip_flags, ImGuiWindowFlags extra_window_flags); // Function @ cimgui.h:3367:17 [DllImport(LibraryName)] public static extern void igGetPopupAllowedExtentRect(ImRect* pOut, ImGuiWindow* window); // Function @ cimgui.h:3368:25 [DllImport(LibraryName)] public static extern ImGuiWindow* igGetTopMostPopupModal(); // Function @ cimgui.h:3369:25 [DllImport(LibraryName)] public static extern ImGuiWindow* igGetTopMostAndVisiblePopupModal(); // Function @ cimgui.h:3370:17 [DllImport(LibraryName)] public static extern void igFindBestWindowPosForPopup(Vector2* pOut, ImGuiWindow* window); // Function @ cimgui.h:3371:17 [DllImport(LibraryName)] public static extern void igFindBestWindowPosForPopupEx(Vector2* pOut, Vector2 ref_pos, Vector2 size, ImGuiDir* last_dir, ImRect r_outer, ImRect r_avoid, ImGuiPopupPositionPolicy policy); // Function @ cimgui.h:3372:17 [DllImport(LibraryName)] public static extern CBool igBeginViewportSideBar(CString name, ImGuiViewport* viewport, ImGuiDir dir, float size, ImGuiWindowFlags window_flags); // Function @ cimgui.h:3373:17 [DllImport(LibraryName)] public static extern CBool igBeginMenuEx(CString label, CString icon, CBool enabled); // Function @ cimgui.h:3374:17 [DllImport(LibraryName)] public static extern CBool igMenuItemEx(CString label, CString icon, CString shortcut, CBool selected, CBool enabled); // Function @ cimgui.h:3375:17 [DllImport(LibraryName)] public static extern CBool igBeginComboPopup(ImGuiID popup_id, ImRect bb, ImGuiComboFlags flags); // Function @ cimgui.h:3376:17 [DllImport(LibraryName)] public static extern CBool igBeginComboPreview(); // Function @ cimgui.h:3377:17 [DllImport(LibraryName)] public static extern void igEndComboPreview(); // Function @ cimgui.h:3378:17 [DllImport(LibraryName)] public static extern void igNavInitWindow(ImGuiWindow* window, CBool force_reinit); // Function @ cimgui.h:3379:17 [DllImport(LibraryName)] public static extern void igNavInitRequestApplyResult(); // Function @ cimgui.h:3380:17 [DllImport(LibraryName)] public static extern CBool igNavMoveRequestButNoResultYet(); // Function @ cimgui.h:3381:17 [DllImport(LibraryName)] public static extern void igNavMoveRequestSubmit(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); // Function @ cimgui.h:3382:17 [DllImport(LibraryName)] public static extern void igNavMoveRequestForward(ImGuiDir move_dir, ImGuiDir clip_dir, ImGuiNavMoveFlags move_flags, ImGuiScrollFlags scroll_flags); // Function @ cimgui.h:3383:17 [DllImport(LibraryName)] public static extern void igNavMoveRequestResolveWithLastItem(ImGuiNavItemData* result); // Function @ cimgui.h:3384:17 [DllImport(LibraryName)] public static extern void igNavMoveRequestCancel(); // Function @ cimgui.h:3385:17 [DllImport(LibraryName)] public static extern void igNavMoveRequestApplyResult(); // Function @ cimgui.h:3386:17 [DllImport(LibraryName)] public static extern void igNavMoveRequestTryWrapping(ImGuiWindow* window, ImGuiNavMoveFlags move_flags); // Function @ cimgui.h:3387:18 [DllImport(LibraryName)] public static extern float igGetNavInputAmount(ImGuiNavInput n, ImGuiInputReadMode mode); // Function @ cimgui.h:3388:17 [DllImport(LibraryName)] public static extern void igGetNavInputAmount2d(Vector2* pOut, ImGuiNavDirSourceFlags dir_sources, ImGuiInputReadMode mode, float slow_factor, float fast_factor); // Function @ cimgui.h:3389:16 [DllImport(LibraryName)] public static extern int igCalcTypematicRepeatAmount(float t0, float t1, float repeat_delay, float repeat_rate); // Function @ cimgui.h:3390:17 [DllImport(LibraryName)] public static extern void igActivateItem(ImGuiID id); // Function @ cimgui.h:3391:17 [DllImport(LibraryName)] public static extern void igSetNavID(ImGuiID id, ImGuiNavLayer nav_layer, ImGuiID focus_scope_id, ImRect rect_rel); // Function @ cimgui.h:3392:17 [DllImport(LibraryName)] public static extern void igPushFocusScope(ImGuiID id); // Function @ cimgui.h:3393:17 [DllImport(LibraryName)] public static extern void igPopFocusScope(); // Function @ cimgui.h:3394:20 [DllImport(LibraryName)] public static extern ImGuiID igGetFocusedFocusScope(); // Function @ cimgui.h:3395:20 [DllImport(LibraryName)] public static extern ImGuiID igGetFocusScope(); // Function @ cimgui.h:3396:17 [DllImport(LibraryName)] public static extern void igSetItemUsingMouseWheel(); // Function @ cimgui.h:3397:17 [DllImport(LibraryName)] public static extern void igSetActiveIdUsingNavAndKeys(); // Function @ cimgui.h:3398:17 [DllImport(LibraryName)] public static extern CBool igIsActiveIdUsingNavDir(ImGuiDir dir); // Function @ cimgui.h:3399:17 [DllImport(LibraryName)] public static extern CBool igIsActiveIdUsingNavInput(ImGuiNavInput input); // Function @ cimgui.h:3400:17 [DllImport(LibraryName)] public static extern CBool igIsActiveIdUsingKey(ImGuiKey key); // Function @ cimgui.h:3401:17 [DllImport(LibraryName)] public static extern CBool igIsMouseDragPastThreshold(ImGuiMouseButton button, float lock_threshold); // Function @ cimgui.h:3402:17 [DllImport(LibraryName)] public static extern CBool igIsKeyPressedMap(ImGuiKey key, CBool repeat); // Function @ cimgui.h:3403:17 [DllImport(LibraryName)] public static extern CBool igIsNavInputDown(ImGuiNavInput n); // Function @ cimgui.h:3404:17 [DllImport(LibraryName)] public static extern CBool igIsNavInputTest(ImGuiNavInput n, ImGuiInputReadMode rm); // Function @ cimgui.h:3405:29 [DllImport(LibraryName)] public static extern ImGuiKeyModFlags igGetMergedKeyModFlags(); // Function @ cimgui.h:3406:17 [DllImport(LibraryName)] public static extern CBool igBeginDragDropTargetCustom(ImRect bb, ImGuiID id); // Function @ cimgui.h:3407:17 [DllImport(LibraryName)] public static extern void igClearDragDrop(); // Function @ cimgui.h:3408:17 [DllImport(LibraryName)] public static extern CBool igIsDragDropPayloadBeingAccepted(); // Function @ cimgui.h:3409:17 [DllImport(LibraryName)] public static extern void igSetWindowClipRectBeforeSetChannel(ImGuiWindow* window, ImRect clip_rect); // Function @ cimgui.h:3410:17 [DllImport(LibraryName)] public static extern void igBeginColumns(CString str_id, int count, ImGuiOldColumnFlags flags); // Function @ cimgui.h:3411:17 [DllImport(LibraryName)] public static extern void igEndColumns(); // Function @ cimgui.h:3412:17 [DllImport(LibraryName)] public static extern void igPushColumnClipRect(int column_index); // Function @ cimgui.h:3413:17 [DllImport(LibraryName)] public static extern void igPushColumnsBackground(); // Function @ cimgui.h:3414:17 [DllImport(LibraryName)] public static extern void igPopColumnsBackground(); // Function @ cimgui.h:3415:20 [DllImport(LibraryName)] public static extern ImGuiID igGetColumnsID(CString str_id, int count); // Function @ cimgui.h:3416:29 [DllImport(LibraryName)] public static extern ImGuiOldColumns* igFindOrCreateColumns(ImGuiWindow* window, ImGuiID id); // Function @ cimgui.h:3417:18 [DllImport(LibraryName)] public static extern float igGetColumnOffsetFromNorm(ImGuiOldColumns* columns, float offset_norm); // Function @ cimgui.h:3418:18 [DllImport(LibraryName)] public static extern float igGetColumnNormFromOffset(ImGuiOldColumns* columns, float offset); // Function @ cimgui.h:3419:17 [DllImport(LibraryName)] public static extern void igTableOpenContextMenu(int column_n); // Function @ cimgui.h:3420:17 [DllImport(LibraryName)] public static extern void igTableSetColumnWidth(int column_n, float width); // Function @ cimgui.h:3421:17 [DllImport(LibraryName)] public static extern void igTableSetColumnSortDirection(int column_n, ImGuiSortDirection sort_direction, CBool append_to_sort_specs); // Function @ cimgui.h:3422:16 [DllImport(LibraryName)] public static extern int igTableGetHoveredColumn(); // Function @ cimgui.h:3423:18 [DllImport(LibraryName)] public static extern float igTableGetHeaderRowHeight(); // Function @ cimgui.h:3424:17 [DllImport(LibraryName)] public static extern void igTablePushBackgroundChannel(); // Function @ cimgui.h:3425:17 [DllImport(LibraryName)] public static extern void igTablePopBackgroundChannel(); // Function @ cimgui.h:3426:24 [DllImport(LibraryName)] public static extern ImGuiTable* igGetCurrentTable(); // Function @ cimgui.h:3427:24 [DllImport(LibraryName)] public static extern ImGuiTable* igTableFindByID(ImGuiID id); // Function @ cimgui.h:3428:17 [DllImport(LibraryName)] public static extern CBool igBeginTableEx(CString name, ImGuiID id, int columns_count, ImGuiTableFlags flags, Vector2 outer_size, float inner_width); // Function @ cimgui.h:3429:17 [DllImport(LibraryName)] public static extern void igTableBeginInitMemory(ImGuiTable* table, int columns_count); // Function @ cimgui.h:3430:17 [DllImport(LibraryName)] public static extern void igTableBeginApplyRequests(ImGuiTable* table); // Function @ cimgui.h:3431:17 [DllImport(LibraryName)] public static extern void igTableSetupDrawChannels(ImGuiTable* table); // Function @ cimgui.h:3432:17 [DllImport(LibraryName)] public static extern void igTableUpdateLayout(ImGuiTable* table); // Function @ cimgui.h:3433:17 [DllImport(LibraryName)] public static extern void igTableUpdateBorders(ImGuiTable* table); // Function @ cimgui.h:3434:17 [DllImport(LibraryName)] public static extern void igTableUpdateColumnsWeightFromWidth(ImGuiTable* table); // Function @ cimgui.h:3435:17 [DllImport(LibraryName)] public static extern void igTableDrawBorders(ImGuiTable* table); // Function @ cimgui.h:3436:17 [DllImport(LibraryName)] public static extern void igTableDrawContextMenu(ImGuiTable* table); // Function @ cimgui.h:3437:17 [DllImport(LibraryName)] public static extern void igTableMergeDrawChannels(ImGuiTable* table); // Function @ cimgui.h:3438:17 [DllImport(LibraryName)] public static extern void igTableSortSpecsSanitize(ImGuiTable* table); // Function @ cimgui.h:3439:17 [DllImport(LibraryName)] public static extern void igTableSortSpecsBuild(ImGuiTable* table); // Function @ cimgui.h:3440:31 [DllImport(LibraryName)] public static extern ImGuiSortDirection igTableGetColumnNextSortDirection(ImGuiTableColumn* column); // Function @ cimgui.h:3441:17 [DllImport(LibraryName)] public static extern void igTableFixColumnSortDirection(ImGuiTable* table, ImGuiTableColumn* column); // Function @ cimgui.h:3442:18 [DllImport(LibraryName)] public static extern float igTableGetColumnWidthAuto(ImGuiTable* table, ImGuiTableColumn* column); // Function @ cimgui.h:3443:17 [DllImport(LibraryName)] public static extern void igTableBeginRow(ImGuiTable* table); // Function @ cimgui.h:3444:17 [DllImport(LibraryName)] public static extern void igTableEndRow(ImGuiTable* table); // Function @ cimgui.h:3445:17 [DllImport(LibraryName)] public static extern void igTableBeginCell(ImGuiTable* table, int column_n); // Function @ cimgui.h:3446:17 [DllImport(LibraryName)] public static extern void igTableEndCell(ImGuiTable* table); // Function @ cimgui.h:3447:17 [DllImport(LibraryName)] public static extern void igTableGetCellBgRect(ImRect* pOut, ImGuiTable* table, int column_n); // Function @ cimgui.h:3448:24 [DllImport(LibraryName)] public static extern CString igTableGetColumnName_TablePtr(ImGuiTable* table, int column_n); // Function @ cimgui.h:3449:20 [DllImport(LibraryName)] public static extern ImGuiID igTableGetColumnResizeID(ImGuiTable* table, int column_n, int instance_no); // Function @ cimgui.h:3450:18 [DllImport(LibraryName)] public static extern float igTableGetMaxColumnWidth(ImGuiTable* table, int column_n); // Function @ cimgui.h:3451:17 [DllImport(LibraryName)] public static extern void igTableSetColumnWidthAutoSingle(ImGuiTable* table, int column_n); // Function @ cimgui.h:3452:17 [DllImport(LibraryName)] public static extern void igTableSetColumnWidthAutoAll(ImGuiTable* table); // Function @ cimgui.h:3453:17 [DllImport(LibraryName)] public static extern void igTableRemove(ImGuiTable* table); // Function @ cimgui.h:3454:17 [DllImport(LibraryName)] public static extern void igTableGcCompactTransientBuffers_TablePtr(ImGuiTable* table); // Function @ cimgui.h:3455:17 [DllImport(LibraryName)] public static extern void igTableGcCompactTransientBuffers_TableTempDataPtr(ImGuiTableTempData* table); // Function @ cimgui.h:3456:17 [DllImport(LibraryName)] public static extern void igTableGcCompactSettings(); // Function @ cimgui.h:3457:17 [DllImport(LibraryName)] public static extern void igTableLoadSettings(ImGuiTable* table); // Function @ cimgui.h:3458:17 [DllImport(LibraryName)] public static extern void igTableSaveSettings(ImGuiTable* table); // Function @ cimgui.h:3459:17 [DllImport(LibraryName)] public static extern void igTableResetSettings(ImGuiTable* table); // Function @ cimgui.h:3460:32 [DllImport(LibraryName)] public static extern ImGuiTableSettings* igTableGetBoundSettings(ImGuiTable* table); // Function @ cimgui.h:3461:17 [DllImport(LibraryName)] public static extern void igTableSettingsInstallHandler(ImGuiContext* context); // Function @ cimgui.h:3462:32 [DllImport(LibraryName)] public static extern ImGuiTableSettings* igTableSettingsCreate(ImGuiID id, int columns_count); // Function @ cimgui.h:3463:32 [DllImport(LibraryName)] public static extern ImGuiTableSettings* igTableSettingsFindByID(ImGuiID id); // Function @ cimgui.h:3464:17 [DllImport(LibraryName)] public static extern CBool igBeginTabBarEx(ImGuiTabBar* tab_bar, ImRect bb, ImGuiTabBarFlags flags); // Function @ cimgui.h:3465:26 [DllImport(LibraryName)] public static extern ImGuiTabItem* igTabBarFindTabByID(ImGuiTabBar* tab_bar, ImGuiID tab_id); // Function @ cimgui.h:3466:17 [DllImport(LibraryName)] public static extern void igTabBarRemoveTab(ImGuiTabBar* tab_bar, ImGuiID tab_id); // Function @ cimgui.h:3467:17 [DllImport(LibraryName)] public static extern void igTabBarCloseTab(ImGuiTabBar* tab_bar, ImGuiTabItem* tab); // Function @ cimgui.h:3468:17 [DllImport(LibraryName)] public static extern void igTabBarQueueReorder(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, int offset); // Function @ cimgui.h:3469:17 [DllImport(LibraryName)] public static extern void igTabBarQueueReorderFromMousePos(ImGuiTabBar* tab_bar, ImGuiTabItem* tab, Vector2 mouse_pos); // Function @ cimgui.h:3470:17 [DllImport(LibraryName)] public static extern CBool igTabBarProcessReorder(ImGuiTabBar* tab_bar); // Function @ cimgui.h:3471:17 [DllImport(LibraryName)] public static extern CBool igTabItemEx(ImGuiTabBar* tab_bar, CString label, CBool* p_open, ImGuiTabItemFlags flags); // Function @ cimgui.h:3472:17 [DllImport(LibraryName)] public static extern void igTabItemCalcSize(Vector2* pOut, CString label, CBool has_close_button); // Function @ cimgui.h:3473:17 [DllImport(LibraryName)] public static extern void igTabItemBackground(ImDrawList* draw_list, ImRect bb, ImGuiTabItemFlags flags, uint col); // Function @ cimgui.h:3474:17 [DllImport(LibraryName)] public static extern void igTabItemLabelAndCloseButton(ImDrawList* draw_list, ImRect bb, ImGuiTabItemFlags flags, Vector2 frame_padding, CString label, ImGuiID tab_id, ImGuiID close_button_id, CBool is_contents_visible, CBool* out_just_closed, CBool* out_text_clipped); // Function @ cimgui.h:3475:17 [DllImport(LibraryName)] public static extern void igRenderText(Vector2 pos, CString text, CString text_end, CBool hide_text_after_hash); // Function @ cimgui.h:3476:17 [DllImport(LibraryName)] public static extern void igRenderTextWrapped(Vector2 pos, CString text, CString text_end, float wrap_width); // Function @ cimgui.h:3477:17 [DllImport(LibraryName)] public static extern void igRenderTextClipped(Vector2 pos_min, Vector2 pos_max, CString text, CString text_end, Vector2* text_size_if_known, Vector2 align, ImRect* clip_rect); // Function @ cimgui.h:3478:17 [DllImport(LibraryName)] public static extern void igRenderTextClippedEx(ImDrawList* draw_list, Vector2 pos_min, Vector2 pos_max, CString text, CString text_end, Vector2* text_size_if_known, Vector2 align, ImRect* clip_rect); // Function @ cimgui.h:3479:17 [DllImport(LibraryName)] public static extern void igRenderTextEllipsis(ImDrawList* draw_list, Vector2 pos_min, Vector2 pos_max, float clip_max_x, float ellipsis_max_x, CString text, CString text_end, Vector2* text_size_if_known); // Function @ cimgui.h:3480:17 [DllImport(LibraryName)] public static extern void igRenderFrame(Vector2 p_min, Vector2 p_max, uint fill_col, CBool border, float rounding); // Function @ cimgui.h:3481:17 [DllImport(LibraryName)] public static extern void igRenderFrameBorder(Vector2 p_min, Vector2 p_max, float rounding); // Function @ cimgui.h:3482:17 [DllImport(LibraryName)] public static extern void igRenderColorRectWithAlphaCheckerboard(ImDrawList* draw_list, Vector2 p_min, Vector2 p_max, uint fill_col, float grid_step, Vector2 grid_off, float rounding, ImDrawFlags flags); // Function @ cimgui.h:3483:17 [DllImport(LibraryName)] public static extern void igRenderNavHighlight(ImRect bb, ImGuiID id, ImGuiNavHighlightFlags flags); // Function @ cimgui.h:3484:24 [DllImport(LibraryName)] public static extern CString igFindRenderedTextEnd(CString text, CString text_end); // Function @ cimgui.h:3485:17 [DllImport(LibraryName)] public static extern void igRenderArrow(ImDrawList* draw_list, Vector2 pos, uint col, ImGuiDir dir, float scale); // Function @ cimgui.h:3486:17 [DllImport(LibraryName)] public static extern void igRenderBullet(ImDrawList* draw_list, Vector2 pos, uint col); // Function @ cimgui.h:3487:17 [DllImport(LibraryName)] public static extern void igRenderCheckMark(ImDrawList* draw_list, Vector2 pos, uint col, float sz); // Function @ cimgui.h:3488:17 [DllImport(LibraryName)] public static extern void igRenderMouseCursor(ImDrawList* draw_list, Vector2 pos, float scale, ImGuiMouseCursor mouse_cursor, uint col_fill, uint col_border, uint col_shadow); // Function @ cimgui.h:3489:17 [DllImport(LibraryName)] public static extern void igRenderArrowPointingAt(ImDrawList* draw_list, Vector2 pos, Vector2 half_sz, ImGuiDir direction, uint col); // Function @ cimgui.h:3490:17 [DllImport(LibraryName)] public static extern void igRenderRectFilledRangeH(ImDrawList* draw_list, ImRect rect, uint col, float x_start_norm, float x_end_norm, float rounding); // Function @ cimgui.h:3491:17 [DllImport(LibraryName)] public static extern void igRenderRectFilledWithHole(ImDrawList* draw_list, ImRect outer, ImRect inner, uint col, float rounding); // Function @ cimgui.h:3492:17 [DllImport(LibraryName)] public static extern void igTextEx(CString text, CString text_end, ImGuiTextFlags flags); // Function @ cimgui.h:3493:17 [DllImport(LibraryName)] public static extern CBool igButtonEx(CString label, Vector2 size_arg, ImGuiButtonFlags flags); // Function @ cimgui.h:3494:17 [DllImport(LibraryName)] public static extern CBool igCloseButton(ImGuiID id, Vector2 pos); // Function @ cimgui.h:3495:17 [DllImport(LibraryName)] public static extern CBool igCollapseButton(ImGuiID id, Vector2 pos); // Function @ cimgui.h:3496:17 [DllImport(LibraryName)] public static extern CBool igArrowButtonEx(CString str_id, ImGuiDir dir, Vector2 size_arg, ImGuiButtonFlags flags); // Function @ cimgui.h:3497:17 [DllImport(LibraryName)] public static extern void igScrollbar(ImGuiAxis axis); // Function @ cimgui.h:3498:17 [DllImport(LibraryName)] public static extern CBool igScrollbarEx(ImRect bb, ImGuiID id, ImGuiAxis axis, long* p_scroll_v, long avail_v, long contents_v, ImDrawFlags flags); // Function @ cimgui.h:3499:17 [DllImport(LibraryName)] public static extern CBool igImageButtonEx(ImGuiID id, ImTextureID texture_id, Vector2 size, Vector2 uv0, Vector2 uv1, Vector2 padding, Vector4 bg_col, Vector4 tint_col); // Function @ cimgui.h:3500:17 [DllImport(LibraryName)] public static extern void igGetWindowScrollbarRect(ImRect* pOut, ImGuiWindow* window, ImGuiAxis axis); // Function @ cimgui.h:3501:20 [DllImport(LibraryName)] public static extern ImGuiID igGetWindowScrollbarID(ImGuiWindow* window, ImGuiAxis axis); // Function @ cimgui.h:3502:20 [DllImport(LibraryName)] public static extern ImGuiID igGetWindowResizeCornerID(ImGuiWindow* window, int n); // Function @ cimgui.h:3503:20 [DllImport(LibraryName)] public static extern ImGuiID igGetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir); // Function @ cimgui.h:3504:17 [DllImport(LibraryName)] public static extern void igSeparatorEx(ImGuiSeparatorFlags flags); // Function @ cimgui.h:3505:17 [DllImport(LibraryName)] public static extern CBool igCheckboxFlags_S64Ptr(CString label, long* flags, long flags_value); // Function @ cimgui.h:3506:17 [DllImport(LibraryName)] public static extern CBool igCheckboxFlags_U64Ptr(CString label, ulong* flags, ulong flags_value); // Function @ cimgui.h:3507:17 [DllImport(LibraryName)] public static extern CBool igButtonBehavior(ImRect bb, ImGuiID id, CBool* out_hovered, CBool* out_held, ImGuiButtonFlags flags); // Function @ cimgui.h:3508:17 [DllImport(LibraryName)] public static extern CBool igDragBehavior(ImGuiID id, ImGuiDataType data_type, void* p_v, float v_speed, void* p_min, void* p_max, CString format, ImGuiSliderFlags flags); // Function @ cimgui.h:3509:17 [DllImport(LibraryName)] public static extern CBool igSliderBehavior(ImRect bb, ImGuiID id, ImGuiDataType data_type, void* p_v, void* p_min, void* p_max, CString format, ImGuiSliderFlags flags, ImRect* out_grab_bb); // Function @ cimgui.h:3510:17 [DllImport(LibraryName)] public static extern CBool igSplitterBehavior(ImRect bb, ImGuiID id, ImGuiAxis axis, float* size1, float* size2, float min_size1, float min_size2, float hover_extend, float hover_visibility_delay); // Function @ cimgui.h:3511:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeBehavior(ImGuiID id, ImGuiTreeNodeFlags flags, CString label, CString label_end); // Function @ cimgui.h:3512:17 [DllImport(LibraryName)] public static extern CBool igTreeNodeBehaviorIsOpen(ImGuiID id, ImGuiTreeNodeFlags flags); // Function @ cimgui.h:3513:17 [DllImport(LibraryName)] public static extern void igTreePushOverrideID(ImGuiID id); // Function @ cimgui.h:3514:37 [DllImport(LibraryName)] public static extern ImGuiDataTypeInfo* igDataTypeGetInfo(ImGuiDataType data_type); // Function @ cimgui.h:3515:16 [DllImport(LibraryName)] public static extern int igDataTypeFormatString(CString buf, int buf_size, ImGuiDataType data_type, void* p_data, CString format); // Function @ cimgui.h:3516:17 [DllImport(LibraryName)] public static extern void igDataTypeApplyOp(ImGuiDataType data_type, int op, void* output, void* arg_1, void* arg_2); // Function @ cimgui.h:3517:17 [DllImport(LibraryName)] public static extern CBool igDataTypeApplyOpFromText(CString buf, CString initial_value_buf, ImGuiDataType data_type, void* p_data, CString format); // Function @ cimgui.h:3518:16 [DllImport(LibraryName)] public static extern int igDataTypeCompare(ImGuiDataType data_type, void* arg_1, void* arg_2); // Function @ cimgui.h:3519:17 [DllImport(LibraryName)] public static extern CBool igDataTypeClamp(ImGuiDataType data_type, void* p_data, void* p_min, void* p_max); // Function @ cimgui.h:3520:17 [DllImport(LibraryName)] public static extern CBool igInputTextEx(CString label, CString hint, CString buf, int buf_size, Vector2 size_arg, ImGuiInputTextFlags flags, ImGuiInputTextCallback callback, void* user_data); // Function @ cimgui.h:3521:17 [DllImport(LibraryName)] public static extern CBool igTempInputText(ImRect bb, ImGuiID id, CString label, CString buf, int buf_size, ImGuiInputTextFlags flags); // Function @ cimgui.h:3522:17 [DllImport(LibraryName)] public static extern CBool igTempInputScalar(ImRect bb, ImGuiID id, CString label, ImGuiDataType data_type, void* p_data, CString format, void* p_clamp_min, void* p_clamp_max); // Function @ cimgui.h:3523:17 [DllImport(LibraryName)] public static extern CBool igTempInputIsActive(ImGuiID id); // Function @ cimgui.h:3524:33 [DllImport(LibraryName)] public static extern ImGuiInputTextState* igGetInputTextState(ImGuiID id); // Function @ cimgui.h:3525:17 [DllImport(LibraryName)] public static extern void igColorTooltip(CString text, float* col, ImGuiColorEditFlags flags); // Function @ cimgui.h:3526:17 [DllImport(LibraryName)] public static extern void igColorEditOptionsPopup(float* col, ImGuiColorEditFlags flags); // Function @ cimgui.h:3527:17 [DllImport(LibraryName)] public static extern void igColorPickerOptionsPopup(float* ref_col, ImGuiColorEditFlags flags); // Function @ cimgui.h:3528:16 [DllImport(LibraryName)] public static extern int igPlotEx(ImGuiPlotType plot_type, CString label, FnPtr_IMGUI_VoidPtr_Int_Float values_getter, void* data, int values_count, int values_offset, CString overlay_text, float scale_min, float scale_max, Vector2 frame_size); // Function @ cimgui.h:3529:17 [DllImport(LibraryName)] public static extern void igShadeVertsLinearColorGradientKeepAlpha(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, Vector2 gradient_p0, Vector2 gradient_p1, uint col0, uint col1); // Function @ cimgui.h:3530:17 [DllImport(LibraryName)] public static extern void igShadeVertsLinearUV(ImDrawList* draw_list, int vert_start_idx, int vert_end_idx, Vector2 a, Vector2 b, Vector2 uv_a, Vector2 uv_b, CBool clamp); // Function @ cimgui.h:3531:17 [DllImport(LibraryName)] public static extern void igGcCompactTransientMiscBuffers(); // Function @ cimgui.h:3532:17 [DllImport(LibraryName)] public static extern void igGcCompactTransientWindowBuffers(ImGuiWindow* window); // Function @ cimgui.h:3533:17 [DllImport(LibraryName)] public static extern void igGcAwakeTransientWindowBuffers(ImGuiWindow* window); // Function @ cimgui.h:3534:17 [DllImport(LibraryName)] public static extern void igErrorCheckEndFrameRecover(ImGuiErrorLogCallback log_callback, void* user_data); // Function @ cimgui.h:3535:17 [DllImport(LibraryName)] public static extern void igErrorCheckEndWindowRecover(ImGuiErrorLogCallback log_callback, void* user_data); // Function @ cimgui.h:3536:17 [DllImport(LibraryName)] public static extern void igDebugDrawItemRect(uint col); // Function @ cimgui.h:3537:17 [DllImport(LibraryName)] public static extern void igDebugStartItemPicker(); // Function @ cimgui.h:3538:17 [DllImport(LibraryName)] public static extern void igShowFontAtlas(ImFontAtlas* atlas); // Function @ cimgui.h:3539:17 [DllImport(LibraryName)] public static extern void igDebugHookIdInfo(ImGuiID id, ImGuiDataType data_type, void* data_id, void* data_id_end); // Function @ cimgui.h:3540:17 [DllImport(LibraryName)] public static extern void igDebugNodeColumns(ImGuiOldColumns* columns); // Function @ cimgui.h:3541:17 [DllImport(LibraryName)] public static extern void igDebugNodeDrawList(ImGuiWindow* window, ImDrawList* draw_list, CString label); // Function @ cimgui.h:3542:17 [DllImport(LibraryName)] public static extern void igDebugNodeDrawCmdShowMeshAndBoundingBox(ImDrawList* out_draw_list, ImDrawList* draw_list, ImDrawCmd* draw_cmd, CBool show_mesh, CBool show_aabb); // Function @ cimgui.h:3543:17 [DllImport(LibraryName)] public static extern void igDebugNodeFont(ImFont* font); // Function @ cimgui.h:3544:17 [DllImport(LibraryName)] public static extern void igDebugNodeStorage(ImGuiStorage* storage, CString label); // Function @ cimgui.h:3545:17 [DllImport(LibraryName)] public static extern void igDebugNodeTabBar(ImGuiTabBar* tab_bar, CString label); // Function @ cimgui.h:3546:17 [DllImport(LibraryName)] public static extern void igDebugNodeTable(ImGuiTable* table); // Function @ cimgui.h:3547:17 [DllImport(LibraryName)] public static extern void igDebugNodeTableSettings(ImGuiTableSettings* settings); // Function @ cimgui.h:3548:17 [DllImport(LibraryName)] public static extern void igDebugNodeWindow(ImGuiWindow* window, CString label); // Function @ cimgui.h:3549:17 [DllImport(LibraryName)] public static extern void igDebugNodeWindowSettings(ImGuiWindowSettings* settings); // Function @ cimgui.h:3550:17 [DllImport(LibraryName)] public static extern void igDebugNodeWindowsList(ImVector_ImGuiWindowPtr* windows, CString label); // Function @ cimgui.h:3551:17 [DllImport(LibraryName)] public static extern void igDebugNodeWindowsListByBeginStackParent(ImGuiWindow** windows, int windows_size, ImGuiWindow* parent_in_begin_stack); // Function @ cimgui.h:3552:17 [DllImport(LibraryName)] public static extern void igDebugNodeViewport(ImGuiViewportP* viewport); // Function @ cimgui.h:3553:17 [DllImport(LibraryName)] public static extern void igDebugRenderViewportThumbnail(ImDrawList* draw_list, ImGuiViewportP* viewport, ImRect bb); // Function @ cimgui.h:3554:35 [DllImport(LibraryName)] public static extern ImFontBuilderIO* igImFontAtlasGetBuilderForStbTruetype(); // Function @ cimgui.h:3555:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildInit(ImFontAtlas* atlas); // Function @ cimgui.h:3556:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildSetupFont(ImFontAtlas* atlas, ImFont* font, ImFontConfig* font_config, float ascent, float descent); // Function @ cimgui.h:3557:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildPackCustomRects(ImFontAtlas* atlas, void* stbrp_context_opaque); // Function @ cimgui.h:3558:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildFinish(ImFontAtlas* atlas); // Function @ cimgui.h:3559:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildRender8bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, CString in_str, CChar in_marker_char, byte in_marker_pixel_value); // Function @ cimgui.h:3560:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildRender32bppRectFromString(ImFontAtlas* atlas, int x, int y, int w, int h, CString in_str, CChar in_marker_char, uint in_marker_pixel_value); // Function @ cimgui.h:3561:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildMultiplyCalcLookupTable(byte* out_table, float in_multiply_factor); // Function @ cimgui.h:3562:17 [DllImport(LibraryName)] public static extern void igImFontAtlasBuildMultiplyRectAlpha8(byte* table, ulong* pixels, int x, int y, int w, int h, int stride); // Function @ cimgui.h:3567:17 [DllImport(LibraryName)] public static extern void igLogText(CString fmt); // Function @ cimgui.h:3569:17 [DllImport(LibraryName)] public static extern void ImGuiTextBuffer_appendf(ImGuiTextBuffer* buffer, CString fmt); // Function @ cimgui.h:3571:18 [DllImport(LibraryName)] public static extern float igGET_FLT_MAX(); // Function @ cimgui.h:3573:18 [DllImport(LibraryName)] public static extern float igGET_FLT_MIN(); // Function @ cimgui.h:3576:30 [DllImport(LibraryName)] public static extern ImVector_ImWchar* ImVector_ImWchar_create(); // Function @ cimgui.h:3577:17 [DllImport(LibraryName)] public static extern void ImVector_ImWchar_destroy(ImVector_ImWchar* self); // Function @ cimgui.h:3578:17 [DllImport(LibraryName)] public static extern void ImVector_ImWchar_Init(ImVector_ImWchar* p); // Function @ cimgui.h:3579:17 [DllImport(LibraryName)] public static extern void ImVector_ImWchar_UnInit(ImVector_ImWchar* p); // FunctionPointer @ cimgui.h:203:16 [StructLayout(LayoutKind.Sequential)] public struct ImGuiSizeCallback { public delegate* unmanaged<ImGuiSizeCallbackData*, void> Pointer; } // FunctionPointer @ cimgui.h:2581:77 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_VoidPtr_Int_CStringPtr_CBool { public delegate* unmanaged<void*, int, CString*, CBool> Pointer; } // FunctionPointer @ cimgui.h:202:15 [StructLayout(LayoutKind.Sequential)] public struct ImGuiInputTextCallback { public delegate* unmanaged<ImGuiInputTextCallbackData*, int> Pointer; } // FunctionPointer @ cimgui.h:2652:65 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_VoidPtr_Int_Float { public delegate* unmanaged<void*, int, float> Pointer; } // FunctionPointer @ cimgui.h:204:17 [StructLayout(LayoutKind.Sequential)] public struct ImGuiMemAllocFunc { public delegate* unmanaged<ulong, void*, void*> Pointer; } // FunctionPointer @ cimgui.h:205:16 [StructLayout(LayoutKind.Sequential)] public struct ImGuiMemFreeFunc { public delegate* unmanaged<void*, void*, void> Pointer; } // FunctionPointer @ cimgui.h:206:16 [StructLayout(LayoutKind.Sequential)] public struct ImDrawCallback { public delegate* unmanaged<ImDrawList*, ImDrawCmd*, void> Pointer; } // FunctionPointer @ cimgui.h:3033:79 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_VoidPtr_VoidPtr_Int { public delegate* unmanaged<void*, void*, int> Pointer; } // FunctionPointer @ cimgui.h:253:16 [StructLayout(LayoutKind.Sequential)] public struct ImGuiErrorLogCallback { public delegate* unmanaged<void*, CString, void> Pointer; } // FunctionPointer @ cimgui.h:891:19 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_VoidPtr_CString { public delegate* unmanaged<void*, CString> Pointer; } // FunctionPointer @ cimgui.h:892:12 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_VoidPtr_CString_Void { public delegate* unmanaged<void*, CString, void> Pointer; } // FunctionPointer @ cimgui.h:894:12 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_Int_Int_Void { public delegate* unmanaged<int, int, void> Pointer; } // FunctionPointer @ cimgui.h:1728:12 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_Void { public delegate* unmanaged<ImGuiContext*, ImGuiSettingsHandler*, void> Pointer; } // FunctionPointer @ cimgui.h:1730:13 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_CString_VoidPtr { public delegate* unmanaged<ImGuiContext*, ImGuiSettingsHandler*, CString, void*> Pointer; } // FunctionPointer @ cimgui.h:1731:12 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_VoidPtr_CString_Void { public delegate* unmanaged<ImGuiContext*, ImGuiSettingsHandler*, void*, CString, void> Pointer; } // FunctionPointer @ cimgui.h:1733:12 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_ImGuiTextBufferPtr_Void { public delegate* unmanaged<ImGuiContext*, ImGuiSettingsHandler*, ImGuiTextBuffer*, void> Pointer; } // FunctionPointer @ cimgui.h:257:16 [StructLayout(LayoutKind.Sequential)] public struct ImGuiContextHookCallback { public delegate* unmanaged<ImGuiContext*, ImGuiContextHook*, void> Pointer; } // FunctionPointer @ cimgui.h:2360:12 [StructLayout(LayoutKind.Sequential)] public struct FnPtr_IMGUI_ImFontAtlasPtr_CBool { public delegate* unmanaged<ImFontAtlas*, CBool> Pointer; } // Struct @ cimgui.h:109:29 [StructLayout(LayoutKind.Explicit, Size = 16304, Pack = 8)] public struct ImGuiContext { [FieldOffset(0)] // size = 1, padding = 0 public CBool Initialized; [FieldOffset(1)] // size = 1, padding = 6 public CBool FontAtlasOwnedByContext; [FieldOffset(8)] // size = 5480, padding = 0 public ImGuiIO IO; [FieldOffset(5488)] // size = 1048, padding = 0 public ImGuiStyle Style; [FieldOffset(6536)] // size = 8, padding = 0 public ImFont* Font; [FieldOffset(6544)] // size = 4, padding = 0 public float FontSize; [FieldOffset(6548)] // size = 4, padding = 0 public float FontBaseSize; [FieldOffset(6552)] // size = 512, padding = 0 public ImDrawListSharedData DrawListSharedData; [FieldOffset(7064)] // size = 8, padding = 0 public double Time; [FieldOffset(7072)] // size = 4, padding = 0 public int FrameCount; [FieldOffset(7076)] // size = 4, padding = 0 public int FrameCountEnded; [FieldOffset(7080)] // size = 4, padding = 0 public int FrameCountRendered; [FieldOffset(7084)] // size = 1, padding = 0 public CBool WithinFrameScope; [FieldOffset(7085)] // size = 1, padding = 0 public CBool WithinFrameScopeWithImplicitWindow; [FieldOffset(7086)] // size = 1, padding = 0 public CBool WithinEndChild; [FieldOffset(7087)] // size = 1, padding = 0 public CBool GcCompactAll; [FieldOffset(7088)] // size = 1, padding = 7 public CBool TestEngineHookItems; [FieldOffset(7096)] // size = 8, padding = 0 public void* TestEngine; [FieldOffset(7104)] // size = 16, padding = 0 public ImVector_ImGuiWindowPtr Windows; [FieldOffset(7120)] // size = 16, padding = 0 public ImVector_ImGuiWindowPtr WindowsFocusOrder; [FieldOffset(7136)] // size = 16, padding = 0 public ImVector_ImGuiWindowPtr WindowsTempSortBuffer; [FieldOffset(7152)] // size = 16, padding = 0 public ImVector_ImGuiWindowStackData CurrentWindowStack; [FieldOffset(7168)] // size = 16, padding = 0 public ImGuiStorage WindowsById; [FieldOffset(7184)] // size = 4, padding = 0 public int WindowsActiveCount; [FieldOffset(7188)] // size = 8, padding = 4 public Vector2 WindowsHoverPadding; [FieldOffset(7200)] // size = 8, padding = 0 public ImGuiWindow* CurrentWindow; [FieldOffset(7208)] // size = 8, padding = 0 public ImGuiWindow* HoveredWindow; [FieldOffset(7216)] // size = 8, padding = 0 public ImGuiWindow* HoveredWindowUnderMovingWindow; [FieldOffset(7224)] // size = 8, padding = 0 public ImGuiWindow* MovingWindow; [FieldOffset(7232)] // size = 8, padding = 0 public ImGuiWindow* WheelingWindow; [FieldOffset(7240)] // size = 8, padding = 0 public Vector2 WheelingWindowRefMousePos; [FieldOffset(7248)] // size = 4, padding = 0 public float WheelingWindowTimer; [FieldOffset(7252)] // size = 4, padding = 0 public ImGuiID DebugHookIdInfo; [FieldOffset(7256)] // size = 4, padding = 0 public ImGuiID HoveredId; [FieldOffset(7260)] // size = 4, padding = 0 public ImGuiID HoveredIdPreviousFrame; [FieldOffset(7264)] // size = 1, padding = 0 public CBool HoveredIdAllowOverlap; [FieldOffset(7265)] // size = 1, padding = 0 public CBool HoveredIdUsingMouseWheel; [FieldOffset(7266)] // size = 1, padding = 0 public CBool HoveredIdPreviousFrameUsingMouseWheel; [FieldOffset(7267)] // size = 1, padding = 0 public CBool HoveredIdDisabled; [FieldOffset(7268)] // size = 4, padding = 0 public float HoveredIdTimer; [FieldOffset(7272)] // size = 4, padding = 0 public float HoveredIdNotActiveTimer; [FieldOffset(7276)] // size = 4, padding = 0 public ImGuiID ActiveId; [FieldOffset(7280)] // size = 4, padding = 0 public ImGuiID ActiveIdIsAlive; [FieldOffset(7284)] // size = 4, padding = 0 public float ActiveIdTimer; [FieldOffset(7288)] // size = 1, padding = 0 public CBool ActiveIdIsJustActivated; [FieldOffset(7289)] // size = 1, padding = 0 public CBool ActiveIdAllowOverlap; [FieldOffset(7290)] // size = 1, padding = 0 public CBool ActiveIdNoClearOnFocusLoss; [FieldOffset(7291)] // size = 1, padding = 0 public CBool ActiveIdHasBeenPressedBefore; [FieldOffset(7292)] // size = 1, padding = 0 public CBool ActiveIdHasBeenEditedBefore; [FieldOffset(7293)] // size = 1, padding = 0 public CBool ActiveIdHasBeenEditedThisFrame; [FieldOffset(7294)] // size = 1, padding = 1 public CBool ActiveIdUsingMouseWheel; [FieldOffset(7296)] // size = 4, padding = 0 public uint ActiveIdUsingNavDirMask; [FieldOffset(7300)] // size = 4, padding = 0 public uint ActiveIdUsingNavInputMask; [FieldOffset(7304)] // size = 8, padding = 0 public ulong ActiveIdUsingKeyInputMask; [FieldOffset(7312)] // size = 8, padding = 0 public Vector2 ActiveIdClickOffset; [FieldOffset(7320)] // size = 8, padding = 0 public ImGuiWindow* ActiveIdWindow; [FieldOffset(7328)] // size = 4, padding = 0 public ImGuiInputSource ActiveIdSource; [FieldOffset(7332)] // size = 4, padding = 0 public int ActiveIdMouseButton; [FieldOffset(7336)] // size = 4, padding = 0 public ImGuiID ActiveIdPreviousFrame; [FieldOffset(7340)] // size = 1, padding = 0 public CBool ActiveIdPreviousFrameIsAlive; [FieldOffset(7341)] // size = 1, padding = 2 public CBool ActiveIdPreviousFrameHasBeenEditedBefore; [FieldOffset(7344)] // size = 8, padding = 0 public ImGuiWindow* ActiveIdPreviousFrameWindow; [FieldOffset(7352)] // size = 4, padding = 0 public ImGuiID LastActiveId; [FieldOffset(7356)] // size = 4, padding = 0 public float LastActiveIdTimer; [FieldOffset(7360)] // size = 4, padding = 0 public ImGuiItemFlags CurrentItemFlags; [FieldOffset(7364)] // size = 20, padding = 0 public ImGuiNextItemData NextItemData; [FieldOffset(7384)] // size = 60, padding = 4 public ImGuiLastItemData LastItemData; [FieldOffset(7448)] // size = 112, padding = 0 public ImGuiNextWindowData NextWindowData; [FieldOffset(7560)] // size = 16, padding = 0 public ImVector_ImGuiColorMod ColorStack; [FieldOffset(7576)] // size = 16, padding = 0 public ImVector_ImGuiStyleMod StyleVarStack; [FieldOffset(7592)] // size = 16, padding = 0 public ImVector_ImFontPtr FontStack; [FieldOffset(7608)] // size = 16, padding = 0 public ImVector_ImGuiID FocusScopeStack; [FieldOffset(7624)] // size = 16, padding = 0 public ImVector_ImGuiItemFlags ItemFlagsStack; [FieldOffset(7640)] // size = 16, padding = 0 public ImVector_ImGuiGroupData GroupStack; [FieldOffset(7656)] // size = 16, padding = 0 public ImVector_ImGuiPopupData OpenPopupStack; [FieldOffset(7672)] // size = 16, padding = 0 public ImVector_ImGuiPopupData BeginPopupStack; [FieldOffset(7688)] // size = 4, padding = 4 public int BeginMenuCount; [FieldOffset(7696)] // size = 16, padding = 0 public ImVector_ImGuiViewportPPtr Viewports; [FieldOffset(7712)] // size = 8, padding = 0 public ImGuiWindow* NavWindow; [FieldOffset(7720)] // size = 4, padding = 0 public ImGuiID NavId; [FieldOffset(7724)] // size = 4, padding = 0 public ImGuiID NavFocusScopeId; [FieldOffset(7728)] // size = 4, padding = 0 public ImGuiID NavActivateId; [FieldOffset(7732)] // size = 4, padding = 0 public ImGuiID NavActivateDownId; [FieldOffset(7736)] // size = 4, padding = 0 public ImGuiID NavActivatePressedId; [FieldOffset(7740)] // size = 4, padding = 0 public ImGuiID NavActivateInputId; [FieldOffset(7744)] // size = 4, padding = 0 public ImGuiActivateFlags NavActivateFlags; [FieldOffset(7748)] // size = 4, padding = 0 public ImGuiID NavJustMovedToId; [FieldOffset(7752)] // size = 4, padding = 0 public ImGuiID NavJustMovedToFocusScopeId; [FieldOffset(7756)] // size = 4, padding = 0 public ImGuiKeyModFlags NavJustMovedToKeyMods; [FieldOffset(7760)] // size = 4, padding = 0 public ImGuiID NavNextActivateId; [FieldOffset(7764)] // size = 4, padding = 0 public ImGuiActivateFlags NavNextActivateFlags; [FieldOffset(7768)] // size = 4, padding = 0 public ImGuiInputSource NavInputSource; [FieldOffset(7772)] // size = 4, padding = 0 public ImGuiNavLayer NavLayer; [FieldOffset(7776)] // size = 1, padding = 0 public CBool NavIdIsAlive; [FieldOffset(7777)] // size = 1, padding = 0 public CBool NavMousePosDirty; [FieldOffset(7778)] // size = 1, padding = 0 public CBool NavDisableHighlight; [FieldOffset(7779)] // size = 1, padding = 0 public CBool NavDisableMouseHover; [FieldOffset(7780)] // size = 1, padding = 0 public CBool NavAnyRequest; [FieldOffset(7781)] // size = 1, padding = 0 public CBool NavInitRequest; [FieldOffset(7782)] // size = 1, padding = 1 public CBool NavInitRequestFromMove; [FieldOffset(7784)] // size = 4, padding = 0 public ImGuiID NavInitResultId; [FieldOffset(7788)] // size = 16, padding = 0 public ImRect NavInitResultRectRel; [FieldOffset(7804)] // size = 1, padding = 0 public CBool NavMoveSubmitted; [FieldOffset(7805)] // size = 1, padding = 0 public CBool NavMoveScoringItems; [FieldOffset(7806)] // size = 1, padding = 1 public CBool NavMoveForwardToNextFrame; [FieldOffset(7808)] // size = 4, padding = 0 public ImGuiNavMoveFlags NavMoveFlags; [FieldOffset(7812)] // size = 4, padding = 0 public ImGuiScrollFlags NavMoveScrollFlags; [FieldOffset(7816)] // size = 4, padding = 0 public ImGuiKeyModFlags NavMoveKeyMods; [FieldOffset(7820)] // size = 4, padding = 0 public ImGuiDir NavMoveDir; [FieldOffset(7824)] // size = 4, padding = 0 public ImGuiDir NavMoveDirForDebug; [FieldOffset(7828)] // size = 4, padding = 0 public ImGuiDir NavMoveClipDir; [FieldOffset(7832)] // size = 16, padding = 0 public ImRect NavScoringRect; [FieldOffset(7848)] // size = 16, padding = 0 public ImRect NavScoringNoClipRect; [FieldOffset(7864)] // size = 4, padding = 0 public int NavScoringDebugCount; [FieldOffset(7868)] // size = 4, padding = 0 public int NavTabbingDir; [FieldOffset(7872)] // size = 4, padding = 4 public int NavTabbingCounter; [FieldOffset(7880)] // size = 48, padding = 0 public ImGuiNavItemData NavMoveResultLocal; [FieldOffset(7928)] // size = 48, padding = 0 public ImGuiNavItemData NavMoveResultLocalVisible; [FieldOffset(7976)] // size = 48, padding = 0 public ImGuiNavItemData NavMoveResultOther; [FieldOffset(8024)] // size = 48, padding = 0 public ImGuiNavItemData NavTabbingResultFirst; [FieldOffset(8072)] // size = 8, padding = 0 public ImGuiWindow* NavWindowingTarget; [FieldOffset(8080)] // size = 8, padding = 0 public ImGuiWindow* NavWindowingTargetAnim; [FieldOffset(8088)] // size = 8, padding = 0 public ImGuiWindow* NavWindowingListWindow; [FieldOffset(8096)] // size = 4, padding = 0 public float NavWindowingTimer; [FieldOffset(8100)] // size = 4, padding = 0 public float NavWindowingHighlightAlpha; [FieldOffset(8104)] // size = 1, padding = 3 public CBool NavWindowingToggleLayer; [FieldOffset(8108)] // size = 4, padding = 0 public float DimBgRatio; [FieldOffset(8112)] // size = 4, padding = 0 public ImGuiMouseCursor MouseCursor; [FieldOffset(8116)] // size = 1, padding = 0 public CBool DragDropActive; [FieldOffset(8117)] // size = 1, padding = 0 public CBool DragDropWithinSource; [FieldOffset(8118)] // size = 1, padding = 1 public CBool DragDropWithinTarget; [FieldOffset(8120)] // size = 4, padding = 0 public ImGuiDragDropFlags DragDropSourceFlags; [FieldOffset(8124)] // size = 4, padding = 0 public int DragDropSourceFrameCount; [FieldOffset(8128)] // size = 4, padding = 4 public int DragDropMouseButton; [FieldOffset(8136)] // size = 64, padding = 0 public ImGuiPayload DragDropPayload; [FieldOffset(8200)] // size = 16, padding = 0 public ImRect DragDropTargetRect; [FieldOffset(8216)] // size = 4, padding = 0 public ImGuiID DragDropTargetId; [FieldOffset(8220)] // size = 4, padding = 0 public ImGuiDragDropFlags DragDropAcceptFlags; [FieldOffset(8224)] // size = 4, padding = 0 public float DragDropAcceptIdCurrRectSurface; [FieldOffset(8228)] // size = 4, padding = 0 public ImGuiID DragDropAcceptIdCurr; [FieldOffset(8232)] // size = 4, padding = 0 public ImGuiID DragDropAcceptIdPrev; [FieldOffset(8236)] // size = 4, padding = 0 public int DragDropAcceptFrameCount; [FieldOffset(8240)] // size = 4, padding = 4 public ImGuiID DragDropHoldJustPressedId; [FieldOffset(8248)] // size = 16, padding = 0 public ImVector_unsigned_char DragDropPayloadBufHeap; [FieldOffset(8264)] // size = 16, padding = 0 public fixed byte _DragDropPayloadBufLocal[16 / 1]; // unsigned char[16] public Span<byte> DragDropPayloadBufLocal { get { fixed (ImGuiContext* @this = &this) { var pointer = &@this->_DragDropPayloadBufLocal[0]; var span = new Span<byte>(pointer, 16); return span; } } } [FieldOffset(8280)] // size = 4, padding = 4 public int ClipperTempDataStacked; [FieldOffset(8288)] // size = 16, padding = 0 public ImVector_ImGuiListClipperData ClipperTempData; [FieldOffset(8304)] // size = 8, padding = 0 public ImGuiTable* CurrentTable; [FieldOffset(8312)] // size = 4, padding = 4 public int TablesTempDataStacked; [FieldOffset(8320)] // size = 16, padding = 0 public ImVector_ImGuiTableTempData TablesTempData; [FieldOffset(8336)] // size = 40, padding = 0 public ImPool_ImGuiTable Tables; [FieldOffset(8376)] // size = 16, padding = 0 public ImVector_float TablesLastTimeActive; [FieldOffset(8392)] // size = 16, padding = 0 public ImVector_ImDrawChannel DrawChannelsTempMergeBuffer; [FieldOffset(8408)] // size = 8, padding = 0 public ImGuiTabBar* CurrentTabBar; [FieldOffset(8416)] // size = 40, padding = 0 public ImPool_ImGuiTabBar TabBars; [FieldOffset(8456)] // size = 16, padding = 0 public ImVector_ImGuiPtrOrIndex CurrentTabBarStack; [FieldOffset(8472)] // size = 16, padding = 0 public ImVector_ImGuiShrinkWidthItem ShrinkWidthBuffer; [FieldOffset(8488)] // size = 8, padding = 0 public Vector2 MouseLastValidPos; [FieldOffset(8496)] // size = 3720, padding = 0 public ImGuiInputTextState InputTextState; [FieldOffset(12216)] // size = 112, padding = 0 public ImFont InputTextPasswordFont; [FieldOffset(12328)] // size = 4, padding = 0 public ImGuiID TempInputId; [FieldOffset(12332)] // size = 4, padding = 0 public ImGuiColorEditFlags ColorEditOptions; [FieldOffset(12336)] // size = 4, padding = 0 public float ColorEditLastHue; [FieldOffset(12340)] // size = 4, padding = 0 public float ColorEditLastSat; [FieldOffset(12344)] // size = 4, padding = 0 public uint ColorEditLastColor; [FieldOffset(12348)] // size = 16, padding = 0 public Vector4 ColorPickerRef; [FieldOffset(12364)] // size = 48, padding = 0 public ImGuiComboPreviewData ComboPreviewData; [FieldOffset(12412)] // size = 4, padding = 0 public float SliderCurrentAccum; [FieldOffset(12416)] // size = 1, padding = 0 public CBool SliderCurrentAccumDirty; [FieldOffset(12417)] // size = 1, padding = 2 public CBool DragCurrentAccumDirty; [FieldOffset(12420)] // size = 4, padding = 0 public float DragCurrentAccum; [FieldOffset(12424)] // size = 4, padding = 0 public float DragSpeedDefaultRatio; [FieldOffset(12428)] // size = 4, padding = 0 public float ScrollbarClickDeltaToGrabCenter; [FieldOffset(12432)] // size = 4, padding = 0 public float DisabledAlphaBackup; [FieldOffset(12436)] // size = 2, padding = 0 public short DisabledStackSize; [FieldOffset(12438)] // size = 2, padding = 0 public short TooltipOverrideCount; [FieldOffset(12440)] // size = 4, padding = 4 public float TooltipSlowDelay; [FieldOffset(12448)] // size = 16, padding = 0 public ImVector_char ClipboardHandlerData; [FieldOffset(12464)] // size = 16, padding = 0 public ImVector_ImGuiID MenusIdSubmittedThisFrame; [FieldOffset(12480)] // size = 8, padding = 0 public Vector2 PlatformImePos; [FieldOffset(12488)] // size = 8, padding = 0 public Vector2 PlatformImeLastPos; [FieldOffset(12496)] // size = 1, padding = 0 public CChar PlatformLocaleDecimalPoint; [FieldOffset(12497)] // size = 1, padding = 2 public CBool SettingsLoaded; [FieldOffset(12500)] // size = 4, padding = 0 public float SettingsDirtyTimer; [FieldOffset(12504)] // size = 16, padding = 0 public ImGuiTextBuffer SettingsIniData; [FieldOffset(12520)] // size = 16, padding = 0 public ImVector_ImGuiSettingsHandler SettingsHandlers; [FieldOffset(12536)] // size = 16, padding = 0 public ImChunkStream_ImGuiWindowSettings SettingsWindows; [FieldOffset(12552)] // size = 16, padding = 0 public ImChunkStream_ImGuiTableSettings SettingsTables; [FieldOffset(12568)] // size = 16, padding = 0 public ImVector_ImGuiContextHook Hooks; [FieldOffset(12584)] // size = 4, padding = 0 public ImGuiID HookIdNext; [FieldOffset(12588)] // size = 1, padding = 3 public CBool LogEnabled; [FieldOffset(12592)] // size = 4, padding = 4 public ImGuiLogType LogType; [FieldOffset(12600)] // size = 8, padding = 0 public ImFileHandle LogFile; [FieldOffset(12608)] // size = 16, padding = 0 public ImGuiTextBuffer LogBuffer; [FieldOffset(12624)] // size = 8, padding = 0 public CString LogNextPrefix; [FieldOffset(12632)] // size = 8, padding = 0 public CString LogNextSuffix; [FieldOffset(12640)] // size = 4, padding = 0 public float LogLinePosY; [FieldOffset(12644)] // size = 1, padding = 3 public CBool LogLineFirstItem; [FieldOffset(12648)] // size = 4, padding = 0 public int LogDepthRef; [FieldOffset(12652)] // size = 4, padding = 0 public int LogDepthToExpand; [FieldOffset(12656)] // size = 4, padding = 0 public int LogDepthToExpandDefault; [FieldOffset(12660)] // size = 1, padding = 3 public CBool DebugItemPickerActive; [FieldOffset(12664)] // size = 4, padding = 0 public ImGuiID DebugItemPickerBreakId; [FieldOffset(12668)] // size = 16, padding = 4 public ImGuiMetricsConfig DebugMetricsConfig; [FieldOffset(12688)] // size = 32, padding = 0 public ImGuiStackTool DebugStackTool; [FieldOffset(12720)] // size = 480, padding = 0 public fixed uint _FramerateSecPerFrame[480 / 4]; // float[120] public Span<float> FramerateSecPerFrame { get { fixed (ImGuiContext* @this = &this) { var pointer = &@this->_FramerateSecPerFrame[0]; var span = new Span<float>(pointer, 120); return span; } } } [FieldOffset(13200)] // size = 4, padding = 0 public int FramerateSecPerFrameIdx; [FieldOffset(13204)] // size = 4, padding = 0 public int FramerateSecPerFrameCount; [FieldOffset(13208)] // size = 4, padding = 0 public float FramerateSecPerFrameAccum; [FieldOffset(13212)] // size = 4, padding = 0 public int WantCaptureMouseNextFrame; [FieldOffset(13216)] // size = 4, padding = 0 public int WantCaptureKeyboardNextFrame; [FieldOffset(13220)] // size = 4, padding = 0 public int WantTextInputNextFrame; [FieldOffset(13224)] // size = 3073, padding = 7 public fixed byte _TempBuffer[3073 / 1]; // char[3073] public string TempBuffer { get { fixed (ImGuiContext* @this = &this) { var pointer = &@this->_TempBuffer[0]; var cString = new CString(pointer); return Runtime.CStrings.String(cString); } } } } // Struct @ cimgui.h:115:28 [StructLayout(LayoutKind.Explicit, Size = 1168, Pack = 8)] public struct ImFontAtlas { [FieldOffset(0)] // size = 4, padding = 4 public ImFontAtlasFlags Flags; [FieldOffset(8)] // size = 8, padding = 0 public ImTextureID TexID; [FieldOffset(16)] // size = 4, padding = 0 public int TexDesiredWidth; [FieldOffset(20)] // size = 4, padding = 0 public int TexGlyphPadding; [FieldOffset(24)] // size = 1, padding = 0 public CBool Locked; [FieldOffset(25)] // size = 1, padding = 0 public CBool TexReady; [FieldOffset(26)] // size = 1, padding = 5 public CBool TexPixelsUseColors; [FieldOffset(32)] // size = 8, padding = 0 public ulong* TexPixelsAlpha8; [FieldOffset(40)] // size = 8, padding = 0 public ulong* TexPixelsRGBA32; [FieldOffset(48)] // size = 4, padding = 0 public int TexWidth; [FieldOffset(52)] // size = 4, padding = 0 public int TexHeight; [FieldOffset(56)] // size = 8, padding = 0 public Vector2 TexUvScale; [FieldOffset(64)] // size = 8, padding = 0 public Vector2 TexUvWhitePixel; [FieldOffset(72)] // size = 16, padding = 0 public ImVector_ImFontPtr Fonts; [FieldOffset(88)] // size = 16, padding = 0 public ImVector_ImFontAtlasCustomRect CustomRects; [FieldOffset(104)] // size = 16, padding = 0 public ImVector_ImFontConfig ConfigData; [FieldOffset(120)] // size = 1024, padding = 0 public fixed uint _TexUvLines[1024 / 4]; // ImVec4[64] public Span<Vector4> TexUvLines { get { fixed (ImFontAtlas* @this = &this) { var pointer = &@this->_TexUvLines[0]; var span = new Span<Vector4>(pointer, 64); return span; } } } [FieldOffset(1144)] // size = 8, padding = 0 public ImFontBuilderIO* FontBuilderIO; [FieldOffset(1152)] // size = 4, padding = 0 public uint FontBuilderFlags; [FieldOffset(1156)] // size = 4, padding = 0 public int PackIdMouseCursors; [FieldOffset(1160)] // size = 4, padding = 4 public int PackIdLines; } // Struct @ cimgui.h:108:24 [StructLayout(LayoutKind.Explicit, Size = 5480, Pack = 8)] public struct ImGuiIO { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiConfigFlags ConfigFlags; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiBackendFlags BackendFlags; [FieldOffset(8)] // size = 8, padding = 0 public Vector2 DisplaySize; [FieldOffset(16)] // size = 4, padding = 0 public float DeltaTime; [FieldOffset(20)] // size = 4, padding = 0 public float IniSavingRate; [FieldOffset(24)] // size = 8, padding = 0 public CString IniFilename; [FieldOffset(32)] // size = 8, padding = 0 public CString LogFilename; [FieldOffset(40)] // size = 4, padding = 0 public float MouseDoubleClickTime; [FieldOffset(44)] // size = 4, padding = 0 public float MouseDoubleClickMaxDist; [FieldOffset(48)] // size = 4, padding = 0 public float MouseDragThreshold; [FieldOffset(52)] // size = 88, padding = 0 public fixed uint _KeyMap[88 / 4]; // int[22] public Span<int> KeyMap { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_KeyMap[0]; var span = new Span<int>(pointer, 22); return span; } } } [FieldOffset(140)] // size = 4, padding = 0 public float KeyRepeatDelay; [FieldOffset(144)] // size = 4, padding = 4 public float KeyRepeatRate; [FieldOffset(152)] // size = 8, padding = 0 public void* UserData; [FieldOffset(160)] // size = 8, padding = 0 public ImFontAtlas* Fonts; [FieldOffset(168)] // size = 4, padding = 0 public float FontGlobalScale; [FieldOffset(172)] // size = 1, padding = 3 public CBool FontAllowUserScaling; [FieldOffset(176)] // size = 8, padding = 0 public ImFont* FontDefault; [FieldOffset(184)] // size = 8, padding = 0 public Vector2 DisplayFramebufferScale; [FieldOffset(192)] // size = 1, padding = 0 public CBool MouseDrawCursor; [FieldOffset(193)] // size = 1, padding = 0 public CBool ConfigMacOSXBehaviors; [FieldOffset(194)] // size = 1, padding = 0 public CBool ConfigInputTextCursorBlink; [FieldOffset(195)] // size = 1, padding = 0 public CBool ConfigDragClickToInputText; [FieldOffset(196)] // size = 1, padding = 0 public CBool ConfigWindowsResizeFromEdges; [FieldOffset(197)] // size = 1, padding = 2 public CBool ConfigWindowsMoveFromTitleBarOnly; [FieldOffset(200)] // size = 4, padding = 4 public float ConfigMemoryCompactTimer; [FieldOffset(208)] // size = 8, padding = 0 public CString BackendPlatformName; [FieldOffset(216)] // size = 8, padding = 0 public CString BackendRendererName; [FieldOffset(224)] // size = 8, padding = 0 public void* BackendPlatformUserData; [FieldOffset(232)] // size = 8, padding = 0 public void* BackendRendererUserData; [FieldOffset(240)] // size = 8, padding = 0 public void* BackendLanguageUserData; [FieldOffset(248)] // size = 8, padding = 0 public FnPtr_IMGUI_VoidPtr_CString GetClipboardTextFn; [FieldOffset(256)] // size = 8, padding = 0 public FnPtr_IMGUI_VoidPtr_CString_Void SetClipboardTextFn; [FieldOffset(264)] // size = 8, padding = 0 public void* ClipboardUserData; [FieldOffset(272)] // size = 8, padding = 0 public FnPtr_IMGUI_Int_Int_Void ImeSetInputScreenPosFn; [FieldOffset(280)] // size = 8, padding = 0 public void* ImeWindowHandle; [FieldOffset(288)] // size = 8, padding = 0 public Vector2 MousePos; [FieldOffset(296)] // size = 5, padding = 3 public fixed byte _MouseDown[5 / 1]; // _Bool[5] public Span<CBool> MouseDown { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDown[0]; var span = new Span<CBool>(pointer, 5); return span; } } } [FieldOffset(304)] // size = 4, padding = 0 public float MouseWheel; [FieldOffset(308)] // size = 4, padding = 0 public float MouseWheelH; [FieldOffset(312)] // size = 1, padding = 0 public CBool KeyCtrl; [FieldOffset(313)] // size = 1, padding = 0 public CBool KeyShift; [FieldOffset(314)] // size = 1, padding = 0 public CBool KeyAlt; [FieldOffset(315)] // size = 1, padding = 0 public CBool KeySuper; [FieldOffset(316)] // size = 512, padding = 0 public fixed byte _KeysDown[512 / 1]; // _Bool[512] public Span<CBool> KeysDown { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_KeysDown[0]; var span = new Span<CBool>(pointer, 512); return span; } } } [FieldOffset(828)] // size = 80, padding = 0 public fixed uint _NavInputs[80 / 4]; // float[20] public Span<float> NavInputs { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_NavInputs[0]; var span = new Span<float>(pointer, 20); return span; } } } [FieldOffset(908)] // size = 1, padding = 0 public CBool WantCaptureMouse; [FieldOffset(909)] // size = 1, padding = 0 public CBool WantCaptureKeyboard; [FieldOffset(910)] // size = 1, padding = 0 public CBool WantTextInput; [FieldOffset(911)] // size = 1, padding = 0 public CBool WantSetMousePos; [FieldOffset(912)] // size = 1, padding = 0 public CBool WantSaveIniSettings; [FieldOffset(913)] // size = 1, padding = 0 public CBool NavActive; [FieldOffset(914)] // size = 1, padding = 1 public CBool NavVisible; [FieldOffset(916)] // size = 4, padding = 0 public float Framerate; [FieldOffset(920)] // size = 4, padding = 0 public int MetricsRenderVertices; [FieldOffset(924)] // size = 4, padding = 0 public int MetricsRenderIndices; [FieldOffset(928)] // size = 4, padding = 0 public int MetricsRenderWindows; [FieldOffset(932)] // size = 4, padding = 0 public int MetricsActiveWindows; [FieldOffset(936)] // size = 4, padding = 0 public int MetricsActiveAllocations; [FieldOffset(940)] // size = 8, padding = 0 public Vector2 MouseDelta; [FieldOffset(948)] // size = 1, padding = 3 public CBool WantCaptureMouseUnlessPopupClose; [FieldOffset(952)] // size = 4, padding = 0 public ImGuiKeyModFlags KeyMods; [FieldOffset(956)] // size = 4, padding = 0 public ImGuiKeyModFlags KeyModsPrev; [FieldOffset(960)] // size = 8, padding = 0 public Vector2 MousePosPrev; [FieldOffset(968)] // size = 40, padding = 0 public fixed uint _MouseClickedPos[40 / 4]; // ImVec2[5] public Span<Vector2> MouseClickedPos { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseClickedPos[0]; var span = new Span<Vector2>(pointer, 5); return span; } } } [FieldOffset(1008)] // size = 40, padding = 0 public fixed ulong _MouseClickedTime[40 / 8]; // double[5] public Span<double> MouseClickedTime { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseClickedTime[0]; var span = new Span<double>(pointer, 5); return span; } } } [FieldOffset(1048)] // size = 5, padding = 0 public fixed byte _MouseClicked[5 / 1]; // _Bool[5] public Span<CBool> MouseClicked { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseClicked[0]; var span = new Span<CBool>(pointer, 5); return span; } } } [FieldOffset(1053)] // size = 5, padding = 0 public fixed byte _MouseDoubleClicked[5 / 1]; // _Bool[5] public Span<CBool> MouseDoubleClicked { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDoubleClicked[0]; var span = new Span<CBool>(pointer, 5); return span; } } } [FieldOffset(1058)] // size = 10, padding = 0 public fixed ushort _MouseClickedCount[10 / 2]; // ImU16[5] public Span<ushort> MouseClickedCount { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseClickedCount[0]; var span = new Span<ushort>(pointer, 5); return span; } } } [FieldOffset(1068)] // size = 10, padding = 0 public fixed ushort _MouseClickedLastCount[10 / 2]; // ImU16[5] public Span<ushort> MouseClickedLastCount { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseClickedLastCount[0]; var span = new Span<ushort>(pointer, 5); return span; } } } [FieldOffset(1078)] // size = 5, padding = 0 public fixed byte _MouseReleased[5 / 1]; // _Bool[5] public Span<CBool> MouseReleased { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseReleased[0]; var span = new Span<CBool>(pointer, 5); return span; } } } [FieldOffset(1083)] // size = 5, padding = 0 public fixed byte _MouseDownOwned[5 / 1]; // _Bool[5] public Span<CBool> MouseDownOwned { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDownOwned[0]; var span = new Span<CBool>(pointer, 5); return span; } } } [FieldOffset(1088)] // size = 5, padding = 3 public fixed byte _MouseDownOwnedUnlessPopupClose[5 / 1]; // _Bool[5] public Span<CBool> MouseDownOwnedUnlessPopupClose { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDownOwnedUnlessPopupClose[0]; var span = new Span<CBool>(pointer, 5); return span; } } } [FieldOffset(1096)] // size = 20, padding = 0 public fixed uint _MouseDownDuration[20 / 4]; // float[5] public Span<float> MouseDownDuration { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDownDuration[0]; var span = new Span<float>(pointer, 5); return span; } } } [FieldOffset(1116)] // size = 20, padding = 0 public fixed uint _MouseDownDurationPrev[20 / 4]; // float[5] public Span<float> MouseDownDurationPrev { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDownDurationPrev[0]; var span = new Span<float>(pointer, 5); return span; } } } [FieldOffset(1136)] // size = 40, padding = 0 public fixed uint _MouseDragMaxDistanceAbs[40 / 4]; // ImVec2[5] public Span<Vector2> MouseDragMaxDistanceAbs { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDragMaxDistanceAbs[0]; var span = new Span<Vector2>(pointer, 5); return span; } } } [FieldOffset(1176)] // size = 20, padding = 0 public fixed uint _MouseDragMaxDistanceSqr[20 / 4]; // float[5] public Span<float> MouseDragMaxDistanceSqr { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_MouseDragMaxDistanceSqr[0]; var span = new Span<float>(pointer, 5); return span; } } } [FieldOffset(1196)] // size = 2048, padding = 0 public fixed uint _KeysDownDuration[2048 / 4]; // float[512] public Span<float> KeysDownDuration { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_KeysDownDuration[0]; var span = new Span<float>(pointer, 512); return span; } } } [FieldOffset(3244)] // size = 2048, padding = 0 public fixed uint _KeysDownDurationPrev[2048 / 4]; // float[512] public Span<float> KeysDownDurationPrev { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_KeysDownDurationPrev[0]; var span = new Span<float>(pointer, 512); return span; } } } [FieldOffset(5292)] // size = 80, padding = 0 public fixed uint _NavInputsDownDuration[80 / 4]; // float[20] public Span<float> NavInputsDownDuration { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_NavInputsDownDuration[0]; var span = new Span<float>(pointer, 20); return span; } } } [FieldOffset(5372)] // size = 80, padding = 0 public fixed uint _NavInputsDownDurationPrev[80 / 4]; // float[20] public Span<float> NavInputsDownDurationPrev { get { fixed (ImGuiIO* @this = &this) { var pointer = &@this->_NavInputsDownDurationPrev[0]; var span = new Span<float>(pointer, 20); return span; } } } [FieldOffset(5452)] // size = 4, padding = 0 public float PenPressure; [FieldOffset(5456)] // size = 1, padding = 1 public CBool AppFocusLost; [FieldOffset(5458)] // size = 2, padding = 4 public ushort InputQueueSurrogate; [FieldOffset(5464)] // size = 16, padding = 0 public ImVector_ImWchar InputQueueCharacters; } // Struct @ cimgui.h:101:27 [StructLayout(LayoutKind.Explicit, Size = 1048, Pack = 4)] public struct ImGuiStyle { [FieldOffset(0)] // size = 4, padding = 0 public float Alpha; [FieldOffset(4)] // size = 4, padding = 0 public float DisabledAlpha; [FieldOffset(8)] // size = 8, padding = 0 public Vector2 WindowPadding; [FieldOffset(16)] // size = 4, padding = 0 public float WindowRounding; [FieldOffset(20)] // size = 4, padding = 0 public float WindowBorderSize; [FieldOffset(24)] // size = 8, padding = 0 public Vector2 WindowMinSize; [FieldOffset(32)] // size = 8, padding = 0 public Vector2 WindowTitleAlign; [FieldOffset(40)] // size = 4, padding = 0 public ImGuiDir WindowMenuButtonPosition; [FieldOffset(44)] // size = 4, padding = 0 public float ChildRounding; [FieldOffset(48)] // size = 4, padding = 0 public float ChildBorderSize; [FieldOffset(52)] // size = 4, padding = 0 public float PopupRounding; [FieldOffset(56)] // size = 4, padding = 0 public float PopupBorderSize; [FieldOffset(60)] // size = 8, padding = 0 public Vector2 FramePadding; [FieldOffset(68)] // size = 4, padding = 0 public float FrameRounding; [FieldOffset(72)] // size = 4, padding = 0 public float FrameBorderSize; [FieldOffset(76)] // size = 8, padding = 0 public Vector2 ItemSpacing; [FieldOffset(84)] // size = 8, padding = 0 public Vector2 ItemInnerSpacing; [FieldOffset(92)] // size = 8, padding = 0 public Vector2 CellPadding; [FieldOffset(100)] // size = 8, padding = 0 public Vector2 TouchExtraPadding; [FieldOffset(108)] // size = 4, padding = 0 public float IndentSpacing; [FieldOffset(112)] // size = 4, padding = 0 public float ColumnsMinSpacing; [FieldOffset(116)] // size = 4, padding = 0 public float ScrollbarSize; [FieldOffset(120)] // size = 4, padding = 0 public float ScrollbarRounding; [FieldOffset(124)] // size = 4, padding = 0 public float GrabMinSize; [FieldOffset(128)] // size = 4, padding = 0 public float GrabRounding; [FieldOffset(132)] // size = 4, padding = 0 public float LogSliderDeadzone; [FieldOffset(136)] // size = 4, padding = 0 public float TabRounding; [FieldOffset(140)] // size = 4, padding = 0 public float TabBorderSize; [FieldOffset(144)] // size = 4, padding = 0 public float TabMinWidthForCloseButton; [FieldOffset(148)] // size = 4, padding = 0 public ImGuiDir ColorButtonPosition; [FieldOffset(152)] // size = 8, padding = 0 public Vector2 ButtonTextAlign; [FieldOffset(160)] // size = 8, padding = 0 public Vector2 SelectableTextAlign; [FieldOffset(168)] // size = 8, padding = 0 public Vector2 DisplayWindowPadding; [FieldOffset(176)] // size = 8, padding = 0 public Vector2 DisplaySafeAreaPadding; [FieldOffset(184)] // size = 4, padding = 0 public float MouseCursorScale; [FieldOffset(188)] // size = 1, padding = 0 public CBool AntiAliasedLines; [FieldOffset(189)] // size = 1, padding = 0 public CBool AntiAliasedLinesUseTex; [FieldOffset(190)] // size = 1, padding = 1 public CBool AntiAliasedFill; [FieldOffset(192)] // size = 4, padding = 0 public float CurveTessellationTol; [FieldOffset(196)] // size = 4, padding = 0 public float CircleTessellationMaxError; [FieldOffset(200)] // size = 848, padding = 0 public fixed uint _Colors[848 / 4]; // ImVec4[53] public Span<Vector4> Colors { get { fixed (ImGuiStyle* @this = &this) { var pointer = &@this->_Colors[0]; var span = new Span<Vector4>(pointer, 53); return span; } } } } // Struct @ cimgui.h:121:27 [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)] public struct ImDrawData { [FieldOffset(0)] // size = 1, padding = 3 public CBool Valid; [FieldOffset(4)] // size = 4, padding = 0 public int CmdListsCount; [FieldOffset(8)] // size = 4, padding = 0 public int TotalIdxCount; [FieldOffset(12)] // size = 4, padding = 0 public int TotalVtxCount; [FieldOffset(16)] // size = 8, padding = 0 public ImDrawList** CmdLists; [FieldOffset(24)] // size = 8, padding = 0 public Vector2 DisplayPos; [FieldOffset(32)] // size = 8, padding = 0 public Vector2 DisplaySize; [FieldOffset(40)] // size = 8, padding = 0 public Vector2 FramebufferScale; } // Struct @ cimgui.h:120:27 [StructLayout(LayoutKind.Explicit, Size = 200, Pack = 8)] public struct ImDrawList { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImDrawCmd CmdBuffer; [FieldOffset(16)] // size = 16, padding = 0 public ImVector_ImDrawIdx IdxBuffer; [FieldOffset(32)] // size = 16, padding = 0 public ImVector_ImDrawVert VtxBuffer; [FieldOffset(48)] // size = 4, padding = 0 public ImDrawListFlags Flags; [FieldOffset(52)] // size = 4, padding = 0 public uint _VtxCurrentIdx; [FieldOffset(56)] // size = 8, padding = 0 public ImDrawListSharedData* _Data; [FieldOffset(64)] // size = 8, padding = 0 public CString _OwnerName; [FieldOffset(72)] // size = 8, padding = 0 public ImDrawVert* _VtxWritePtr; [FieldOffset(80)] // size = 8, padding = 0 public ImDrawIdx* _IdxWritePtr; [FieldOffset(88)] // size = 16, padding = 0 public ImVector_ImVec4 _ClipRectStack; [FieldOffset(104)] // size = 16, padding = 0 public ImVector_ImTextureID _TextureIdStack; [FieldOffset(120)] // size = 16, padding = 0 public ImVector_ImVec2 _Path; [FieldOffset(136)] // size = 32, padding = 0 public ImDrawCmdHeader _CmdHeader; [FieldOffset(168)] // size = 24, padding = 0 public ImDrawListSplitter _Splitter; [FieldOffset(192)] // size = 4, padding = 4 public float _FringeScale; } // Struct @ cimgui.h:116:23 [StructLayout(LayoutKind.Explicit, Size = 112, Pack = 8)] public struct ImFont { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_float IndexAdvanceX; [FieldOffset(16)] // size = 4, padding = 0 public float FallbackAdvanceX; [FieldOffset(20)] // size = 4, padding = 0 public float FontSize; [FieldOffset(24)] // size = 16, padding = 0 public ImVector_ImWchar IndexLookup; [FieldOffset(40)] // size = 16, padding = 0 public ImVector_ImFontGlyph Glyphs; [FieldOffset(56)] // size = 8, padding = 0 public ImFontGlyph* FallbackGlyph; [FieldOffset(64)] // size = 8, padding = 0 public ImFontAtlas* ContainerAtlas; [FieldOffset(72)] // size = 8, padding = 0 public ImFontConfig* ConfigData; [FieldOffset(80)] // size = 2, padding = 0 public short ConfigDataCount; [FieldOffset(82)] // size = 2, padding = 0 public byte FallbackChar; [FieldOffset(84)] // size = 2, padding = 0 public byte EllipsisChar; [FieldOffset(86)] // size = 2, padding = 0 public byte DotChar; [FieldOffset(88)] // size = 1, padding = 3 public CBool DirtyLookupTables; [FieldOffset(92)] // size = 4, padding = 0 public float Scale; [FieldOffset(96)] // size = 4, padding = 0 public float Ascent; [FieldOffset(100)] // size = 4, padding = 0 public float Descent; [FieldOffset(104)] // size = 4, padding = 0 public int MetricsTotalSurface; [FieldOffset(108)] // size = 2, padding = 2 public fixed byte _Used4kPagesMap[2 / 1]; // ImU8[2] public Span<byte> Used4kPagesMap { get { fixed (ImFont* @this = &this) { var pointer = &@this->_Used4kPagesMap[0]; var span = new Span<byte>(pointer, 2); return span; } } } } // Struct @ cimgui.h:100:36 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImGuiTableSortSpecs { [FieldOffset(0)] // size = 8, padding = 0 public ImGuiTableColumnSortSpecs* Specs; [FieldOffset(8)] // size = 4, padding = 0 public int SpecsCount; [FieldOffset(12)] // size = 1, padding = 3 public CBool SpecsDirty; } // Struct @ cimgui.h:104:29 [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 8)] public struct ImGuiPayload { [FieldOffset(0)] // size = 8, padding = 0 public void* Data; [FieldOffset(8)] // size = 4, padding = 0 public int DataSize; [FieldOffset(12)] // size = 4, padding = 0 public ImGuiID SourceId; [FieldOffset(16)] // size = 4, padding = 0 public ImGuiID SourceParentId; [FieldOffset(20)] // size = 4, padding = 0 public int DataFrameCount; [FieldOffset(24)] // size = 33, padding = 0 public fixed byte _DataType[33 / 1]; // char[33] public string DataType { get { fixed (ImGuiPayload* @this = &this) { var pointer = &@this->_DataType[0]; var cString = new CString(pointer); return Runtime.CStrings.String(cString); } } } [FieldOffset(57)] // size = 1, padding = 0 public CBool Preview; [FieldOffset(58)] // size = 1, padding = 5 public CBool Delivery; } // Struct @ cimgui.h:96:30 [StructLayout(LayoutKind.Explicit, Size = 36, Pack = 4)] public struct ImGuiViewport { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiViewportFlags Flags; [FieldOffset(4)] // size = 8, padding = 0 public Vector2 Pos; [FieldOffset(12)] // size = 8, padding = 0 public Vector2 Size; [FieldOffset(20)] // size = 8, padding = 0 public Vector2 WorkPos; [FieldOffset(28)] // size = 8, padding = 0 public Vector2 WorkSize; } // Struct @ cimgui.h:119:37 [StructLayout(LayoutKind.Explicit, Size = 512, Pack = 8)] public struct ImDrawListSharedData { [FieldOffset(0)] // size = 8, padding = 0 public Vector2 TexUvWhitePixel; [FieldOffset(8)] // size = 8, padding = 0 public ImFont* Font; [FieldOffset(16)] // size = 4, padding = 0 public float FontSize; [FieldOffset(20)] // size = 4, padding = 0 public float CurveTessellationTol; [FieldOffset(24)] // size = 4, padding = 0 public float CircleSegmentMaxError; [FieldOffset(28)] // size = 16, padding = 0 public Vector4 ClipRectFullscreen; [FieldOffset(44)] // size = 4, padding = 0 public ImDrawListFlags InitialFlags; [FieldOffset(48)] // size = 384, padding = 0 public fixed uint _ArcFastVtx[384 / 4]; // ImVec2[48] public Span<Vector2> ArcFastVtx { get { fixed (ImDrawListSharedData* @this = &this) { var pointer = &@this->_ArcFastVtx[0]; var span = new Span<Vector2>(pointer, 48); return span; } } } [FieldOffset(432)] // size = 4, padding = 0 public float ArcFastRadiusCutoff; [FieldOffset(436)] // size = 64, padding = 4 public fixed byte _CircleSegmentCounts[64 / 1]; // ImU8[64] public Span<byte> CircleSegmentCounts { get { fixed (ImDrawListSharedData* @this = &this) { var pointer = &@this->_CircleSegmentCounts[0]; var span = new Span<byte>(pointer, 64); return span; } } } [FieldOffset(504)] // size = 8, padding = 0 public Vector4* TexUvLines; } // Struct @ cimgui.h:102:29 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImGuiStorage { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImGuiStoragePair Data; } // Struct @ cimgui.h:107:43 [StructLayout(LayoutKind.Explicit, Size = 56, Pack = 8)] public struct ImGuiInputTextCallbackData { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiInputTextFlags EventFlag; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiInputTextFlags Flags; [FieldOffset(8)] // size = 8, padding = 0 public void* UserData; [FieldOffset(16)] // size = 2, padding = 2 public byte EventChar; [FieldOffset(20)] // size = 4, padding = 0 public ImGuiKey EventKey; [FieldOffset(24)] // size = 8, padding = 0 public CString Buf; [FieldOffset(32)] // size = 4, padding = 0 public int BufTextLen; [FieldOffset(36)] // size = 4, padding = 0 public int BufSize; [FieldOffset(40)] // size = 1, padding = 3 public CBool BufDirty; [FieldOffset(44)] // size = 4, padding = 0 public int CursorPos; [FieldOffset(48)] // size = 4, padding = 0 public int SelectionStart; [FieldOffset(52)] // size = 4, padding = 0 public int SelectionEnd; } // Struct @ cimgui.h:99:42 [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] public struct ImGuiTableColumnSortSpecs { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ColumnUserID; [FieldOffset(4)] // size = 2, padding = 0 public short ColumnIndex; [FieldOffset(6)] // size = 2, padding = 0 public short SortOrder; [FieldOffset(8)] // size = 4, padding = 0 public ImGuiSortDirection SortDirection; } // Struct @ cimgui.h:105:36 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiOnceUponAFrame { [FieldOffset(0)] // size = 4, padding = 0 public int RefFrame; } // Struct @ cimgui.h:97:32 [StructLayout(LayoutKind.Explicit, Size = 280, Pack = 8)] public struct ImGuiTextFilter { [FieldOffset(0)] // size = 256, padding = 0 public fixed byte _InputBuf[256 / 1]; // char[256] public string InputBuf { get { fixed (ImGuiTextFilter* @this = &this) { var pointer = &@this->_InputBuf[0]; var cString = new CString(pointer); return Runtime.CStrings.String(cString); } } } [FieldOffset(256)] // size = 16, padding = 0 public ImVector_ImGuiTextRange Filters; [FieldOffset(272)] // size = 4, padding = 4 public int CountGrep; } // Struct @ cimgui.h:93:31 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImGuiTextRange { [FieldOffset(0)] // size = 8, padding = 0 public CString b; [FieldOffset(8)] // size = 8, padding = 0 public CString e; } // Struct @ cimgui.h:296:86 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiTextRange { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTextRange* Data; } // Struct @ cimgui.h:98:32 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImGuiTextBuffer { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_char Buf; } // Struct @ cimgui.h:92:33 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImGuiStoragePair { [FieldOffset(0)] // size = 4, padding = 12 public ImGuiID key; } // Struct @ cimgui.h:106:33 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImGuiListClipper { [FieldOffset(0)] // size = 4, padding = 0 public int DisplayStart; [FieldOffset(4)] // size = 4, padding = 0 public int DisplayEnd; [FieldOffset(8)] // size = 4, padding = 0 public int ItemsCount; [FieldOffset(12)] // size = 4, padding = 0 public float ItemsHeight; [FieldOffset(16)] // size = 4, padding = 4 public float StartPosY; [FieldOffset(24)] // size = 8, padding = 0 public void* TempData; } // Struct @ cimgui.h:110:24 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] public struct ImColor { [FieldOffset(0)] // size = 16, padding = 0 public Vector4 Value; } // Struct @ cimgui.h:122:26 [StructLayout(LayoutKind.Explicit, Size = 56, Pack = 8)] public struct ImDrawCmd { [FieldOffset(0)] // size = 16, padding = 0 public Vector4 ClipRect; [FieldOffset(16)] // size = 8, padding = 0 public ImTextureID TextureId; [FieldOffset(24)] // size = 4, padding = 0 public uint VtxOffset; [FieldOffset(28)] // size = 4, padding = 0 public uint IdxOffset; [FieldOffset(32)] // size = 4, padding = 4 public uint ElemCount; [FieldOffset(40)] // size = 8, padding = 0 public ImDrawCallback UserCallback; [FieldOffset(48)] // size = 8, padding = 0 public void* UserCallbackData; } // Struct @ cimgui.h:118:35 [StructLayout(LayoutKind.Explicit, Size = 24, Pack = 8)] public struct ImDrawListSplitter { [FieldOffset(0)] // size = 4, padding = 0 public int _Current; [FieldOffset(4)] // size = 4, padding = 0 public int _Count; [FieldOffset(8)] // size = 16, padding = 0 public ImVector_ImDrawChannel _Channels; } // Struct @ cimgui.h:113:29 [StructLayout(LayoutKind.Explicit, Size = 136, Pack = 8)] public struct ImFontConfig { [FieldOffset(0)] // size = 8, padding = 0 public void* FontData; [FieldOffset(8)] // size = 4, padding = 0 public int FontDataSize; [FieldOffset(12)] // size = 1, padding = 3 public CBool FontDataOwnedByAtlas; [FieldOffset(16)] // size = 4, padding = 0 public int FontNo; [FieldOffset(20)] // size = 4, padding = 0 public float SizePixels; [FieldOffset(24)] // size = 4, padding = 0 public int OversampleH; [FieldOffset(28)] // size = 4, padding = 0 public int OversampleV; [FieldOffset(32)] // size = 1, padding = 3 public CBool PixelSnapH; [FieldOffset(36)] // size = 8, padding = 0 public Vector2 GlyphExtraSpacing; [FieldOffset(44)] // size = 8, padding = 4 public Vector2 GlyphOffset; [FieldOffset(56)] // size = 8, padding = 0 public byte* GlyphRanges; [FieldOffset(64)] // size = 4, padding = 0 public float GlyphMinAdvanceX; [FieldOffset(68)] // size = 4, padding = 0 public float GlyphMaxAdvanceX; [FieldOffset(72)] // size = 1, padding = 3 public CBool MergeMode; [FieldOffset(76)] // size = 4, padding = 0 public uint FontBuilderFlags; [FieldOffset(80)] // size = 4, padding = 0 public float RasterizerMultiply; [FieldOffset(84)] // size = 2, padding = 0 public byte EllipsisChar; [FieldOffset(86)] // size = 40, padding = 2 public fixed byte _Name[40 / 1]; // char[40] public string Name { get { fixed (ImFontConfig* @this = &this) { var pointer = &@this->_Name[0]; var cString = new CString(pointer); return Runtime.CStrings.String(cString); } } } [FieldOffset(128)] // size = 8, padding = 0 public ImFont* DstFont; } // Struct @ cimgui.h:111:41 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImFontGlyphRangesBuilder { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImU32 UsedChars; } // Struct @ cimgui.h:304:72 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImWchar { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public byte* Data; } // Struct @ cimgui.h:90:38 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImFontAtlasCustomRect { [FieldOffset(0)] // size = 2, padding = 0 public ushort Width; [FieldOffset(2)] // size = 2, padding = 0 public ushort Height; [FieldOffset(4)] // size = 2, padding = 0 public ushort X; [FieldOffset(6)] // size = 2, padding = 0 public ushort Y; [FieldOffset(8)] // size = 4, padding = 0 public uint GlyphID; [FieldOffset(12)] // size = 4, padding = 0 public float GlyphAdvanceX; [FieldOffset(16)] // size = 8, padding = 0 public Vector2 GlyphOffset; [FieldOffset(24)] // size = 8, padding = 0 public ImFont* Font; } // Struct @ cimgui.h:112:28 [StructLayout(LayoutKind.Explicit, Size = 40, Pack = 4)] public struct ImFontGlyph { [FieldOffset(0)] // size = 4, padding = 0 public uint Colored; [FieldOffset(0)] // size = 4, padding = 0 public uint Visible; [FieldOffset(0)] // size = 4, padding = 0 public uint Codepoint; [FieldOffset(4)] // size = 4, padding = 0 public float AdvanceX; [FieldOffset(8)] // size = 4, padding = 0 public float X0; [FieldOffset(12)] // size = 4, padding = 0 public float Y0; [FieldOffset(16)] // size = 4, padding = 0 public float X1; [FieldOffset(20)] // size = 4, padding = 0 public float Y1; [FieldOffset(24)] // size = 4, padding = 0 public float U0; [FieldOffset(28)] // size = 4, padding = 0 public float V0; [FieldOffset(32)] // size = 4, padding = 0 public float U1; [FieldOffset(36)] // size = 4, padding = 0 public float V1; } // Struct @ cimgui.h:54:25 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 2)] public struct ImVec2ih { [FieldOffset(0)] // size = 2, padding = 0 public short x; [FieldOffset(2)] // size = 2, padding = 0 public short y; } // Struct @ cimgui.h:88:23 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] public struct ImRect { [FieldOffset(0)] // size = 8, padding = 0 public Vector2 Min; [FieldOffset(8)] // size = 8, padding = 0 public Vector2 Max; } // Struct @ cimgui.h:89:28 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImBitVector { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImU32 Storage; } // Struct @ cimgui.h:87:34 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImDrawDataBuilder { [FieldOffset(0)] // size = 32, padding = 0 public fixed ulong _Layers[32 / 8]; // ImVector_ImDrawListPtr[2] public Span<ImVector_ImDrawListPtr> Layers { get { fixed (ImDrawDataBuilder* @this = &this) { var pointer = &@this->_Layers[0]; var span = new Span<ImVector_ImDrawListPtr>(pointer, 2); return span; } } } } // Struct @ cimgui.h:70:30 [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] public struct ImGuiStyleMod { [FieldOffset(0)] // size = 4, padding = 8 public ImGuiStyleVar VarIdx; } // Struct @ cimgui.h:52:38 [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] public struct ImGuiComboPreviewData { [FieldOffset(0)] // size = 16, padding = 0 public ImRect PreviewRect; [FieldOffset(16)] // size = 8, padding = 0 public Vector2 BackupCursorPos; [FieldOffset(24)] // size = 8, padding = 0 public Vector2 BackupCursorMaxPos; [FieldOffset(32)] // size = 8, padding = 0 public Vector2 BackupCursorPosPrevLine; [FieldOffset(40)] // size = 4, padding = 0 public float BackupPrevLineTextBaseOffset; [FieldOffset(44)] // size = 4, padding = 0 public ImGuiLayoutType BackupLayout; } // Struct @ cimgui.h:80:33 [StructLayout(LayoutKind.Explicit, Size = 28, Pack = 4)] public struct ImGuiMenuColumns { [FieldOffset(0)] // size = 4, padding = 0 public uint TotalWidth; [FieldOffset(4)] // size = 4, padding = 0 public uint NextTotalWidth; [FieldOffset(8)] // size = 2, padding = 0 public ushort Spacing; [FieldOffset(10)] // size = 2, padding = 0 public ushort OffsetIcon; [FieldOffset(12)] // size = 2, padding = 0 public ushort OffsetLabel; [FieldOffset(14)] // size = 2, padding = 0 public ushort OffsetShortcut; [FieldOffset(16)] // size = 2, padding = 0 public ushort OffsetMark; [FieldOffset(18)] // size = 8, padding = 2 public fixed ushort _Widths[8 / 2]; // ImU16[4] public Span<ushort> Widths { get { fixed (ImGuiMenuColumns* @this = &this) { var pointer = &@this->_Widths[0]; var span = new Span<ushort>(pointer, 4); return span; } } } } // Struct @ cimgui.h:82:36 [StructLayout(LayoutKind.Explicit, Size = 3720, Pack = 8)] public struct ImGuiInputTextState { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 4, padding = 0 public int CurLenW; [FieldOffset(8)] // size = 4, padding = 4 public int CurLenA; [FieldOffset(16)] // size = 16, padding = 0 public ImVector_ImWchar TextW; [FieldOffset(32)] // size = 16, padding = 0 public ImVector_char TextA; [FieldOffset(48)] // size = 16, padding = 0 public ImVector_char InitialTextA; [FieldOffset(64)] // size = 1, padding = 3 public CBool TextAIsValid; [FieldOffset(68)] // size = 4, padding = 0 public int BufCapacityA; [FieldOffset(72)] // size = 4, padding = 0 public float ScrollX; [FieldOffset(76)] // size = 3628, padding = 0 public STB_TexteditState Stb; [FieldOffset(3704)] // size = 4, padding = 0 public float CursorAnim; [FieldOffset(3708)] // size = 1, padding = 0 public CBool CursorFollow; [FieldOffset(3709)] // size = 1, padding = 0 public CBool SelectedAllMouseLock; [FieldOffset(3710)] // size = 1, padding = 1 public CBool Edited; [FieldOffset(3712)] // size = 4, padding = 4 public ImGuiInputTextFlags Flags; } // Struct @ cimgui.h:73:31 [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)] public struct ImGuiPopupData { [FieldOffset(0)] // size = 4, padding = 4 public ImGuiID PopupId; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiWindow* Window; [FieldOffset(16)] // size = 8, padding = 0 public ImGuiWindow* SourceWindow; [FieldOffset(24)] // size = 4, padding = 0 public int OpenFrameCount; [FieldOffset(28)] // size = 4, padding = 0 public ImGuiID OpenParentId; [FieldOffset(32)] // size = 8, padding = 0 public Vector2 OpenPopupPos; [FieldOffset(40)] // size = 8, padding = 0 public Vector2 OpenMousePos; } // Struct @ cimgui.h:77:36 [StructLayout(LayoutKind.Explicit, Size = 112, Pack = 8)] public struct ImGuiNextWindowData { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiNextWindowDataFlags Flags; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiCond PosCond; [FieldOffset(8)] // size = 4, padding = 0 public ImGuiCond SizeCond; [FieldOffset(12)] // size = 4, padding = 0 public ImGuiCond CollapsedCond; [FieldOffset(16)] // size = 8, padding = 0 public Vector2 PosVal; [FieldOffset(24)] // size = 8, padding = 0 public Vector2 PosPivotVal; [FieldOffset(32)] // size = 8, padding = 0 public Vector2 SizeVal; [FieldOffset(40)] // size = 8, padding = 0 public Vector2 ContentSizeVal; [FieldOffset(48)] // size = 8, padding = 0 public Vector2 ScrollVal; [FieldOffset(56)] // size = 1, padding = 3 public CBool CollapsedVal; [FieldOffset(60)] // size = 16, padding = 4 public ImRect SizeConstraintRect; [FieldOffset(80)] // size = 8, padding = 0 public ImGuiSizeCallback SizeCallback; [FieldOffset(88)] // size = 8, padding = 0 public void* SizeCallbackUserData; [FieldOffset(96)] // size = 4, padding = 0 public float BgAlphaVal; [FieldOffset(100)] // size = 8, padding = 4 public Vector2 MenuBarOffsetMinVal; } // Struct @ cimgui.h:76:34 [StructLayout(LayoutKind.Explicit, Size = 20, Pack = 4)] public struct ImGuiNextItemData { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiNextItemDataFlags Flags; [FieldOffset(4)] // size = 4, padding = 0 public float Width; [FieldOffset(8)] // size = 4, padding = 0 public ImGuiID FocusScopeId; [FieldOffset(12)] // size = 4, padding = 0 public ImGuiCond OpenCond; [FieldOffset(16)] // size = 1, padding = 3 public CBool OpenVal; } // Struct @ cimgui.h:81:34 [StructLayout(LayoutKind.Explicit, Size = 60, Pack = 4)] public struct ImGuiLastItemData { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiItemFlags InFlags; [FieldOffset(8)] // size = 4, padding = 0 public ImGuiItemStatusFlags StatusFlags; [FieldOffset(12)] // size = 16, padding = 0 public ImRect Rect; [FieldOffset(28)] // size = 16, padding = 0 public ImRect NavRect; [FieldOffset(44)] // size = 16, padding = 0 public ImRect DisplayRect; } // Struct @ cimgui.h:71:32 [StructLayout(LayoutKind.Explicit, Size = 18, Pack = 2)] public struct ImGuiStackSizes { [FieldOffset(0)] // size = 2, padding = 0 public short SizeOfIDStack; [FieldOffset(2)] // size = 2, padding = 0 public short SizeOfColorStack; [FieldOffset(4)] // size = 2, padding = 0 public short SizeOfStyleVarStack; [FieldOffset(6)] // size = 2, padding = 0 public short SizeOfFontStack; [FieldOffset(8)] // size = 2, padding = 0 public short SizeOfFocusScopeStack; [FieldOffset(10)] // size = 2, padding = 0 public short SizeOfGroupStack; [FieldOffset(12)] // size = 2, padding = 0 public short SizeOfItemFlagsStack; [FieldOffset(14)] // size = 2, padding = 0 public short SizeOfBeginPopupStack; [FieldOffset(16)] // size = 2, padding = 0 public short SizeOfDisabledStack; } // Struct @ cimgui.h:49:32 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImGuiPtrOrIndex { [FieldOffset(0)] // size = 8, padding = 0 public void* Ptr; [FieldOffset(8)] // size = 4, padding = 4 public int Index; } // Struct @ cimgui.h:48:38 [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] public struct ImGuiListClipperRange { [FieldOffset(0)] // size = 4, padding = 0 public int Min; [FieldOffset(4)] // size = 4, padding = 0 public int Max; [FieldOffset(8)] // size = 1, padding = 0 public CBool PosToIndexConvert; [FieldOffset(9)] // size = 1, padding = 0 public sbyte PosToIndexOffsetMin; [FieldOffset(10)] // size = 1, padding = 1 public sbyte PosToIndexOffsetMax; } // Struct @ cimgui.h:47:37 [StructLayout(LayoutKind.Explicit, Size = 40, Pack = 8)] public struct ImGuiListClipperData { [FieldOffset(0)] // size = 8, padding = 0 public ImGuiListClipper* ListClipper; [FieldOffset(8)] // size = 4, padding = 0 public float LossynessOffset; [FieldOffset(12)] // size = 4, padding = 0 public int StepNo; [FieldOffset(16)] // size = 4, padding = 4 public int ItemsFrozen; [FieldOffset(24)] // size = 16, padding = 0 public ImVector_ImGuiListClipperRange Ranges; } // Struct @ cimgui.h:79:33 [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 8)] public struct ImGuiNavItemData { [FieldOffset(0)] // size = 8, padding = 0 public ImGuiWindow* Window; [FieldOffset(8)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(12)] // size = 4, padding = 0 public ImGuiID FocusScopeId; [FieldOffset(16)] // size = 16, padding = 0 public ImRect RectRel; [FieldOffset(32)] // size = 4, padding = 0 public ImGuiItemFlags InFlags; [FieldOffset(36)] // size = 4, padding = 0 public float DistBox; [FieldOffset(40)] // size = 4, padding = 0 public float DistCenter; [FieldOffset(44)] // size = 4, padding = 0 public float DistAxial; } // Struct @ cimgui.h:75:35 [StructLayout(LayoutKind.Explicit, Size = 28, Pack = 4)] public struct ImGuiOldColumnData { [FieldOffset(0)] // size = 4, padding = 0 public float OffsetNorm; [FieldOffset(4)] // size = 4, padding = 0 public float OffsetNormBeforeResize; [FieldOffset(8)] // size = 4, padding = 0 public ImGuiOldColumnFlags Flags; [FieldOffset(12)] // size = 16, padding = 0 public ImRect ClipRect; } // Struct @ cimgui.h:74:32 [StructLayout(LayoutKind.Explicit, Size = 136, Pack = 8)] public struct ImGuiOldColumns { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiOldColumnFlags Flags; [FieldOffset(8)] // size = 1, padding = 0 public CBool IsFirstFrame; [FieldOffset(9)] // size = 1, padding = 2 public CBool IsBeingResized; [FieldOffset(12)] // size = 4, padding = 0 public int Current; [FieldOffset(16)] // size = 4, padding = 0 public int Count; [FieldOffset(20)] // size = 4, padding = 0 public float OffMinX; [FieldOffset(24)] // size = 4, padding = 0 public float OffMaxX; [FieldOffset(28)] // size = 4, padding = 0 public float LineMinY; [FieldOffset(32)] // size = 4, padding = 0 public float LineMaxY; [FieldOffset(36)] // size = 4, padding = 0 public float HostCursorPosY; [FieldOffset(40)] // size = 4, padding = 0 public float HostCursorMaxPosX; [FieldOffset(44)] // size = 16, padding = 0 public ImRect HostInitialClipRect; [FieldOffset(60)] // size = 16, padding = 0 public ImRect HostBackupClipRect; [FieldOffset(76)] // size = 16, padding = 4 public ImRect HostBackupParentWorkRect; [FieldOffset(96)] // size = 16, padding = 0 public ImVector_ImGuiOldColumnData Columns; [FieldOffset(112)] // size = 24, padding = 0 public ImDrawListSplitter Splitter; } // Struct @ cimgui.h:46:31 [StructLayout(LayoutKind.Explicit, Size = 176, Pack = 8)] public struct ImGuiViewportP { [FieldOffset(0)] // size = 36, padding = 0 public ImGuiViewport _ImGuiViewport; [FieldOffset(36)] // size = 8, padding = 4 public fixed uint _DrawListsLastFrame[8 / 4]; // int[2] public Span<int> DrawListsLastFrame { get { fixed (ImGuiViewportP* @this = &this) { var pointer = &@this->_DrawListsLastFrame[0]; var span = new Span<int>(pointer, 2); return span; } } } [FieldOffset(48)] // size = 16, padding = 0 public fixed ulong _DrawLists[16 / 8]; // ImDrawList*[2] public Span<nint> DrawLists { get { fixed (ImGuiViewportP* @this = &this) { var pointer = &@this->_DrawLists[0]; var span = new Span<nint>(pointer, 2); return span; } } } [FieldOffset(64)] // size = 48, padding = 0 public ImDrawData DrawDataP; [FieldOffset(112)] // size = 32, padding = 0 public ImDrawDataBuilder DrawDataBuilder; [FieldOffset(144)] // size = 8, padding = 0 public Vector2 WorkOffsetMin; [FieldOffset(152)] // size = 8, padding = 0 public Vector2 WorkOffsetMax; [FieldOffset(160)] // size = 8, padding = 0 public Vector2 BuildWorkOffsetMin; [FieldOffset(168)] // size = 8, padding = 0 public Vector2 BuildWorkOffsetMax; } // Struct @ cimgui.h:60:36 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] public struct ImGuiWindowSettings { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 4, padding = 0 public ImVec2ih Pos; [FieldOffset(8)] // size = 4, padding = 0 public ImVec2ih Size; [FieldOffset(12)] // size = 1, padding = 0 public CBool Collapsed; [FieldOffset(13)] // size = 1, padding = 2 public CBool WantApply; } // Struct @ cimgui.h:72:37 [StructLayout(LayoutKind.Explicit, Size = 72, Pack = 8)] public struct ImGuiSettingsHandler { [FieldOffset(0)] // size = 8, padding = 0 public CString TypeName; [FieldOffset(8)] // size = 4, padding = 4 public ImGuiID TypeHash; [FieldOffset(16)] // size = 8, padding = 0 public FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_Void ClearAllFn; [FieldOffset(24)] // size = 8, padding = 0 public FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_Void ReadInitFn; [FieldOffset(32)] // size = 8, padding = 0 public FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_CString_VoidPtr ReadOpenFn; [FieldOffset(40)] // size = 8, padding = 0 public FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_VoidPtr_CString_Void ReadLineFn; [FieldOffset(48)] // size = 8, padding = 0 public FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_Void ApplyAllFn; [FieldOffset(56)] // size = 8, padding = 0 public FnPtr_IMGUI_ImGuiContextPtr_ImGuiSettingsHandlerPtr_ImGuiTextBufferPtr_Void WriteAllFn; [FieldOffset(64)] // size = 8, padding = 0 public void* UserData; } // Struct @ cimgui.h:78:35 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] public struct ImGuiMetricsConfig { [FieldOffset(0)] // size = 1, padding = 0 public CBool ShowStackTool; [FieldOffset(1)] // size = 1, padding = 0 public CBool ShowWindowsRects; [FieldOffset(2)] // size = 1, padding = 0 public CBool ShowWindowsBeginOrder; [FieldOffset(3)] // size = 1, padding = 0 public CBool ShowTablesRects; [FieldOffset(4)] // size = 1, padding = 0 public CBool ShowDrawCmdMesh; [FieldOffset(5)] // size = 1, padding = 2 public CBool ShowDrawCmdBoundingBoxes; [FieldOffset(8)] // size = 4, padding = 0 public int ShowWindowsRectsType; [FieldOffset(12)] // size = 4, padding = 0 public int ShowTablesRectsType; } // Struct @ cimgui.h:45:36 [StructLayout(LayoutKind.Explicit, Size = 64, Pack = 4)] public struct ImGuiStackLevelInfo { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 1, padding = 0 public sbyte QueryFrameCount; [FieldOffset(5)] // size = 1, padding = 0 public CBool QuerySuccess; [FieldOffset(6)] // size = 58, padding = 0 public fixed byte _Desc[58 / 1]; // char[58] public string Desc { get { fixed (ImGuiStackLevelInfo* @this = &this) { var pointer = &@this->_Desc[0]; var cString = new CString(pointer); return Runtime.CStrings.String(cString); } } } } // Struct @ cimgui.h:44:31 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImGuiStackTool { [FieldOffset(0)] // size = 4, padding = 0 public int LastActiveFrame; [FieldOffset(4)] // size = 4, padding = 0 public int StackLevel; [FieldOffset(8)] // size = 4, padding = 4 public ImGuiID QueryId; [FieldOffset(16)] // size = 16, padding = 0 public ImVector_ImGuiStackLevelInfo Results; } // Struct @ cimgui.h:85:33 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImGuiContextHook { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID HookId; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiContextHookType Type; [FieldOffset(8)] // size = 4, padding = 4 public ImGuiID Owner; [FieldOffset(16)] // size = 8, padding = 0 public ImGuiContextHookCallback Callback; [FieldOffset(24)] // size = 8, padding = 0 public void* UserData; } // Struct @ cimgui.h:62:28 [StructLayout(LayoutKind.Explicit, Size = 944, Pack = 8)] public struct ImGuiWindow { [FieldOffset(0)] // size = 8, padding = 0 public CString Name; [FieldOffset(8)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(12)] // size = 4, padding = 0 public ImGuiWindowFlags Flags; [FieldOffset(16)] // size = 8, padding = 0 public Vector2 Pos; [FieldOffset(24)] // size = 8, padding = 0 public Vector2 Size; [FieldOffset(32)] // size = 8, padding = 0 public Vector2 SizeFull; [FieldOffset(40)] // size = 8, padding = 0 public Vector2 ContentSize; [FieldOffset(48)] // size = 8, padding = 0 public Vector2 ContentSizeIdeal; [FieldOffset(56)] // size = 8, padding = 0 public Vector2 ContentSizeExplicit; [FieldOffset(64)] // size = 8, padding = 0 public Vector2 WindowPadding; [FieldOffset(72)] // size = 4, padding = 0 public float WindowRounding; [FieldOffset(76)] // size = 4, padding = 0 public float WindowBorderSize; [FieldOffset(80)] // size = 4, padding = 0 public int NameBufLen; [FieldOffset(84)] // size = 4, padding = 0 public ImGuiID MoveId; [FieldOffset(88)] // size = 4, padding = 0 public ImGuiID ChildId; [FieldOffset(92)] // size = 8, padding = 0 public Vector2 Scroll; [FieldOffset(100)] // size = 8, padding = 0 public Vector2 ScrollMax; [FieldOffset(108)] // size = 8, padding = 0 public Vector2 ScrollTarget; [FieldOffset(116)] // size = 8, padding = 0 public Vector2 ScrollTargetCenterRatio; [FieldOffset(124)] // size = 8, padding = 0 public Vector2 ScrollTargetEdgeSnapDist; [FieldOffset(132)] // size = 8, padding = 0 public Vector2 ScrollbarSizes; [FieldOffset(140)] // size = 1, padding = 0 public CBool ScrollbarX; [FieldOffset(141)] // size = 1, padding = 0 public CBool ScrollbarY; [FieldOffset(142)] // size = 1, padding = 0 public CBool Active; [FieldOffset(143)] // size = 1, padding = 0 public CBool WasActive; [FieldOffset(144)] // size = 1, padding = 0 public CBool WriteAccessed; [FieldOffset(145)] // size = 1, padding = 0 public CBool Collapsed; [FieldOffset(146)] // size = 1, padding = 0 public CBool WantCollapseToggle; [FieldOffset(147)] // size = 1, padding = 0 public CBool SkipItems; [FieldOffset(148)] // size = 1, padding = 0 public CBool Appearing; [FieldOffset(149)] // size = 1, padding = 0 public CBool Hidden; [FieldOffset(150)] // size = 1, padding = 0 public CBool IsFallbackWindow; [FieldOffset(151)] // size = 1, padding = 0 public CBool IsExplicitChild; [FieldOffset(152)] // size = 1, padding = 0 public CBool HasCloseButton; [FieldOffset(153)] // size = 1, padding = 0 public sbyte ResizeBorderHeld; [FieldOffset(154)] // size = 2, padding = 0 public short BeginCount; [FieldOffset(156)] // size = 2, padding = 0 public short BeginOrderWithinParent; [FieldOffset(158)] // size = 2, padding = 0 public short BeginOrderWithinContext; [FieldOffset(160)] // size = 2, padding = 2 public short FocusOrder; [FieldOffset(164)] // size = 4, padding = 0 public ImGuiID PopupId; [FieldOffset(168)] // size = 1, padding = 0 public sbyte AutoFitFramesX; [FieldOffset(169)] // size = 1, padding = 0 public sbyte AutoFitFramesY; [FieldOffset(170)] // size = 1, padding = 0 public sbyte AutoFitChildAxises; [FieldOffset(171)] // size = 1, padding = 0 public CBool AutoFitOnlyGrows; [FieldOffset(172)] // size = 4, padding = 0 public ImGuiDir AutoPosLastDirection; [FieldOffset(176)] // size = 1, padding = 0 public sbyte HiddenFramesCanSkipItems; [FieldOffset(177)] // size = 1, padding = 0 public sbyte HiddenFramesCannotSkipItems; [FieldOffset(178)] // size = 1, padding = 0 public sbyte HiddenFramesForRenderOnly; [FieldOffset(179)] // size = 1, padding = 0 public sbyte DisableInputsFrames; [FieldOffset(180)] // size = 4, padding = -3 public ImGuiCond SetWindowPosAllowFlags; [FieldOffset(181)] // size = 4, padding = -3 public ImGuiCond SetWindowSizeAllowFlags; [FieldOffset(182)] // size = 4, padding = -2 public ImGuiCond SetWindowCollapsedAllowFlags; [FieldOffset(184)] // size = 8, padding = 0 public Vector2 SetWindowPosVal; [FieldOffset(192)] // size = 8, padding = 0 public Vector2 SetWindowPosPivot; [FieldOffset(200)] // size = 16, padding = 0 public ImVector_ImGuiID IDStack; [FieldOffset(216)] // size = 232, padding = 0 public ImGuiWindowTempData DC; [FieldOffset(448)] // size = 16, padding = 0 public ImRect OuterRectClipped; [FieldOffset(464)] // size = 16, padding = 0 public ImRect InnerRect; [FieldOffset(480)] // size = 16, padding = 0 public ImRect InnerClipRect; [FieldOffset(496)] // size = 16, padding = 0 public ImRect WorkRect; [FieldOffset(512)] // size = 16, padding = 0 public ImRect ParentWorkRect; [FieldOffset(528)] // size = 16, padding = 0 public ImRect ClipRect; [FieldOffset(544)] // size = 16, padding = 0 public ImRect ContentRegionRect; [FieldOffset(560)] // size = 4, padding = 0 public ImVec2ih HitTestHoleSize; [FieldOffset(564)] // size = 4, padding = 0 public ImVec2ih HitTestHoleOffset; [FieldOffset(568)] // size = 4, padding = 0 public int LastFrameActive; [FieldOffset(572)] // size = 4, padding = 0 public float LastTimeActive; [FieldOffset(576)] // size = 4, padding = 4 public float ItemWidthDefault; [FieldOffset(584)] // size = 16, padding = 0 public ImGuiStorage StateStorage; [FieldOffset(600)] // size = 16, padding = 0 public ImVector_ImGuiOldColumns ColumnsStorage; [FieldOffset(616)] // size = 4, padding = 0 public float FontWindowScale; [FieldOffset(620)] // size = 4, padding = 0 public int SettingsOffset; [FieldOffset(624)] // size = 8, padding = 0 public ImDrawList* DrawList; [FieldOffset(632)] // size = 200, padding = 0 public ImDrawList DrawListInst; [FieldOffset(832)] // size = 8, padding = 0 public ImGuiWindow* ParentWindow; [FieldOffset(840)] // size = 8, padding = 0 public ImGuiWindow* ParentWindowInBeginStack; [FieldOffset(848)] // size = 8, padding = 0 public ImGuiWindow* RootWindow; [FieldOffset(856)] // size = 8, padding = 0 public ImGuiWindow* RootWindowPopupTree; [FieldOffset(864)] // size = 8, padding = 0 public ImGuiWindow* RootWindowForTitleBarHighlight; [FieldOffset(872)] // size = 8, padding = 0 public ImGuiWindow* RootWindowForNav; [FieldOffset(880)] // size = 8, padding = 0 public ImGuiWindow* NavLastChildNavWindow; [FieldOffset(888)] // size = 8, padding = 0 public fixed uint _NavLastIds[8 / 4]; // ImGuiID[2] public Span<ImGuiID> NavLastIds { get { fixed (ImGuiWindow* @this = &this) { var pointer = &@this->_NavLastIds[0]; var span = new Span<ImGuiID>(pointer, 2); return span; } } } [FieldOffset(896)] // size = 32, padding = 0 public fixed uint _NavRectRel[32 / 4]; // ImRect[2] public Span<ImRect> NavRectRel { get { fixed (ImGuiWindow* @this = &this) { var pointer = &@this->_NavRectRel[0]; var span = new Span<ImRect>(pointer, 2); return span; } } } [FieldOffset(928)] // size = 4, padding = 0 public int MemoryDrawListIdxCapacity; [FieldOffset(932)] // size = 4, padding = 0 public int MemoryDrawListVtxCapacity; [FieldOffset(936)] // size = 1, padding = 7 public CBool MemoryCompacted; } // Struct @ cimgui.h:68:29 [StructLayout(LayoutKind.Explicit, Size = 40, Pack = 4)] public struct ImGuiTabItem { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiTabItemFlags Flags; [FieldOffset(8)] // size = 4, padding = 0 public int LastFrameVisible; [FieldOffset(12)] // size = 4, padding = 0 public int LastFrameSelected; [FieldOffset(16)] // size = 4, padding = 0 public float Offset; [FieldOffset(20)] // size = 4, padding = 0 public float Width; [FieldOffset(24)] // size = 4, padding = 0 public float ContentWidth; [FieldOffset(28)] // size = 4, padding = 0 public int NameOffset; [FieldOffset(32)] // size = 2, padding = 0 public short BeginOrder; [FieldOffset(34)] // size = 2, padding = 0 public short IndexDuringLayout; [FieldOffset(36)] // size = 1, padding = 3 public CBool WantClose; } // Struct @ cimgui.h:69:28 [StructLayout(LayoutKind.Explicit, Size = 152, Pack = 8)] public struct ImGuiTabBar { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImGuiTabItem Tabs; [FieldOffset(16)] // size = 4, padding = 0 public ImGuiTabBarFlags Flags; [FieldOffset(20)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(24)] // size = 4, padding = 0 public ImGuiID SelectedTabId; [FieldOffset(28)] // size = 4, padding = 0 public ImGuiID NextSelectedTabId; [FieldOffset(32)] // size = 4, padding = 0 public ImGuiID VisibleTabId; [FieldOffset(36)] // size = 4, padding = 0 public int CurrFrameVisible; [FieldOffset(40)] // size = 4, padding = 0 public int PrevFrameVisible; [FieldOffset(44)] // size = 16, padding = 0 public ImRect BarRect; [FieldOffset(60)] // size = 4, padding = 0 public float CurrTabsContentsHeight; [FieldOffset(64)] // size = 4, padding = 0 public float PrevTabsContentsHeight; [FieldOffset(68)] // size = 4, padding = 0 public float WidthAllTabs; [FieldOffset(72)] // size = 4, padding = 0 public float WidthAllTabsIdeal; [FieldOffset(76)] // size = 4, padding = 0 public float ScrollingAnim; [FieldOffset(80)] // size = 4, padding = 0 public float ScrollingTarget; [FieldOffset(84)] // size = 4, padding = 0 public float ScrollingTargetDistToVisibility; [FieldOffset(88)] // size = 4, padding = 0 public float ScrollingSpeed; [FieldOffset(92)] // size = 4, padding = 0 public float ScrollingRectMinX; [FieldOffset(96)] // size = 4, padding = 0 public float ScrollingRectMaxX; [FieldOffset(100)] // size = 4, padding = 0 public ImGuiID ReorderRequestTabId; [FieldOffset(104)] // size = 2, padding = 0 public short ReorderRequestOffset; [FieldOffset(106)] // size = 1, padding = 0 public sbyte BeginCount; [FieldOffset(107)] // size = 1, padding = 0 public CBool WantLayout; [FieldOffset(108)] // size = 1, padding = 0 public CBool VisibleTabWasSubmitted; [FieldOffset(109)] // size = 1, padding = 0 public CBool TabsAddedNew; [FieldOffset(110)] // size = 2, padding = 0 public short TabsActiveCount; [FieldOffset(112)] // size = 2, padding = 2 public short LastTabItemIdx; [FieldOffset(116)] // size = 4, padding = 0 public float ItemSpacingY; [FieldOffset(120)] // size = 8, padding = 0 public Vector2 FramePadding; [FieldOffset(128)] // size = 8, padding = 0 public Vector2 BackupCursorPos; [FieldOffset(136)] // size = 16, padding = 0 public ImGuiTextBuffer TabsNames; } // Struct @ cimgui.h:66:33 [StructLayout(LayoutKind.Explicit, Size = 104, Pack = 4)] public struct ImGuiTableColumn { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiTableColumnFlags Flags; [FieldOffset(4)] // size = 4, padding = 0 public float WidthGiven; [FieldOffset(8)] // size = 4, padding = 0 public float MinX; [FieldOffset(12)] // size = 4, padding = 0 public float MaxX; [FieldOffset(16)] // size = 4, padding = 0 public float WidthRequest; [FieldOffset(20)] // size = 4, padding = 0 public float WidthAuto; [FieldOffset(24)] // size = 4, padding = 0 public float StretchWeight; [FieldOffset(28)] // size = 4, padding = 0 public float InitStretchWeightOrWidth; [FieldOffset(32)] // size = 16, padding = 0 public ImRect ClipRect; [FieldOffset(48)] // size = 4, padding = 0 public ImGuiID UserID; [FieldOffset(52)] // size = 4, padding = 0 public float WorkMinX; [FieldOffset(56)] // size = 4, padding = 0 public float WorkMaxX; [FieldOffset(60)] // size = 4, padding = 0 public float ItemWidth; [FieldOffset(64)] // size = 4, padding = 0 public float ContentMaxXFrozen; [FieldOffset(68)] // size = 4, padding = 0 public float ContentMaxXUnfrozen; [FieldOffset(72)] // size = 4, padding = 0 public float ContentMaxXHeadersUsed; [FieldOffset(76)] // size = 4, padding = 0 public float ContentMaxXHeadersIdeal; [FieldOffset(80)] // size = 2, padding = 0 public short NameOffset; [FieldOffset(82)] // size = 1, padding = 0 public ImGuiTableColumnIdx DisplayOrder; [FieldOffset(83)] // size = 1, padding = 0 public ImGuiTableColumnIdx IndexWithinEnabledSet; [FieldOffset(84)] // size = 1, padding = 0 public ImGuiTableColumnIdx PrevEnabledColumn; [FieldOffset(85)] // size = 1, padding = 0 public ImGuiTableColumnIdx NextEnabledColumn; [FieldOffset(86)] // size = 1, padding = 0 public ImGuiTableColumnIdx SortOrder; [FieldOffset(87)] // size = 1, padding = 0 public ImGuiTableDrawChannelIdx DrawChannelCurrent; [FieldOffset(88)] // size = 1, padding = 0 public ImGuiTableDrawChannelIdx DrawChannelFrozen; [FieldOffset(89)] // size = 1, padding = 0 public ImGuiTableDrawChannelIdx DrawChannelUnfrozen; [FieldOffset(90)] // size = 1, padding = 0 public CBool IsEnabled; [FieldOffset(91)] // size = 1, padding = 0 public CBool IsUserEnabled; [FieldOffset(92)] // size = 1, padding = 0 public CBool IsUserEnabledNextFrame; [FieldOffset(93)] // size = 1, padding = 0 public CBool IsVisibleX; [FieldOffset(94)] // size = 1, padding = 0 public CBool IsVisibleY; [FieldOffset(95)] // size = 1, padding = 0 public CBool IsRequestOutput; [FieldOffset(96)] // size = 1, padding = 0 public CBool IsSkipItems; [FieldOffset(97)] // size = 1, padding = 0 public CBool IsPreserveWidthAuto; [FieldOffset(98)] // size = 1, padding = 0 public sbyte NavLayerCurrent; [FieldOffset(99)] // size = 1, padding = 0 public byte AutoFitQueue; [FieldOffset(100)] // size = 1, padding = 0 public byte CannotSkipItemsQueue; [FieldOffset(101)] // size = 1, padding = -1 public byte SortDirection; [FieldOffset(101)] // size = 1, padding = -1 public byte SortDirectionsAvailCount; [FieldOffset(101)] // size = 1, padding = 0 public byte SortDirectionsAvailMask; [FieldOffset(102)] // size = 1, padding = 1 public byte SortDirectionsAvailList; } // Struct @ cimgui.h:67:27 [StructLayout(LayoutKind.Explicit, Size = 520, Pack = 8)] public struct ImGuiTable { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiTableFlags Flags; [FieldOffset(8)] // size = 8, padding = 0 public void* RawData; [FieldOffset(16)] // size = 8, padding = 0 public ImGuiTableTempData* TempData; [FieldOffset(24)] // size = 16, padding = 0 public ImSpan_ImGuiTableColumn Columns; [FieldOffset(40)] // size = 16, padding = 0 public ImSpan_ImGuiTableColumnIdx DisplayOrderToIndex; [FieldOffset(56)] // size = 16, padding = 0 public ImSpan_ImGuiTableCellData RowCellData; [FieldOffset(72)] // size = 8, padding = 0 public ulong EnabledMaskByDisplayOrder; [FieldOffset(80)] // size = 8, padding = 0 public ulong EnabledMaskByIndex; [FieldOffset(88)] // size = 8, padding = 0 public ulong VisibleMaskByIndex; [FieldOffset(96)] // size = 8, padding = 0 public ulong RequestOutputMaskByIndex; [FieldOffset(104)] // size = 4, padding = 0 public ImGuiTableFlags SettingsLoadedFlags; [FieldOffset(108)] // size = 4, padding = 0 public int SettingsOffset; [FieldOffset(112)] // size = 4, padding = 0 public int LastFrameActive; [FieldOffset(116)] // size = 4, padding = 0 public int ColumnsCount; [FieldOffset(120)] // size = 4, padding = 0 public int CurrentRow; [FieldOffset(124)] // size = 4, padding = 0 public int CurrentColumn; [FieldOffset(128)] // size = 2, padding = 0 public short InstanceCurrent; [FieldOffset(130)] // size = 2, padding = 0 public short InstanceInteracted; [FieldOffset(132)] // size = 4, padding = 0 public float RowPosY1; [FieldOffset(136)] // size = 4, padding = 0 public float RowPosY2; [FieldOffset(140)] // size = 4, padding = 0 public float RowMinHeight; [FieldOffset(144)] // size = 4, padding = 0 public float RowTextBaseline; [FieldOffset(148)] // size = 4, padding = 0 public float RowIndentOffsetX; [FieldOffset(152)] // size = 4, padding = -2 public ImGuiTableRowFlags RowFlags; [FieldOffset(154)] // size = 4, padding = -2 public ImGuiTableRowFlags LastRowFlags; [FieldOffset(156)] // size = 4, padding = 0 public int RowBgColorCounter; [FieldOffset(160)] // size = 8, padding = 0 public fixed uint _RowBgColor[8 / 4]; // ImU32[2] public Span<uint> RowBgColor { get { fixed (ImGuiTable* @this = &this) { var pointer = &@this->_RowBgColor[0]; var span = new Span<uint>(pointer, 2); return span; } } } [FieldOffset(168)] // size = 4, padding = 0 public uint BorderColorStrong; [FieldOffset(172)] // size = 4, padding = 0 public uint BorderColorLight; [FieldOffset(176)] // size = 4, padding = 0 public float BorderX1; [FieldOffset(180)] // size = 4, padding = 0 public float BorderX2; [FieldOffset(184)] // size = 4, padding = 0 public float HostIndentX; [FieldOffset(188)] // size = 4, padding = 0 public float MinColumnWidth; [FieldOffset(192)] // size = 4, padding = 0 public float OuterPaddingX; [FieldOffset(196)] // size = 4, padding = 0 public float CellPaddingX; [FieldOffset(200)] // size = 4, padding = 0 public float CellPaddingY; [FieldOffset(204)] // size = 4, padding = 0 public float CellSpacingX1; [FieldOffset(208)] // size = 4, padding = 0 public float CellSpacingX2; [FieldOffset(212)] // size = 4, padding = 0 public float LastOuterHeight; [FieldOffset(216)] // size = 4, padding = 0 public float LastFirstRowHeight; [FieldOffset(220)] // size = 4, padding = 0 public float InnerWidth; [FieldOffset(224)] // size = 4, padding = 0 public float ColumnsGivenWidth; [FieldOffset(228)] // size = 4, padding = 0 public float ColumnsAutoFitWidth; [FieldOffset(232)] // size = 4, padding = 0 public float ResizedColumnNextWidth; [FieldOffset(236)] // size = 4, padding = 0 public float ResizeLockMinContentsX2; [FieldOffset(240)] // size = 4, padding = 0 public float RefScale; [FieldOffset(244)] // size = 16, padding = 0 public ImRect OuterRect; [FieldOffset(260)] // size = 16, padding = 0 public ImRect InnerRect; [FieldOffset(276)] // size = 16, padding = 0 public ImRect WorkRect; [FieldOffset(292)] // size = 16, padding = 0 public ImRect InnerClipRect; [FieldOffset(308)] // size = 16, padding = 0 public ImRect BgClipRect; [FieldOffset(324)] // size = 16, padding = 0 public ImRect Bg0ClipRectForDrawCmd; [FieldOffset(340)] // size = 16, padding = 0 public ImRect Bg2ClipRectForDrawCmd; [FieldOffset(356)] // size = 16, padding = 0 public ImRect HostClipRect; [FieldOffset(372)] // size = 16, padding = 4 public ImRect HostBackupInnerClipRect; [FieldOffset(392)] // size = 8, padding = 0 public ImGuiWindow* OuterWindow; [FieldOffset(400)] // size = 8, padding = 0 public ImGuiWindow* InnerWindow; [FieldOffset(408)] // size = 16, padding = 0 public ImGuiTextBuffer ColumnsNames; [FieldOffset(424)] // size = 8, padding = 0 public ImDrawListSplitter* DrawSplitter; [FieldOffset(432)] // size = 12, padding = 4 public ImGuiTableColumnSortSpecs SortSpecsSingle; [FieldOffset(448)] // size = 16, padding = 0 public ImVector_ImGuiTableColumnSortSpecs SortSpecsMulti; [FieldOffset(464)] // size = 16, padding = 0 public ImGuiTableSortSpecs SortSpecs; [FieldOffset(480)] // size = 1, padding = 0 public ImGuiTableColumnIdx SortSpecsCount; [FieldOffset(481)] // size = 1, padding = 0 public ImGuiTableColumnIdx ColumnsEnabledCount; [FieldOffset(482)] // size = 1, padding = 0 public ImGuiTableColumnIdx ColumnsEnabledFixedCount; [FieldOffset(483)] // size = 1, padding = 0 public ImGuiTableColumnIdx DeclColumnsCount; [FieldOffset(484)] // size = 1, padding = 0 public ImGuiTableColumnIdx HoveredColumnBody; [FieldOffset(485)] // size = 1, padding = 0 public ImGuiTableColumnIdx HoveredColumnBorder; [FieldOffset(486)] // size = 1, padding = 0 public ImGuiTableColumnIdx AutoFitSingleColumn; [FieldOffset(487)] // size = 1, padding = 0 public ImGuiTableColumnIdx ResizedColumn; [FieldOffset(488)] // size = 1, padding = 0 public ImGuiTableColumnIdx LastResizedColumn; [FieldOffset(489)] // size = 1, padding = 0 public ImGuiTableColumnIdx HeldHeaderColumn; [FieldOffset(490)] // size = 1, padding = 0 public ImGuiTableColumnIdx ReorderColumn; [FieldOffset(491)] // size = 1, padding = 0 public ImGuiTableColumnIdx ReorderColumnDir; [FieldOffset(492)] // size = 1, padding = 0 public ImGuiTableColumnIdx LeftMostEnabledColumn; [FieldOffset(493)] // size = 1, padding = 0 public ImGuiTableColumnIdx RightMostEnabledColumn; [FieldOffset(494)] // size = 1, padding = 0 public ImGuiTableColumnIdx LeftMostStretchedColumn; [FieldOffset(495)] // size = 1, padding = 0 public ImGuiTableColumnIdx RightMostStretchedColumn; [FieldOffset(496)] // size = 1, padding = 0 public ImGuiTableColumnIdx ContextPopupColumn; [FieldOffset(497)] // size = 1, padding = 0 public ImGuiTableColumnIdx FreezeRowsRequest; [FieldOffset(498)] // size = 1, padding = 0 public ImGuiTableColumnIdx FreezeRowsCount; [FieldOffset(499)] // size = 1, padding = 0 public ImGuiTableColumnIdx FreezeColumnsRequest; [FieldOffset(500)] // size = 1, padding = 0 public ImGuiTableColumnIdx FreezeColumnsCount; [FieldOffset(501)] // size = 1, padding = 0 public ImGuiTableColumnIdx RowCellDataCurrent; [FieldOffset(502)] // size = 1, padding = 0 public ImGuiTableDrawChannelIdx DummyDrawChannel; [FieldOffset(503)] // size = 1, padding = 0 public ImGuiTableDrawChannelIdx Bg2DrawChannelCurrent; [FieldOffset(504)] // size = 1, padding = 0 public ImGuiTableDrawChannelIdx Bg2DrawChannelUnfrozen; [FieldOffset(505)] // size = 1, padding = 0 public CBool IsLayoutLocked; [FieldOffset(506)] // size = 1, padding = 0 public CBool IsInsideRow; [FieldOffset(507)] // size = 1, padding = 0 public CBool IsInitializing; [FieldOffset(508)] // size = 1, padding = 0 public CBool IsSortSpecsDirty; [FieldOffset(509)] // size = 1, padding = 0 public CBool IsUsingHeaders; [FieldOffset(510)] // size = 1, padding = 0 public CBool IsContextPopupOpen; [FieldOffset(511)] // size = 1, padding = 0 public CBool IsSettingsRequestLoad; [FieldOffset(512)] // size = 1, padding = 0 public CBool IsSettingsDirty; [FieldOffset(513)] // size = 1, padding = 0 public CBool IsDefaultDisplayOrder; [FieldOffset(514)] // size = 1, padding = 0 public CBool IsResetAllRequest; [FieldOffset(515)] // size = 1, padding = 0 public CBool IsResetDisplayOrderRequest; [FieldOffset(516)] // size = 1, padding = 0 public CBool IsUnfrozenRows; [FieldOffset(517)] // size = 1, padding = 0 public CBool IsDefaultSizingPolicy; [FieldOffset(518)] // size = 1, padding = 0 public CBool MemoryCompacted; [FieldOffset(519)] // size = 1, padding = 0 public CBool HostSkipItems; } // Struct @ cimgui.h:65:35 [StructLayout(LayoutKind.Explicit, Size = 112, Pack = 8)] public struct ImGuiTableTempData { [FieldOffset(0)] // size = 4, padding = 0 public int TableIndex; [FieldOffset(4)] // size = 4, padding = 0 public float LastTimeActive; [FieldOffset(8)] // size = 8, padding = 0 public Vector2 UserOuterSize; [FieldOffset(16)] // size = 24, padding = 0 public ImDrawListSplitter DrawSplitter; [FieldOffset(40)] // size = 16, padding = 0 public ImRect HostBackupWorkRect; [FieldOffset(56)] // size = 16, padding = 0 public ImRect HostBackupParentWorkRect; [FieldOffset(72)] // size = 8, padding = 0 public Vector2 HostBackupPrevLineSize; [FieldOffset(80)] // size = 8, padding = 0 public Vector2 HostBackupCurrLineSize; [FieldOffset(88)] // size = 8, padding = 0 public Vector2 HostBackupCursorMaxPos; [FieldOffset(96)] // size = 4, padding = 0 public float HostBackupColumnsOffset; [FieldOffset(100)] // size = 4, padding = 0 public float HostBackupItemWidth; [FieldOffset(104)] // size = 4, padding = 4 public int HostBackupItemWidthStackSize; } // Struct @ cimgui.h:42:41 [StructLayout(LayoutKind.Explicit, Size = 12, Pack = 4)] public struct ImGuiTableColumnSettings { [FieldOffset(0)] // size = 4, padding = 0 public float WidthOrWeight; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiID UserID; [FieldOffset(8)] // size = 1, padding = 0 public ImGuiTableColumnIdx Index; [FieldOffset(9)] // size = 1, padding = 0 public ImGuiTableColumnIdx DisplayOrder; [FieldOffset(10)] // size = 1, padding = 0 public ImGuiTableColumnIdx SortOrder; [FieldOffset(11)] // size = 1, padding = -1 public byte SortDirection; [FieldOffset(11)] // size = 1, padding = -1 public byte IsEnabled; [FieldOffset(11)] // size = 1, padding = 0 public byte IsStretch; } // Struct @ cimgui.h:64:35 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] public struct ImGuiTableSettings { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID ID; [FieldOffset(4)] // size = 4, padding = 0 public ImGuiTableFlags SaveFlags; [FieldOffset(8)] // size = 4, padding = 0 public float RefScale; [FieldOffset(12)] // size = 1, padding = 0 public ImGuiTableColumnIdx ColumnsCount; [FieldOffset(13)] // size = 1, padding = 0 public ImGuiTableColumnIdx ColumnsCountMax; [FieldOffset(14)] // size = 1, padding = 1 public CBool WantApply; } // Struct @ cimgui.h:50:37 [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] public struct ImGuiShrinkWidthItem { [FieldOffset(0)] // size = 4, padding = 0 public int Index; [FieldOffset(4)] // size = 4, padding = 0 public float Width; } // Struct @ cimgui.h:84:34 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImGuiDataTypeInfo { [FieldOffset(0)] // size = 8, padding = 0 public ulong Size; [FieldOffset(8)] // size = 8, padding = 0 public CString Name; [FieldOffset(16)] // size = 8, padding = 0 public CString PrintFmt; [FieldOffset(24)] // size = 8, padding = 0 public CString ScanFmt; } // Struct @ cimgui.h:298:84 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiWindowPtr { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiWindow** Data; } // Struct @ cimgui.h:114:32 [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 8)] public struct ImFontBuilderIO { [FieldOffset(0)] // size = 8, padding = 0 public FnPtr_IMGUI_ImFontAtlasPtr_CBool FontBuilder_Build; } // Struct @ cimgui.h:299:98 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiWindowStackData { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiWindowStackData* Data; } // Struct @ cimgui.h:277:84 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiColorMod { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiColorMod* Data; } // Struct @ cimgui.h:292:84 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiStyleMod { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiStyleMod* Data; } // Struct @ cimgui.h:273:74 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImFontPtr { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImFont** Data; } // Struct @ cimgui.h:280:72 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiID { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiID* Data; } // Struct @ cimgui.h:281:86 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiItemFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiItemFlags* Data; } // Struct @ cimgui.h:279:86 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiGroupData { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiGroupData* Data; } // Struct @ cimgui.h:286:86 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiPopupData { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiPopupData* Data; } // Struct @ cimgui.h:297:90 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiViewportPPtr { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiViewportP** Data; } // Struct @ cimgui.h:307:84 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_unsigned_char { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ulong* Data; } // Struct @ cimgui.h:282:98 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiListClipperData { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiListClipperData* Data; } // Struct @ cimgui.h:295:94 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiTableTempData { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTableTempData* Data; } // Struct @ cimgui.h:1023:96 [StructLayout(LayoutKind.Explicit, Size = 40, Pack = 8)] public struct ImPool_ImGuiTable { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImGuiTable Buf; [FieldOffset(16)] // size = 16, padding = 0 public ImGuiStorage Map; [FieldOffset(32)] // size = 4, padding = 4 public ImPoolIdx FreeIdx; } // Struct @ cimgui.h:306:68 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_float { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public float* Data; } // Struct @ cimgui.h:268:84 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImDrawChannel { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImDrawChannel* Data; } // Struct @ cimgui.h:1021:98 [StructLayout(LayoutKind.Explicit, Size = 40, Pack = 8)] public struct ImPool_ImGuiTabBar { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImGuiTabBar Buf; [FieldOffset(16)] // size = 16, padding = 0 public ImGuiStorage Map; [FieldOffset(32)] // size = 4, padding = 4 public ImPoolIdx FreeIdx; } // Struct @ cimgui.h:287:88 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiPtrOrIndex { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiPtrOrIndex* Data; } // Struct @ cimgui.h:289:98 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiShrinkWidthItem { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiShrinkWidthItem* Data; } // Struct @ cimgui.h:305:66 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_char { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public CString Data; } // Struct @ cimgui.h:288:98 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiSettingsHandler { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiSettingsHandler* Data; } // Struct @ cimgui.h:264:86 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImChunkStream_ImGuiWindowSettings { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImGuiWindowSettings Buf; } // Struct @ cimgui.h:262:84 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImChunkStream_ImGuiTableSettings { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImGuiTableSettings Buf; } // Struct @ cimgui.h:278:90 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiContextHook { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiContextHook* Data; } // Struct @ cimgui.h:274:100 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImFontAtlasCustomRect { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImFontAtlasCustomRect* Data; } // Struct @ cimgui.h:275:82 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImFontConfig { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImFontConfig* Data; } // Struct @ cimgui.h:269:76 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImDrawCmd { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImDrawCmd* Data; } // Struct @ cimgui.h:270:76 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImDrawIdx { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImDrawIdx* Data; } // Struct @ cimgui.h:272:78 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImDrawVert { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImDrawVert* Data; } // Struct @ cimgui.h:117:27 [StructLayout(LayoutKind.Explicit, Size = 20, Pack = 4)] public struct ImDrawVert { [FieldOffset(0)] // size = 8, padding = 0 public Vector2 pos; [FieldOffset(8)] // size = 8, padding = 0 public Vector2 uv; [FieldOffset(16)] // size = 4, padding = 0 public uint col; } // Struct @ cimgui.h:303:70 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImVec4 { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public Vector4* Data; } // Struct @ cimgui.h:300:80 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImTextureID { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImTextureID* Data; } // Struct @ cimgui.h:302:70 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImVec2 { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public Vector2* Data; } // Struct @ cimgui.h:91:32 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImDrawCmdHeader { [FieldOffset(0)] // size = 16, padding = 0 public Vector4 ClipRect; [FieldOffset(16)] // size = 8, padding = 0 public ImTextureID TextureId; [FieldOffset(24)] // size = 4, padding = 4 public uint VtxOffset; } // Struct @ cimgui.h:103:38 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImGuiSizeCallbackData { [FieldOffset(0)] // size = 8, padding = 0 public void* UserData; [FieldOffset(8)] // size = 8, padding = 0 public Vector2 Pos; [FieldOffset(16)] // size = 8, padding = 0 public Vector2 CurrentSize; [FieldOffset(24)] // size = 8, padding = 0 public Vector2 DesiredSize; } // Struct @ cimgui.h:276:80 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImFontGlyph { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImFontGlyph* Data; } // Struct @ cimgui.h:291:90 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiStoragePair { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiStoragePair* Data; } // Struct @ cimgui.h:301:68 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImU32 { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public uint* Data; } // Struct @ cimgui.h:57:34 [StructLayout(LayoutKind.Explicit, Size = 3628, Pack = 4)] public struct STB_TexteditState { [FieldOffset(0)] // size = 4, padding = 0 public int cursor; [FieldOffset(4)] // size = 4, padding = 0 public int select_start; [FieldOffset(8)] // size = 4, padding = 0 public int select_end; [FieldOffset(12)] // size = 1, padding = 3 public byte insert_mode; [FieldOffset(16)] // size = 4, padding = 0 public int row_count_per_page; [FieldOffset(20)] // size = 1, padding = 0 public byte cursor_at_end_of_line; [FieldOffset(21)] // size = 1, padding = 0 public byte initialized; [FieldOffset(22)] // size = 1, padding = 0 public byte has_preferred_x; [FieldOffset(23)] // size = 1, padding = 0 public byte single_line; [FieldOffset(24)] // size = 1, padding = 0 public byte padding1; [FieldOffset(25)] // size = 1, padding = 0 public byte padding2; [FieldOffset(26)] // size = 1, padding = 1 public byte padding3; [FieldOffset(28)] // size = 4, padding = 0 public float preferred_x; [FieldOffset(32)] // size = 3596, padding = 0 public StbUndoState undostate; } // Struct @ cimgui.h:283:100 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiListClipperRange { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiListClipperRange* Data; } // Struct @ cimgui.h:284:94 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiOldColumnData { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiOldColumnData* Data; } // Struct @ cimgui.h:290:96 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiStackLevelInfo { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiStackLevelInfo* Data; } // Struct @ cimgui.h:61:36 [StructLayout(LayoutKind.Explicit, Size = 232, Pack = 8)] public struct ImGuiWindowTempData { [FieldOffset(0)] // size = 8, padding = 0 public Vector2 CursorPos; [FieldOffset(8)] // size = 8, padding = 0 public Vector2 CursorPosPrevLine; [FieldOffset(16)] // size = 8, padding = 0 public Vector2 CursorStartPos; [FieldOffset(24)] // size = 8, padding = 0 public Vector2 CursorMaxPos; [FieldOffset(32)] // size = 8, padding = 0 public Vector2 IdealMaxPos; [FieldOffset(40)] // size = 8, padding = 0 public Vector2 CurrLineSize; [FieldOffset(48)] // size = 8, padding = 0 public Vector2 PrevLineSize; [FieldOffset(56)] // size = 4, padding = 0 public float CurrLineTextBaseOffset; [FieldOffset(60)] // size = 4, padding = 0 public float PrevLineTextBaseOffset; [FieldOffset(64)] // size = 4, padding = 0 public float Indent; [FieldOffset(68)] // size = 4, padding = 0 public float ColumnsOffset; [FieldOffset(72)] // size = 4, padding = 0 public float GroupOffset; [FieldOffset(76)] // size = 8, padding = 0 public Vector2 CursorStartPosLossyness; [FieldOffset(84)] // size = 4, padding = 0 public ImGuiNavLayer NavLayerCurrent; [FieldOffset(88)] // size = 2, padding = 0 public short NavLayersActiveMask; [FieldOffset(90)] // size = 2, padding = 0 public short NavLayersActiveMaskNext; [FieldOffset(92)] // size = 4, padding = 0 public ImGuiID NavFocusScopeIdCurrent; [FieldOffset(96)] // size = 1, padding = 0 public CBool NavHideHighlightOneFrame; [FieldOffset(97)] // size = 1, padding = 0 public CBool NavHasScroll; [FieldOffset(98)] // size = 1, padding = 1 public CBool MenuBarAppending; [FieldOffset(100)] // size = 8, padding = 0 public Vector2 MenuBarOffset; [FieldOffset(108)] // size = 28, padding = 0 public ImGuiMenuColumns MenuColumns; [FieldOffset(136)] // size = 4, padding = 0 public int TreeDepth; [FieldOffset(140)] // size = 4, padding = 0 public uint TreeJumpToParentOnPopMask; [FieldOffset(144)] // size = 16, padding = 0 public ImVector_ImGuiWindowPtr ChildWindows; [FieldOffset(160)] // size = 8, padding = 0 public ImGuiStorage* StateStorage; [FieldOffset(168)] // size = 8, padding = 0 public ImGuiOldColumns* CurrentColumns; [FieldOffset(176)] // size = 4, padding = 0 public int CurrentTableIdx; [FieldOffset(180)] // size = 4, padding = 0 public ImGuiLayoutType LayoutType; [FieldOffset(184)] // size = 4, padding = 0 public ImGuiLayoutType ParentLayoutType; [FieldOffset(188)] // size = 4, padding = 0 public float ItemWidth; [FieldOffset(192)] // size = 4, padding = 4 public float TextWrapPos; [FieldOffset(200)] // size = 16, padding = 0 public ImVector_float ItemWidthStack; [FieldOffset(216)] // size = 16, padding = 0 public ImVector_float TextWrapPosStack; } // Struct @ cimgui.h:285:88 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiOldColumns { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiOldColumns* Data; } // Struct @ cimgui.h:293:82 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiTabItem { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTabItem* Data; } // Struct @ cimgui.h:266:92 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImSpan_ImGuiTableColumn { [FieldOffset(0)] // size = 8, padding = 0 public ImGuiTableColumn* Data; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTableColumn* DataEnd; } // Struct @ cimgui.h:267:101 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImSpan_ImGuiTableColumnIdx { [FieldOffset(0)] // size = 8, padding = 0 public ImGuiTableColumnIdx* Data; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTableColumnIdx* DataEnd; } // Struct @ cimgui.h:265:98 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImSpan_ImGuiTableCellData { [FieldOffset(0)] // size = 8, padding = 0 public ImGuiTableCellData* Data; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTableCellData* DataEnd; } // Struct @ cimgui.h:294:108 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiTableColumnSortSpecs { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTableColumnSortSpecs* Data; } // Struct @ cimgui.h:51:37 [StructLayout(LayoutKind.Explicit, Size = 88, Pack = 8)] public struct ImGuiWindowStackData { [FieldOffset(0)] // size = 8, padding = 0 public ImGuiWindow* Window; [FieldOffset(8)] // size = 60, padding = 0 public ImGuiLastItemData ParentLastItemDataBackup; [FieldOffset(68)] // size = 18, padding = 2 public ImGuiStackSizes StackSizesOnBegin; } // Struct @ cimgui.h:86:30 [StructLayout(LayoutKind.Explicit, Size = 20, Pack = 4)] public struct ImGuiColorMod { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiCol Col; [FieldOffset(4)] // size = 16, padding = 0 public Vector4 BackupValue; } // Struct @ cimgui.h:83:31 [StructLayout(LayoutKind.Explicit, Size = 48, Pack = 4)] public struct ImGuiGroupData { [FieldOffset(0)] // size = 4, padding = 0 public ImGuiID WindowID; [FieldOffset(4)] // size = 8, padding = 0 public Vector2 BackupCursorPos; [FieldOffset(12)] // size = 8, padding = 0 public Vector2 BackupCursorMaxPos; [FieldOffset(20)] // size = 4, padding = 0 public float BackupIndent; [FieldOffset(24)] // size = 4, padding = 0 public float BackupGroupOffset; [FieldOffset(28)] // size = 8, padding = 0 public Vector2 BackupCurrLineSize; [FieldOffset(36)] // size = 4, padding = 0 public float BackupCurrLineTextBaseOffset; [FieldOffset(40)] // size = 4, padding = 0 public ImGuiID BackupActiveIdIsAlive; [FieldOffset(44)] // size = 1, padding = 0 public CBool BackupActiveIdPreviousFrameIsAlive; [FieldOffset(45)] // size = 1, padding = 0 public CBool BackupHoveredIdIsAlive; [FieldOffset(46)] // size = 1, padding = 1 public CBool EmitItem; } // Struct @ cimgui.h:1022:78 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiTable { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTable* Data; } // Struct @ cimgui.h:123:30 [StructLayout(LayoutKind.Explicit, Size = 32, Pack = 8)] public struct ImDrawChannel { [FieldOffset(0)] // size = 16, padding = 0 public ImVector_ImDrawCmd _CmdBuffer; [FieldOffset(16)] // size = 16, padding = 0 public ImVector_ImDrawIdx _IdxBuffer; } // Struct @ cimgui.h:1020:80 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiTabBar { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTabBar* Data; } // Struct @ cimgui.h:263:96 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiWindowSettings { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiWindowSettings* Data; } // Struct @ cimgui.h:261:94 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImGuiTableSettings { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImGuiTableSettings* Data; } // Struct @ cimgui.h:271:82 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 8)] public struct ImVector_ImDrawListPtr { [FieldOffset(0)] // size = 4, padding = 0 public int Size; [FieldOffset(4)] // size = 4, padding = 0 public int Capacity; [FieldOffset(8)] // size = 8, padding = 0 public ImDrawList** Data; } // Struct @ cimgui.h:58:29 [StructLayout(LayoutKind.Explicit, Size = 3596, Pack = 4)] public struct StbUndoState { [FieldOffset(0)] // size = 1584, padding = 0 public fixed uint _undo_rec[1584 / 4]; // StbUndoRecord[99] public Span<StbUndoRecord> undo_rec { get { fixed (StbUndoState* @this = &this) { var pointer = &@this->_undo_rec[0]; var span = new Span<StbUndoRecord>(pointer, 99); return span; } } } [FieldOffset(1584)] // size = 1998, padding = 0 public fixed ushort _undo_char[1998 / 2]; // ImWchar[999] public Span<byte> undo_char { get { fixed (StbUndoState* @this = &this) { var pointer = &@this->_undo_char[0]; var span = new Span<byte>(pointer, 999); return span; } } } [FieldOffset(3582)] // size = 2, padding = 0 public short undo_point; [FieldOffset(3584)] // size = 2, padding = 2 public short redo_point; [FieldOffset(3588)] // size = 4, padding = 0 public int undo_char_point; [FieldOffset(3592)] // size = 4, padding = 0 public int redo_char_point; } // Struct @ cimgui.h:43:35 [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 4)] public struct ImGuiTableCellData { [FieldOffset(0)] // size = 4, padding = 0 public uint BgColor; [FieldOffset(4)] // size = 1, padding = 3 public ImGuiTableColumnIdx Column; } // Struct @ cimgui.h:59:30 [StructLayout(LayoutKind.Explicit, Size = 16, Pack = 4)] public struct StbUndoRecord { [FieldOffset(0)] // size = 4, padding = 0 public int where; [FieldOffset(4)] // size = 4, padding = 0 public int insert_length; [FieldOffset(8)] // size = 4, padding = 0 public int delete_length; [FieldOffset(12)] // size = 4, padding = 0 public int char_storage; } // Typedef @ cimgui.h:187:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiWindowFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiWindowFlags data) => data.Data; public static implicit operator ImGuiWindowFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:190:22 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiID { [FieldOffset(0)] // size = 4, padding = 0 public uint Data; public static implicit operator uint(ImGuiID data) => data.Data; public static implicit operator ImGuiID(uint data) => new() { Data = data }; } // Typedef @ cimgui.h:173:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiFocusedFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiFocusedFlags data) => data.Data; public static implicit operator ImGuiFocusedFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:174:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiHoveredFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiHoveredFlags data) => data.Data; public static implicit operator ImGuiHoveredFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:154:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiCond { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiCond data) => data.Data; public static implicit operator ImGuiCond(int data) => new() { Data = data }; } // Typedef @ cimgui.h:153:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiCol { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiCol data) => data.Data; public static implicit operator ImGuiCol(int data) => new() { Data = data }; } // Typedef @ cimgui.h:162:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiStyleVar { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiStyleVar data) => data.Data; public static implicit operator ImGuiStyleVar(int data) => new() { Data = data }; } // Typedef @ cimgui.h:168:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiButtonFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiButtonFlags data) => data.Data; public static implicit operator ImGuiButtonFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:156:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiDir { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiDir data) => data.Data; public static implicit operator ImGuiDir(int data) => new() { Data = data }; } // Typedef @ cimgui.h:188:15 [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 8)] public struct ImTextureID { [FieldOffset(0)] // size = 8, padding = 0 public void* Data; public static implicit operator void*(ImTextureID data) => data.Data; public static implicit operator ImTextureID(void* data) => new() { Data = data }; } // Typedef @ cimgui.h:171:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiComboFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiComboFlags data) => data.Data; public static implicit operator ImGuiComboFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:179:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiSliderFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiSliderFlags data) => data.Data; public static implicit operator ImGuiSliderFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:155:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiDataType { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiDataType data) => data.Data; public static implicit operator ImGuiDataType(int data) => new() { Data = data }; } // Typedef @ cimgui.h:175:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiInputTextFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiInputTextFlags data) => data.Data; public static implicit operator ImGuiInputTextFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:169:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiColorEditFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiColorEditFlags data) => data.Data; public static implicit operator ImGuiColorEditFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:185:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTreeNodeFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTreeNodeFlags data) => data.Data; public static implicit operator ImGuiTreeNodeFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:178:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiSelectableFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiSelectableFlags data) => data.Data; public static implicit operator ImGuiSelectableFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:177:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiPopupFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiPopupFlags data) => data.Data; public static implicit operator ImGuiPopupFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:182:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTableFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTableFlags data) => data.Data; public static implicit operator ImGuiTableFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:184:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTableRowFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTableRowFlags data) => data.Data; public static implicit operator ImGuiTableRowFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:183:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTableColumnFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTableColumnFlags data) => data.Data; public static implicit operator ImGuiTableColumnFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:163:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTableBgTarget { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTableBgTarget data) => data.Data; public static implicit operator ImGuiTableBgTarget(int data) => new() { Data = data }; } // Typedef @ cimgui.h:180:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTabBarFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTabBarFlags data) => data.Data; public static implicit operator ImGuiTabBarFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:181:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTabItemFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTabItemFlags data) => data.Data; public static implicit operator ImGuiTabItemFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:172:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiDragDropFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiDragDropFlags data) => data.Data; public static implicit operator ImGuiDragDropFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:159:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiMouseButton { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiMouseButton data) => data.Data; public static implicit operator ImGuiMouseButton(int data) => new() { Data = data }; } // Typedef @ cimgui.h:157:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiKey { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiKey data) => data.Data; public static implicit operator ImGuiKey(int data) => new() { Data = data }; } // Typedef @ cimgui.h:160:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiMouseCursor { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiMouseCursor data) => data.Data; public static implicit operator ImGuiMouseCursor(int data) => new() { Data = data }; } // Typedef @ cimgui.h:164:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImDrawFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImDrawFlags data) => data.Data; public static implicit operator ImDrawFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:189:24 [StructLayout(LayoutKind.Explicit, Size = 2, Pack = 2)] public struct ImDrawIdx { [FieldOffset(0)] // size = 2, padding = 0 public ushort Data; public static implicit operator ushort(ImDrawIdx data) => data.Data; public static implicit operator ImDrawIdx(ushort data) => new() { Data = data }; } // Typedef @ cimgui.h:255:15 [StructLayout(LayoutKind.Explicit, Size = 8, Pack = 8)] public struct ImFileHandle { [FieldOffset(0)] // size = 8, padding = 0 public nint Data; public static implicit operator nint(ImFileHandle data) => data.Data; public static implicit operator ImFileHandle(nint data) => new() { Data = data }; } // Typedef @ cimgui.h:249:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiScrollFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiScrollFlags data) => data.Data; public static implicit operator ImGuiScrollFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:242:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiItemStatusFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiItemStatusFlags data) => data.Data; public static implicit operator ImGuiItemStatusFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:241:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiItemFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiItemFlags data) => data.Data; public static implicit operator ImGuiItemFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:252:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTooltipFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTooltipFlags data) => data.Data; public static implicit operator ImGuiTooltipFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:246:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiNavMoveFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiNavMoveFlags data) => data.Data; public static implicit operator ImGuiNavMoveFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:158:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiNavInput { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiNavInput data) => data.Data; public static implicit operator ImGuiNavInput(int data) => new() { Data = data }; } // Typedef @ cimgui.h:245:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiNavDirSourceFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiNavDirSourceFlags data) => data.Data; public static implicit operator ImGuiNavDirSourceFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:176:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiKeyModFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiKeyModFlags data) => data.Data; public static implicit operator ImGuiKeyModFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:243:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiOldColumnFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiOldColumnFlags data) => data.Data; public static implicit operator ImGuiOldColumnFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:161:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiSortDirection { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiSortDirection data) => data.Data; public static implicit operator ImGuiSortDirection(int data) => new() { Data = data }; } // Typedef @ cimgui.h:244:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiNavHighlightFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiNavHighlightFlags data) => data.Data; public static implicit operator ImGuiNavHighlightFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:251:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiTextFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiTextFlags data) => data.Data; public static implicit operator ImGuiTextFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:250:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiSeparatorFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiSeparatorFlags data) => data.Data; public static implicit operator ImGuiSeparatorFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:240:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiActivateFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiActivateFlags data) => data.Data; public static implicit operator ImGuiActivateFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:166:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImFontAtlasFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImFontAtlasFlags data) => data.Data; public static implicit operator ImFontAtlasFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:170:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiConfigFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiConfigFlags data) => data.Data; public static implicit operator ImGuiConfigFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:167:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiBackendFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiBackendFlags data) => data.Data; public static implicit operator ImGuiBackendFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:165:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImDrawListFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImDrawListFlags data) => data.Data; public static implicit operator ImDrawListFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:186:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiViewportFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiViewportFlags data) => data.Data; public static implicit operator ImGuiViewportFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:239:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiLayoutType { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiLayoutType data) => data.Data; public static implicit operator ImGuiLayoutType(int data) => new() { Data = data }; } // Typedef @ cimgui.h:248:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiNextWindowDataFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiNextWindowDataFlags data) => data.Data; public static implicit operator ImGuiNextWindowDataFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:247:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImGuiNextItemDataFlags { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImGuiNextItemDataFlags data) => data.Data; public static implicit operator ImGuiNextItemDataFlags(int data) => new() { Data = data }; } // Typedef @ cimgui.h:258:14 [StructLayout(LayoutKind.Explicit, Size = 1, Pack = 1)] public struct ImGuiTableColumnIdx { [FieldOffset(0)] // size = 1, padding = 0 public sbyte Data; public static implicit operator sbyte(ImGuiTableColumnIdx data) => data.Data; public static implicit operator ImGuiTableColumnIdx(sbyte data) => new() { Data = data }; } // Typedef @ cimgui.h:259:14 [StructLayout(LayoutKind.Explicit, Size = 1, Pack = 1)] public struct ImGuiTableDrawChannelIdx { [FieldOffset(0)] // size = 1, padding = 0 public byte Data; public static implicit operator byte(ImGuiTableDrawChannelIdx data) => data.Data; public static implicit operator ImGuiTableDrawChannelIdx(byte data) => new() { Data = data }; } // Typedef @ cimgui.h:256:13 [StructLayout(LayoutKind.Explicit, Size = 4, Pack = 4)] public struct ImPoolIdx { [FieldOffset(0)] // size = 4, padding = 0 public int Data; public static implicit operator int(ImPoolIdx data) => data.Data; public static implicit operator ImPoolIdx(int data) => new() { Data = data }; } // Enum @ cimgui.h:1761:288 public enum ImGuiContextHookType : int { ImGuiContextHookType_NewFramePre = 0, ImGuiContextHookType_NewFramePost = 1, ImGuiContextHookType_EndFramePre = 2, ImGuiContextHookType_EndFramePost = 3, ImGuiContextHookType_RenderPre = 4, ImGuiContextHookType_RenderPost = 5, ImGuiContextHookType_Shutdown = 6, ImGuiContextHookType_PendingRemoval_ = 7 } // Enum @ cimgui.h:1393:2 public enum ImGuiLogType : int { ImGuiLogType_None = 0, ImGuiLogType_TTY = 1, ImGuiLogType_File = 2, ImGuiLogType_Buffer = 3, ImGuiLogType_Clipboard = 4 } // Enum @ cimgui.h:1424:2 public enum ImGuiPopupPositionPolicy : int { ImGuiPopupPositionPolicy_Default = 0, ImGuiPopupPositionPolicy_ComboBox = 1, ImGuiPopupPositionPolicy_Tooltip = 2 } // Enum @ cimgui.h:1419:2 public enum ImGuiInputReadMode : int { ImGuiInputReadMode_Down = 0, ImGuiInputReadMode_Pressed = 1, ImGuiInputReadMode_Released = 2, ImGuiInputReadMode_Repeat = 3, ImGuiInputReadMode_RepeatSlow = 4, ImGuiInputReadMode_RepeatFast = 5 } // Enum @ cimgui.h:1659:2 public enum ImGuiNavLayer : int { ImGuiNavLayer_Main = 0, ImGuiNavLayer_Menu = 1, ImGuiNavLayer_COUNT = 2 } // Enum @ cimgui.h:1398:2 public enum ImGuiAxis : int { ImGuiAxis_None = -1, ImGuiAxis_X = 0, ImGuiAxis_Y = 1 } // Enum @ cimgui.h:1402:2 public enum ImGuiPlotType : int { ImGuiPlotType_Lines = 0, ImGuiPlotType_Histogram = 1 } // Enum @ cimgui.h:1411:2 public enum ImGuiInputSource : int { ImGuiInputSource_None = 0, ImGuiInputSource_Mouse = 1, ImGuiInputSource_Keyboard = 2, ImGuiInputSource_Gamepad = 3, ImGuiInputSource_Nav = 4, ImGuiInputSource_Clipboard = 5, ImGuiInputSource_COUNT = 6 } // Pseudo enum 'ImGuiWindowFlags_' @ cimgui.h:317:9 public const int ImGuiWindowFlags_None = 0; public const int ImGuiWindowFlags_NoTitleBar = 1; public const int ImGuiWindowFlags_NoResize = 2; public const int ImGuiWindowFlags_NoMove = 4; public const int ImGuiWindowFlags_NoScrollbar = 8; public const int ImGuiWindowFlags_NoScrollWithMouse = 16; public const int ImGuiWindowFlags_NoCollapse = 32; public const int ImGuiWindowFlags_AlwaysAutoResize = 64; public const int ImGuiWindowFlags_NoBackground = 128; public const int ImGuiWindowFlags_NoSavedSettings = 256; public const int ImGuiWindowFlags_NoMouseInputs = 512; public const int ImGuiWindowFlags_MenuBar = 1024; public const int ImGuiWindowFlags_HorizontalScrollbar = 2048; public const int ImGuiWindowFlags_NoFocusOnAppearing = 4096; public const int ImGuiWindowFlags_NoBringToFrontOnFocus = 8192; public const int ImGuiWindowFlags_AlwaysVerticalScrollbar = 16384; public const int ImGuiWindowFlags_AlwaysHorizontalScrollbar = 32768; public const int ImGuiWindowFlags_AlwaysUseWindowPadding = 65536; public const int ImGuiWindowFlags_NoNavInputs = 262144; public const int ImGuiWindowFlags_NoNavFocus = 524288; public const int ImGuiWindowFlags_UnsavedDocument = 1048576; public const int ImGuiWindowFlags_NoNav = 786432; public const int ImGuiWindowFlags_NoDecoration = 43; public const int ImGuiWindowFlags_NoInputs = 786944; public const int ImGuiWindowFlags_NavFlattened = 8388608; public const int ImGuiWindowFlags_ChildWindow = 16777216; public const int ImGuiWindowFlags_Tooltip = 33554432; public const int ImGuiWindowFlags_Popup = 67108864; public const int ImGuiWindowFlags_Modal = 134217728; public const int ImGuiWindowFlags_ChildMenu = 268435456; // Pseudo enum 'ImGuiInputTextFlags_' @ cimgui.h:349:9 public const int ImGuiInputTextFlags_None = 0; public const int ImGuiInputTextFlags_CharsDecimal = 1; public const int ImGuiInputTextFlags_CharsHexadecimal = 2; public const int ImGuiInputTextFlags_CharsUppercase = 4; public const int ImGuiInputTextFlags_CharsNoBlank = 8; public const int ImGuiInputTextFlags_AutoSelectAll = 16; public const int ImGuiInputTextFlags_EnterReturnsTrue = 32; public const int ImGuiInputTextFlags_CallbackCompletion = 64; public const int ImGuiInputTextFlags_CallbackHistory = 128; public const int ImGuiInputTextFlags_CallbackAlways = 256; public const int ImGuiInputTextFlags_CallbackCharFilter = 512; public const int ImGuiInputTextFlags_AllowTabInput = 1024; public const int ImGuiInputTextFlags_CtrlEnterForNewLine = 2048; public const int ImGuiInputTextFlags_NoHorizontalScroll = 4096; public const int ImGuiInputTextFlags_AlwaysOverwrite = 8192; public const int ImGuiInputTextFlags_ReadOnly = 16384; public const int ImGuiInputTextFlags_Password = 32768; public const int ImGuiInputTextFlags_NoUndoRedo = 65536; public const int ImGuiInputTextFlags_CharsScientific = 131072; public const int ImGuiInputTextFlags_CallbackResize = 262144; public const int ImGuiInputTextFlags_CallbackEdit = 524288; // Pseudo enum 'ImGuiTreeNodeFlags_' @ cimgui.h:372:9 public const int ImGuiTreeNodeFlags_None = 0; public const int ImGuiTreeNodeFlags_Selected = 1; public const int ImGuiTreeNodeFlags_Framed = 2; public const int ImGuiTreeNodeFlags_AllowItemOverlap = 4; public const int ImGuiTreeNodeFlags_NoTreePushOnOpen = 8; public const int ImGuiTreeNodeFlags_NoAutoOpenOnLog = 16; public const int ImGuiTreeNodeFlags_DefaultOpen = 32; public const int ImGuiTreeNodeFlags_OpenOnDoubleClick = 64; public const int ImGuiTreeNodeFlags_OpenOnArrow = 128; public const int ImGuiTreeNodeFlags_Leaf = 256; public const int ImGuiTreeNodeFlags_Bullet = 512; public const int ImGuiTreeNodeFlags_FramePadding = 1024; public const int ImGuiTreeNodeFlags_SpanAvailWidth = 2048; public const int ImGuiTreeNodeFlags_SpanFullWidth = 4096; public const int ImGuiTreeNodeFlags_NavLeftJumpsBackHere = 8192; public const int ImGuiTreeNodeFlags_CollapsingHeader = 26; // Pseudo enum 'ImGuiPopupFlags_' @ cimgui.h:390:9 public const int ImGuiPopupFlags_None = 0; public const int ImGuiPopupFlags_MouseButtonLeft = 0; public const int ImGuiPopupFlags_MouseButtonRight = 1; public const int ImGuiPopupFlags_MouseButtonMiddle = 2; public const int ImGuiPopupFlags_MouseButtonMask_ = 31; public const int ImGuiPopupFlags_MouseButtonDefault_ = 1; public const int ImGuiPopupFlags_NoOpenOverExistingPopup = 32; public const int ImGuiPopupFlags_NoOpenOverItems = 64; public const int ImGuiPopupFlags_AnyPopupId = 128; public const int ImGuiPopupFlags_AnyPopupLevel = 256; public const int ImGuiPopupFlags_AnyPopup = 384; // Pseudo enum 'ImGuiSelectableFlags_' @ cimgui.h:403:9 public const int ImGuiSelectableFlags_None = 0; public const int ImGuiSelectableFlags_DontClosePopups = 1; public const int ImGuiSelectableFlags_SpanAllColumns = 2; public const int ImGuiSelectableFlags_AllowDoubleClick = 4; public const int ImGuiSelectableFlags_Disabled = 8; public const int ImGuiSelectableFlags_AllowItemOverlap = 16; // Pseudo enum 'ImGuiComboFlags_' @ cimgui.h:411:9 public const int ImGuiComboFlags_None = 0; public const int ImGuiComboFlags_PopupAlignLeft = 1; public const int ImGuiComboFlags_HeightSmall = 2; public const int ImGuiComboFlags_HeightRegular = 4; public const int ImGuiComboFlags_HeightLarge = 8; public const int ImGuiComboFlags_HeightLargest = 16; public const int ImGuiComboFlags_NoArrowButton = 32; public const int ImGuiComboFlags_NoPreview = 64; public const int ImGuiComboFlags_HeightMask_ = 30; // Pseudo enum 'ImGuiTabBarFlags_' @ cimgui.h:422:9 public const int ImGuiTabBarFlags_None = 0; public const int ImGuiTabBarFlags_Reorderable = 1; public const int ImGuiTabBarFlags_AutoSelectNewTabs = 2; public const int ImGuiTabBarFlags_TabListPopupButton = 4; public const int ImGuiTabBarFlags_NoCloseWithMiddleMouseButton = 8; public const int ImGuiTabBarFlags_NoTabListScrollingButtons = 16; public const int ImGuiTabBarFlags_NoTooltip = 32; public const int ImGuiTabBarFlags_FittingPolicyResizeDown = 64; public const int ImGuiTabBarFlags_FittingPolicyScroll = 128; public const int ImGuiTabBarFlags_FittingPolicyMask_ = 192; public const int ImGuiTabBarFlags_FittingPolicyDefault_ = 64; // Pseudo enum 'ImGuiTabItemFlags_' @ cimgui.h:435:9 public const int ImGuiTabItemFlags_None = 0; public const int ImGuiTabItemFlags_UnsavedDocument = 1; public const int ImGuiTabItemFlags_SetSelected = 2; public const int ImGuiTabItemFlags_NoCloseWithMiddleMouseButton = 4; public const int ImGuiTabItemFlags_NoPushId = 8; public const int ImGuiTabItemFlags_NoTooltip = 16; public const int ImGuiTabItemFlags_NoReorder = 32; public const int ImGuiTabItemFlags_Leading = 64; public const int ImGuiTabItemFlags_Trailing = 128; // Pseudo enum 'ImGuiTableFlags_' @ cimgui.h:446:9 public const int ImGuiTableFlags_None = 0; public const int ImGuiTableFlags_Resizable = 1; public const int ImGuiTableFlags_Reorderable = 2; public const int ImGuiTableFlags_Hideable = 4; public const int ImGuiTableFlags_Sortable = 8; public const int ImGuiTableFlags_NoSavedSettings = 16; public const int ImGuiTableFlags_ContextMenuInBody = 32; public const int ImGuiTableFlags_RowBg = 64; public const int ImGuiTableFlags_BordersInnerH = 128; public const int ImGuiTableFlags_BordersOuterH = 256; public const int ImGuiTableFlags_BordersInnerV = 512; public const int ImGuiTableFlags_BordersOuterV = 1024; public const int ImGuiTableFlags_BordersH = 384; public const int ImGuiTableFlags_BordersV = 1536; public const int ImGuiTableFlags_BordersInner = 640; public const int ImGuiTableFlags_BordersOuter = 1280; public const int ImGuiTableFlags_Borders = 1920; public const int ImGuiTableFlags_NoBordersInBody = 2048; public const int ImGuiTableFlags_NoBordersInBodyUntilResize = 4096; public const int ImGuiTableFlags_SizingFixedFit = 8192; public const int ImGuiTableFlags_SizingFixedSame = 16384; public const int ImGuiTableFlags_SizingStretchProp = 24576; public const int ImGuiTableFlags_SizingStretchSame = 32768; public const int ImGuiTableFlags_NoHostExtendX = 65536; public const int ImGuiTableFlags_NoHostExtendY = 131072; public const int ImGuiTableFlags_NoKeepColumnsVisible = 262144; public const int ImGuiTableFlags_PreciseWidths = 524288; public const int ImGuiTableFlags_NoClip = 1048576; public const int ImGuiTableFlags_PadOuterX = 2097152; public const int ImGuiTableFlags_NoPadOuterX = 4194304; public const int ImGuiTableFlags_NoPadInnerX = 8388608; public const int ImGuiTableFlags_ScrollX = 16777216; public const int ImGuiTableFlags_ScrollY = 33554432; public const int ImGuiTableFlags_SortMulti = 67108864; public const int ImGuiTableFlags_SortTristate = 134217728; public const int ImGuiTableFlags_SizingMask_ = 57344; // Pseudo enum 'ImGuiTableColumnFlags_' @ cimgui.h:484:9 public const int ImGuiTableColumnFlags_None = 0; public const int ImGuiTableColumnFlags_Disabled = 1; public const int ImGuiTableColumnFlags_DefaultHide = 2; public const int ImGuiTableColumnFlags_DefaultSort = 4; public const int ImGuiTableColumnFlags_WidthStretch = 8; public const int ImGuiTableColumnFlags_WidthFixed = 16; public const int ImGuiTableColumnFlags_NoResize = 32; public const int ImGuiTableColumnFlags_NoReorder = 64; public const int ImGuiTableColumnFlags_NoHide = 128; public const int ImGuiTableColumnFlags_NoClip = 256; public const int ImGuiTableColumnFlags_NoSort = 512; public const int ImGuiTableColumnFlags_NoSortAscending = 1024; public const int ImGuiTableColumnFlags_NoSortDescending = 2048; public const int ImGuiTableColumnFlags_NoHeaderLabel = 4096; public const int ImGuiTableColumnFlags_NoHeaderWidth = 8192; public const int ImGuiTableColumnFlags_PreferSortAscending = 16384; public const int ImGuiTableColumnFlags_PreferSortDescending = 32768; public const int ImGuiTableColumnFlags_IndentEnable = 65536; public const int ImGuiTableColumnFlags_IndentDisable = 131072; public const int ImGuiTableColumnFlags_IsEnabled = 16777216; public const int ImGuiTableColumnFlags_IsVisible = 33554432; public const int ImGuiTableColumnFlags_IsSorted = 67108864; public const int ImGuiTableColumnFlags_IsHovered = 134217728; public const int ImGuiTableColumnFlags_WidthMask_ = 24; public const int ImGuiTableColumnFlags_IndentMask_ = 196608; public const int ImGuiTableColumnFlags_StatusMask_ = 251658240; public const int ImGuiTableColumnFlags_NoDirectResize_ = 1073741824; // Pseudo enum 'ImGuiTableRowFlags_' @ cimgui.h:513:9 public const int ImGuiTableRowFlags_None = 0; public const int ImGuiTableRowFlags_Headers = 1; // Pseudo enum 'ImGuiTableBgTarget_' @ cimgui.h:517:9 public const int ImGuiTableBgTarget_None = 0; public const int ImGuiTableBgTarget_RowBg0 = 1; public const int ImGuiTableBgTarget_RowBg1 = 2; public const int ImGuiTableBgTarget_CellBg = 3; // Pseudo enum 'ImGuiFocusedFlags_' @ cimgui.h:523:9 public const int ImGuiFocusedFlags_None = 0; public const int ImGuiFocusedFlags_ChildWindows = 1; public const int ImGuiFocusedFlags_RootWindow = 2; public const int ImGuiFocusedFlags_AnyWindow = 4; public const int ImGuiFocusedFlags_NoPopupHierarchy = 8; public const int ImGuiFocusedFlags_RootAndChildWindows = 3; // Pseudo enum 'ImGuiHoveredFlags_' @ cimgui.h:531:9 public const int ImGuiHoveredFlags_None = 0; public const int ImGuiHoveredFlags_ChildWindows = 1; public const int ImGuiHoveredFlags_RootWindow = 2; public const int ImGuiHoveredFlags_AnyWindow = 4; public const int ImGuiHoveredFlags_NoPopupHierarchy = 8; public const int ImGuiHoveredFlags_AllowWhenBlockedByPopup = 32; public const int ImGuiHoveredFlags_AllowWhenBlockedByActiveItem = 128; public const int ImGuiHoveredFlags_AllowWhenOverlapped = 256; public const int ImGuiHoveredFlags_AllowWhenDisabled = 512; public const int ImGuiHoveredFlags_RectOnly = 416; public const int ImGuiHoveredFlags_RootAndChildWindows = 3; // Pseudo enum 'ImGuiDragDropFlags_' @ cimgui.h:544:9 public const int ImGuiDragDropFlags_None = 0; public const int ImGuiDragDropFlags_SourceNoPreviewTooltip = 1; public const int ImGuiDragDropFlags_SourceNoDisableHover = 2; public const int ImGuiDragDropFlags_SourceNoHoldToOpenOthers = 4; public const int ImGuiDragDropFlags_SourceAllowNullID = 8; public const int ImGuiDragDropFlags_SourceExtern = 16; public const int ImGuiDragDropFlags_SourceAutoExpirePayload = 32; public const int ImGuiDragDropFlags_AcceptBeforeDelivery = 1024; public const int ImGuiDragDropFlags_AcceptNoDrawDefaultRect = 2048; public const int ImGuiDragDropFlags_AcceptNoPreviewTooltip = 4096; public const int ImGuiDragDropFlags_AcceptPeekOnly = 3072; // Pseudo enum 'ImGuiDataType_' @ cimgui.h:557:9 public const int ImGuiDataType_S8 = 0; public const int ImGuiDataType_U8 = 1; public const int ImGuiDataType_S16 = 2; public const int ImGuiDataType_U16 = 3; public const int ImGuiDataType_S32 = 4; public const int ImGuiDataType_U32 = 5; public const int ImGuiDataType_S64 = 6; public const int ImGuiDataType_U64 = 7; public const int ImGuiDataType_Float = 8; public const int ImGuiDataType_Double = 9; public const int ImGuiDataType_COUNT = 10; // Pseudo enum 'ImGuiDir_' @ cimgui.h:570:9 public const int ImGuiDir_None = -1; public const int ImGuiDir_Left = 0; public const int ImGuiDir_Right = 1; public const int ImGuiDir_Up = 2; public const int ImGuiDir_Down = 3; public const int ImGuiDir_COUNT = 4; // Pseudo enum 'ImGuiSortDirection_' @ cimgui.h:578:9 public const int ImGuiSortDirection_None = 0; public const int ImGuiSortDirection_Ascending = 1; public const int ImGuiSortDirection_Descending = 2; // Pseudo enum 'ImGuiKey_' @ cimgui.h:583:9 public const int ImGuiKey_Tab = 0; public const int ImGuiKey_LeftArrow = 1; public const int ImGuiKey_RightArrow = 2; public const int ImGuiKey_UpArrow = 3; public const int ImGuiKey_DownArrow = 4; public const int ImGuiKey_PageUp = 5; public const int ImGuiKey_PageDown = 6; public const int ImGuiKey_Home = 7; public const int ImGuiKey_End = 8; public const int ImGuiKey_Insert = 9; public const int ImGuiKey_Delete = 10; public const int ImGuiKey_Backspace = 11; public const int ImGuiKey_Space = 12; public const int ImGuiKey_Enter = 13; public const int ImGuiKey_Escape = 14; public const int ImGuiKey_KeyPadEnter = 15; public const int ImGuiKey_A = 16; public const int ImGuiKey_C = 17; public const int ImGuiKey_V = 18; public const int ImGuiKey_X = 19; public const int ImGuiKey_Y = 20; public const int ImGuiKey_Z = 21; public const int ImGuiKey_COUNT = 22; // Pseudo enum 'ImGuiKeyModFlags_' @ cimgui.h:608:9 public const int ImGuiKeyModFlags_None = 0; public const int ImGuiKeyModFlags_Ctrl = 1; public const int ImGuiKeyModFlags_Shift = 2; public const int ImGuiKeyModFlags_Alt = 4; public const int ImGuiKeyModFlags_Super = 8; // Pseudo enum 'ImGuiNavInput_' @ cimgui.h:615:9 public const int ImGuiNavInput_Activate = 0; public const int ImGuiNavInput_Cancel = 1; public const int ImGuiNavInput_Input = 2; public const int ImGuiNavInput_Menu = 3; public const int ImGuiNavInput_DpadLeft = 4; public const int ImGuiNavInput_DpadRight = 5; public const int ImGuiNavInput_DpadUp = 6; public const int ImGuiNavInput_DpadDown = 7; public const int ImGuiNavInput_LStickLeft = 8; public const int ImGuiNavInput_LStickRight = 9; public const int ImGuiNavInput_LStickUp = 10; public const int ImGuiNavInput_LStickDown = 11; public const int ImGuiNavInput_FocusPrev = 12; public const int ImGuiNavInput_FocusNext = 13; public const int ImGuiNavInput_TweakSlow = 14; public const int ImGuiNavInput_TweakFast = 15; public const int ImGuiNavInput_KeyLeft_ = 16; public const int ImGuiNavInput_KeyRight_ = 17; public const int ImGuiNavInput_KeyUp_ = 18; public const int ImGuiNavInput_KeyDown_ = 19; public const int ImGuiNavInput_COUNT = 20; public const int ImGuiNavInput_InternalStart_ = 16; // Pseudo enum 'ImGuiConfigFlags_' @ cimgui.h:639:9 public const int ImGuiConfigFlags_None = 0; public const int ImGuiConfigFlags_NavEnableKeyboard = 1; public const int ImGuiConfigFlags_NavEnableGamepad = 2; public const int ImGuiConfigFlags_NavEnableSetMousePos = 4; public const int ImGuiConfigFlags_NavNoCaptureKeyboard = 8; public const int ImGuiConfigFlags_NoMouse = 16; public const int ImGuiConfigFlags_NoMouseCursorChange = 32; public const int ImGuiConfigFlags_IsSRGB = 1048576; public const int ImGuiConfigFlags_IsTouchScreen = 2097152; // Pseudo enum 'ImGuiBackendFlags_' @ cimgui.h:650:9 public const int ImGuiBackendFlags_None = 0; public const int ImGuiBackendFlags_HasGamepad = 1; public const int ImGuiBackendFlags_HasMouseCursors = 2; public const int ImGuiBackendFlags_HasSetMousePos = 4; public const int ImGuiBackendFlags_RendererHasVtxOffset = 8; // Pseudo enum 'ImGuiCol_' @ cimgui.h:657:9 public const int ImGuiCol_Text = 0; public const int ImGuiCol_TextDisabled = 1; public const int ImGuiCol_WindowBg = 2; public const int ImGuiCol_ChildBg = 3; public const int ImGuiCol_PopupBg = 4; public const int ImGuiCol_Border = 5; public const int ImGuiCol_BorderShadow = 6; public const int ImGuiCol_FrameBg = 7; public const int ImGuiCol_FrameBgHovered = 8; public const int ImGuiCol_FrameBgActive = 9; public const int ImGuiCol_TitleBg = 10; public const int ImGuiCol_TitleBgActive = 11; public const int ImGuiCol_TitleBgCollapsed = 12; public const int ImGuiCol_MenuBarBg = 13; public const int ImGuiCol_ScrollbarBg = 14; public const int ImGuiCol_ScrollbarGrab = 15; public const int ImGuiCol_ScrollbarGrabHovered = 16; public const int ImGuiCol_ScrollbarGrabActive = 17; public const int ImGuiCol_CheckMark = 18; public const int ImGuiCol_SliderGrab = 19; public const int ImGuiCol_SliderGrabActive = 20; public const int ImGuiCol_Button = 21; public const int ImGuiCol_ButtonHovered = 22; public const int ImGuiCol_ButtonActive = 23; public const int ImGuiCol_Header = 24; public const int ImGuiCol_HeaderHovered = 25; public const int ImGuiCol_HeaderActive = 26; public const int ImGuiCol_Separator = 27; public const int ImGuiCol_SeparatorHovered = 28; public const int ImGuiCol_SeparatorActive = 29; public const int ImGuiCol_ResizeGrip = 30; public const int ImGuiCol_ResizeGripHovered = 31; public const int ImGuiCol_ResizeGripActive = 32; public const int ImGuiCol_Tab = 33; public const int ImGuiCol_TabHovered = 34; public const int ImGuiCol_TabActive = 35; public const int ImGuiCol_TabUnfocused = 36; public const int ImGuiCol_TabUnfocusedActive = 37; public const int ImGuiCol_PlotLines = 38; public const int ImGuiCol_PlotLinesHovered = 39; public const int ImGuiCol_PlotHistogram = 40; public const int ImGuiCol_PlotHistogramHovered = 41; public const int ImGuiCol_TableHeaderBg = 42; public const int ImGuiCol_TableBorderStrong = 43; public const int ImGuiCol_TableBorderLight = 44; public const int ImGuiCol_TableRowBg = 45; public const int ImGuiCol_TableRowBgAlt = 46; public const int ImGuiCol_TextSelectedBg = 47; public const int ImGuiCol_DragDropTarget = 48; public const int ImGuiCol_NavHighlight = 49; public const int ImGuiCol_NavWindowingHighlight = 50; public const int ImGuiCol_NavWindowingDimBg = 51; public const int ImGuiCol_ModalWindowDimBg = 52; public const int ImGuiCol_COUNT = 53; // Pseudo enum 'ImGuiStyleVar_' @ cimgui.h:713:9 public const int ImGuiStyleVar_Alpha = 0; public const int ImGuiStyleVar_DisabledAlpha = 1; public const int ImGuiStyleVar_WindowPadding = 2; public const int ImGuiStyleVar_WindowRounding = 3; public const int ImGuiStyleVar_WindowBorderSize = 4; public const int ImGuiStyleVar_WindowMinSize = 5; public const int ImGuiStyleVar_WindowTitleAlign = 6; public const int ImGuiStyleVar_ChildRounding = 7; public const int ImGuiStyleVar_ChildBorderSize = 8; public const int ImGuiStyleVar_PopupRounding = 9; public const int ImGuiStyleVar_PopupBorderSize = 10; public const int ImGuiStyleVar_FramePadding = 11; public const int ImGuiStyleVar_FrameRounding = 12; public const int ImGuiStyleVar_FrameBorderSize = 13; public const int ImGuiStyleVar_ItemSpacing = 14; public const int ImGuiStyleVar_ItemInnerSpacing = 15; public const int ImGuiStyleVar_IndentSpacing = 16; public const int ImGuiStyleVar_CellPadding = 17; public const int ImGuiStyleVar_ScrollbarSize = 18; public const int ImGuiStyleVar_ScrollbarRounding = 19; public const int ImGuiStyleVar_GrabMinSize = 20; public const int ImGuiStyleVar_GrabRounding = 21; public const int ImGuiStyleVar_TabRounding = 22; public const int ImGuiStyleVar_ButtonTextAlign = 23; public const int ImGuiStyleVar_SelectableTextAlign = 24; public const int ImGuiStyleVar_COUNT = 25; // Pseudo enum 'ImGuiButtonFlags_' @ cimgui.h:741:9 public const int ImGuiButtonFlags_None = 0; public const int ImGuiButtonFlags_MouseButtonLeft = 1; public const int ImGuiButtonFlags_MouseButtonRight = 2; public const int ImGuiButtonFlags_MouseButtonMiddle = 4; public const int ImGuiButtonFlags_MouseButtonMask_ = 7; public const int ImGuiButtonFlags_MouseButtonDefault_ = 1; // Pseudo enum 'ImGuiColorEditFlags_' @ cimgui.h:749:9 public const int ImGuiColorEditFlags_None = 0; public const int ImGuiColorEditFlags_NoAlpha = 2; public const int ImGuiColorEditFlags_NoPicker = 4; public const int ImGuiColorEditFlags_NoOptions = 8; public const int ImGuiColorEditFlags_NoSmallPreview = 16; public const int ImGuiColorEditFlags_NoInputs = 32; public const int ImGuiColorEditFlags_NoTooltip = 64; public const int ImGuiColorEditFlags_NoLabel = 128; public const int ImGuiColorEditFlags_NoSidePreview = 256; public const int ImGuiColorEditFlags_NoDragDrop = 512; public const int ImGuiColorEditFlags_NoBorder = 1024; public const int ImGuiColorEditFlags_AlphaBar = 65536; public const int ImGuiColorEditFlags_AlphaPreview = 131072; public const int ImGuiColorEditFlags_AlphaPreviewHalf = 262144; public const int ImGuiColorEditFlags_HDR = 524288; public const int ImGuiColorEditFlags_DisplayRGB = 1048576; public const int ImGuiColorEditFlags_DisplayHSV = 2097152; public const int ImGuiColorEditFlags_DisplayHex = 4194304; public const int ImGuiColorEditFlags_Uint8 = 8388608; public const int ImGuiColorEditFlags_Float = 16777216; public const int ImGuiColorEditFlags_PickerHueBar = 33554432; public const int ImGuiColorEditFlags_PickerHueWheel = 67108864; public const int ImGuiColorEditFlags_InputRGB = 134217728; public const int ImGuiColorEditFlags_InputHSV = 268435456; public const int ImGuiColorEditFlags_DefaultOptions_ = 177209344; public const int ImGuiColorEditFlags_DisplayMask_ = 7340032; public const int ImGuiColorEditFlags_DataTypeMask_ = 25165824; public const int ImGuiColorEditFlags_PickerMask_ = 100663296; public const int ImGuiColorEditFlags_InputMask_ = 402653184; // Pseudo enum 'ImGuiSliderFlags_' @ cimgui.h:780:9 public const int ImGuiSliderFlags_None = 0; public const int ImGuiSliderFlags_AlwaysClamp = 16; public const int ImGuiSliderFlags_Logarithmic = 32; public const int ImGuiSliderFlags_NoRoundToFormat = 64; public const int ImGuiSliderFlags_NoInput = 128; public const int ImGuiSliderFlags_InvalidMask_ = 1879048207; // Pseudo enum 'ImGuiMouseButton_' @ cimgui.h:788:9 public const int ImGuiMouseButton_Left = 0; public const int ImGuiMouseButton_Right = 1; public const int ImGuiMouseButton_Middle = 2; public const int ImGuiMouseButton_COUNT = 5; // Pseudo enum 'ImGuiMouseCursor_' @ cimgui.h:794:9 public const int ImGuiMouseCursor_None = -1; public const int ImGuiMouseCursor_Arrow = 0; public const int ImGuiMouseCursor_TextInput = 1; public const int ImGuiMouseCursor_ResizeAll = 2; public const int ImGuiMouseCursor_ResizeNS = 3; public const int ImGuiMouseCursor_ResizeEW = 4; public const int ImGuiMouseCursor_ResizeNESW = 5; public const int ImGuiMouseCursor_ResizeNWSE = 6; public const int ImGuiMouseCursor_Hand = 7; public const int ImGuiMouseCursor_NotAllowed = 8; public const int ImGuiMouseCursor_COUNT = 9; // Pseudo enum 'ImGuiCond_' @ cimgui.h:807:9 public const int ImGuiCond_None = 0; public const int ImGuiCond_Always = 1; public const int ImGuiCond_Once = 2; public const int ImGuiCond_FirstUseEver = 4; public const int ImGuiCond_Appearing = 8; // Pseudo enum 'ImDrawFlags_' @ cimgui.h:1070:9 public const int ImDrawFlags_None = 0; public const int ImDrawFlags_Closed = 1; public const int ImDrawFlags_RoundCornersTopLeft = 16; public const int ImDrawFlags_RoundCornersTopRight = 32; public const int ImDrawFlags_RoundCornersBottomLeft = 64; public const int ImDrawFlags_RoundCornersBottomRight = 128; public const int ImDrawFlags_RoundCornersNone = 256; public const int ImDrawFlags_RoundCornersTop = 48; public const int ImDrawFlags_RoundCornersBottom = 192; public const int ImDrawFlags_RoundCornersLeft = 80; public const int ImDrawFlags_RoundCornersRight = 160; public const int ImDrawFlags_RoundCornersAll = 240; public const int ImDrawFlags_RoundCornersDefault_ = 240; public const int ImDrawFlags_RoundCornersMask_ = 496; // Pseudo enum 'ImDrawListFlags_' @ cimgui.h:1086:9 public const int ImDrawListFlags_None = 0; public const int ImDrawListFlags_AntiAliasedLines = 1; public const int ImDrawListFlags_AntiAliasedLinesUseTex = 2; public const int ImDrawListFlags_AntiAliasedFill = 4; public const int ImDrawListFlags_AllowVtxOffset = 8; // Pseudo enum 'ImFontAtlasFlags_' @ cimgui.h:1166:9 public const int ImFontAtlasFlags_None = 0; public const int ImFontAtlasFlags_NoPowerOfTwoHeight = 1; public const int ImFontAtlasFlags_NoMouseCursors = 2; public const int ImFontAtlasFlags_NoBakedLines = 4; // Pseudo enum 'ImGuiViewportFlags_' @ cimgui.h:1216:9 public const int ImGuiViewportFlags_None = 0; public const int ImGuiViewportFlags_IsPlatformWindow = 1; public const int ImGuiViewportFlags_IsPlatformMonitor = 2; public const int ImGuiViewportFlags_OwnedByApp = 4; // Pseudo enum 'ImGuiItemFlags_' @ cimgui.h:1301:9 public const int ImGuiItemFlags_None = 0; public const int ImGuiItemFlags_NoTabStop = 1; public const int ImGuiItemFlags_ButtonRepeat = 2; public const int ImGuiItemFlags_Disabled = 4; public const int ImGuiItemFlags_NoNav = 8; public const int ImGuiItemFlags_NoNavDefaultFocus = 16; public const int ImGuiItemFlags_SelectableDontClosePopup = 32; public const int ImGuiItemFlags_MixedValue = 64; public const int ImGuiItemFlags_ReadOnly = 128; public const int ImGuiItemFlags_Inputable = 256; // Pseudo enum 'ImGuiItemStatusFlags_' @ cimgui.h:1313:9 public const int ImGuiItemStatusFlags_None = 0; public const int ImGuiItemStatusFlags_HoveredRect = 1; public const int ImGuiItemStatusFlags_HasDisplayRect = 2; public const int ImGuiItemStatusFlags_Edited = 4; public const int ImGuiItemStatusFlags_ToggledSelection = 8; public const int ImGuiItemStatusFlags_ToggledOpen = 16; public const int ImGuiItemStatusFlags_HasDeactivated = 32; public const int ImGuiItemStatusFlags_Deactivated = 64; public const int ImGuiItemStatusFlags_HoveredWindow = 128; public const int ImGuiItemStatusFlags_FocusedByTabbing = 256; // Pseudo enum 'ImGuiInputTextFlagsPrivate_' @ cimgui.h:1325:9 public const int ImGuiInputTextFlags_Multiline = 67108864; public const int ImGuiInputTextFlags_NoMarkEdited = 134217728; public const int ImGuiInputTextFlags_MergedItem = 268435456; // Pseudo enum 'ImGuiButtonFlagsPrivate_' @ cimgui.h:1330:9 public const int ImGuiButtonFlags_PressedOnClick = 16; public const int ImGuiButtonFlags_PressedOnClickRelease = 32; public const int ImGuiButtonFlags_PressedOnClickReleaseAnywhere = 64; public const int ImGuiButtonFlags_PressedOnRelease = 128; public const int ImGuiButtonFlags_PressedOnDoubleClick = 256; public const int ImGuiButtonFlags_PressedOnDragDropHold = 512; public const int ImGuiButtonFlags_Repeat = 1024; public const int ImGuiButtonFlags_FlattenChildren = 2048; public const int ImGuiButtonFlags_AllowItemOverlap = 4096; public const int ImGuiButtonFlags_DontClosePopups = 8192; public const int ImGuiButtonFlags_AlignTextBaseLine = 32768; public const int ImGuiButtonFlags_NoKeyModifiers = 65536; public const int ImGuiButtonFlags_NoHoldingActiveId = 131072; public const int ImGuiButtonFlags_NoNavFocus = 262144; public const int ImGuiButtonFlags_NoHoveredOnFocus = 524288; public const int ImGuiButtonFlags_PressedOnMask_ = 1008; public const int ImGuiButtonFlags_PressedOnDefault_ = 32; // Pseudo enum 'ImGuiComboFlagsPrivate_' @ cimgui.h:1349:9 public const int ImGuiComboFlags_CustomPreview = 1048576; // Pseudo enum 'ImGuiSliderFlagsPrivate_' @ cimgui.h:1352:9 public const int ImGuiSliderFlags_Vertical = 1048576; public const int ImGuiSliderFlags_ReadOnly = 2097152; // Pseudo enum 'ImGuiSelectableFlagsPrivate_' @ cimgui.h:1356:9 public const int ImGuiSelectableFlags_NoHoldingActiveID = 1048576; public const int ImGuiSelectableFlags_SelectOnNav = 2097152; public const int ImGuiSelectableFlags_SelectOnClick = 4194304; public const int ImGuiSelectableFlags_SelectOnRelease = 8388608; public const int ImGuiSelectableFlags_SpanAvailWidth = 16777216; public const int ImGuiSelectableFlags_DrawHoveredWhenHeld = 33554432; public const int ImGuiSelectableFlags_SetNavIdOnHover = 67108864; public const int ImGuiSelectableFlags_NoPadWithHalfSpacing = 134217728; // Pseudo enum 'ImGuiTreeNodeFlagsPrivate_' @ cimgui.h:1366:9 public const int ImGuiTreeNodeFlags_ClipLabelForTrailingButton = 1048576; // Pseudo enum 'ImGuiSeparatorFlags_' @ cimgui.h:1369:9 public const int ImGuiSeparatorFlags_None = 0; public const int ImGuiSeparatorFlags_Horizontal = 1; public const int ImGuiSeparatorFlags_Vertical = 2; public const int ImGuiSeparatorFlags_SpanAllColumns = 4; // Pseudo enum 'ImGuiTextFlags_' @ cimgui.h:1375:9 public const int ImGuiTextFlags_None = 0; public const int ImGuiTextFlags_NoWidthForLargeClippedText = 1; // Pseudo enum 'ImGuiTooltipFlags_' @ cimgui.h:1379:9 public const int ImGuiTooltipFlags_None = 0; public const int ImGuiTooltipFlags_OverridePreviousTooltip = 1; // Pseudo enum 'ImGuiLayoutType_' @ cimgui.h:1383:9 public const int ImGuiLayoutType_Horizontal = 0; public const int ImGuiLayoutType_Vertical = 1; // Pseudo enum 'ImGuiDataTypePrivate_' @ cimgui.h:1436:9 public const int ImGuiDataType_String = 11; public const int ImGuiDataType_Pointer = 12; public const int ImGuiDataType_ID = 13; // Pseudo enum 'ImGuiNextWindowDataFlags_' @ cimgui.h:1512:9 public const int ImGuiNextWindowDataFlags_None = 0; public const int ImGuiNextWindowDataFlags_HasPos = 1; public const int ImGuiNextWindowDataFlags_HasSize = 2; public const int ImGuiNextWindowDataFlags_HasContentSize = 4; public const int ImGuiNextWindowDataFlags_HasCollapsed = 8; public const int ImGuiNextWindowDataFlags_HasSizeConstraint = 16; public const int ImGuiNextWindowDataFlags_HasFocus = 32; public const int ImGuiNextWindowDataFlags_HasBgAlpha = 64; public const int ImGuiNextWindowDataFlags_HasScroll = 128; // Pseudo enum 'ImGuiNextItemDataFlags_' @ cimgui.h:1541:9 public const int ImGuiNextItemDataFlags_None = 0; public const int ImGuiNextItemDataFlags_HasWidth = 1; public const int ImGuiNextItemDataFlags_HasOpen = 2; // Pseudo enum 'ImGuiActivateFlags_' @ cimgui.h:1607:9 public const int ImGuiActivateFlags_None = 0; public const int ImGuiActivateFlags_PreferInput = 1; public const int ImGuiActivateFlags_PreferTweak = 2; public const int ImGuiActivateFlags_TryToPreserveState = 4; // Pseudo enum 'ImGuiScrollFlags_' @ cimgui.h:1613:9 public const int ImGuiScrollFlags_None = 0; public const int ImGuiScrollFlags_KeepVisibleEdgeX = 1; public const int ImGuiScrollFlags_KeepVisibleEdgeY = 2; public const int ImGuiScrollFlags_KeepVisibleCenterX = 4; public const int ImGuiScrollFlags_KeepVisibleCenterY = 8; public const int ImGuiScrollFlags_AlwaysCenterX = 16; public const int ImGuiScrollFlags_AlwaysCenterY = 32; public const int ImGuiScrollFlags_NoScrollParent = 64; public const int ImGuiScrollFlags_MaskX_ = 21; public const int ImGuiScrollFlags_MaskY_ = 42; // Pseudo enum 'ImGuiNavHighlightFlags_' @ cimgui.h:1625:9 public const int ImGuiNavHighlightFlags_None = 0; public const int ImGuiNavHighlightFlags_TypeDefault = 1; public const int ImGuiNavHighlightFlags_TypeThin = 2; public const int ImGuiNavHighlightFlags_AlwaysDraw = 4; public const int ImGuiNavHighlightFlags_NoRounding = 8; // Pseudo enum 'ImGuiNavDirSourceFlags_' @ cimgui.h:1632:9 public const int ImGuiNavDirSourceFlags_None = 0; public const int ImGuiNavDirSourceFlags_RawKeyboard = 1; public const int ImGuiNavDirSourceFlags_Keyboard = 2; public const int ImGuiNavDirSourceFlags_PadDPad = 4; public const int ImGuiNavDirSourceFlags_PadLStick = 8; // Pseudo enum 'ImGuiNavMoveFlags_' @ cimgui.h:1639:9 public const int ImGuiNavMoveFlags_None = 0; public const int ImGuiNavMoveFlags_LoopX = 1; public const int ImGuiNavMoveFlags_LoopY = 2; public const int ImGuiNavMoveFlags_WrapX = 4; public const int ImGuiNavMoveFlags_WrapY = 8; public const int ImGuiNavMoveFlags_AllowCurrentNavId = 16; public const int ImGuiNavMoveFlags_AlsoScoreVisibleSet = 32; public const int ImGuiNavMoveFlags_ScrollToEdgeY = 64; public const int ImGuiNavMoveFlags_Forwarded = 128; public const int ImGuiNavMoveFlags_DebugNoResult = 256; public const int ImGuiNavMoveFlags_FocusApi = 512; public const int ImGuiNavMoveFlags_Tabbing = 1024; public const int ImGuiNavMoveFlags_Activate = 2048; public const int ImGuiNavMoveFlags_DontSetNavHighlight = 4096; // Pseudo enum 'ImGuiOldColumnFlags_' @ cimgui.h:1671:9 public const int ImGuiOldColumnFlags_None = 0; public const int ImGuiOldColumnFlags_NoBorder = 1; public const int ImGuiOldColumnFlags_NoResize = 2; public const int ImGuiOldColumnFlags_NoPreserveWidths = 4; public const int ImGuiOldColumnFlags_NoForceWithinWindow = 8; public const int ImGuiOldColumnFlags_GrowParentContentsSize = 16; // Pseudo enum 'ImGuiTabBarFlagsPrivate_' @ cimgui.h:2110:9 public const int ImGuiTabBarFlags_DockNode = 1048576; public const int ImGuiTabBarFlags_IsFocused = 2097152; public const int ImGuiTabBarFlags_SaveSettings = 4194304; // Pseudo enum 'ImGuiTabItemFlagsPrivate_' @ cimgui.h:2115:9 public const int ImGuiTabItemFlags_SectionMask_ = 192; public const int ImGuiTabItemFlags_NoCloseButton = 1048576; public const int ImGuiTabItemFlags_Button = 2097152; #region C2CS.Runtime public static class Runtime { /// <summary> /// A boolean value type with the same memory layout as a <see cref="byte" /> in both managed and unmanaged contexts; /// equivalent to a standard bool found in C/C++/ObjC where <c>0</c> is <c>false</c> and any other value is /// <c>true</c>. /// </summary> [StructLayout(LayoutKind.Sequential)] public readonly struct CBool : IEquatable<CBool> { private readonly byte _value; private CBool(bool value) { _value = Convert.ToByte(value); } /// <summary> /// Converts the specified <see cref="bool" /> to a <see cref="CBool" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="CBool" />.</returns> public static implicit operator CBool(bool value) { return FromBoolean(value); } /// <summary> /// Converts the specified <see cref="bool" /> to a <see cref="CBool" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="CBool" />.</returns> public static CBool FromBoolean(bool value) { return new CBool(value); } /// <summary> /// Converts the specified <see cref="CBool" /> to a <see cref="bool" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="bool" />.</returns> public static implicit operator bool(CBool value) { return ToBoolean(value); } /// <summary> /// Converts the specified <see cref="CBool" /> to a <see cref="bool" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="bool" />.</returns> public static bool ToBoolean(CBool value) { return Convert.ToBoolean(value._value); } /// <inheritdoc /> public override string ToString() { return ToBoolean(this).ToString(); } /// <inheritdoc /> public override bool Equals(object? obj) { return obj is CBool b && Equals(b); } /// <inheritdoc /> public bool Equals(CBool other) { return _value == other._value; } /// <inheritdoc /> public override int GetHashCode() { return _value.GetHashCode(); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CBool" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CBool" /> to compare.</param> /// <param name="right">The second <see cref="CBool" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool operator ==(CBool left, CBool right) { return left._value == right._value; } /// <summary> /// Returns a value that indicates whether two specified <see cref="CBool" /> structures are not equal. /// </summary> /// <param name="left">The first <see cref="CBool" /> to compare.</param> /// <param name="right">The second <see cref="CBool" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise, <c>false</c>.</returns> public static bool operator !=(CBool left, CBool right) { return !(left == right); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CBool" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CBool" /> to compare.</param> /// <param name="right">The second <see cref="CBool" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool Equals(CBool left, CBool right) { return left._value == right._value; } } /// <summary> /// A value type with the same memory layout as a <see cref="byte" /> in a managed context and <c>char</c> in /// an unmanaged context. /// </summary> [StructLayout(LayoutKind.Sequential)] public readonly struct CChar : IEquatable<byte>, IEquatable<CChar> { private readonly byte _value; private CChar(byte value) { _value = Convert.ToByte(value); } /// <summary> /// Converts the specified <see cref="byte" /> to a <see cref="CChar" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="CChar" />.</returns> public static implicit operator CChar(byte value) { return FromByte(value); } /// <summary> /// Converts the specified <see cref="byte" /> to a <see cref="CChar" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="CChar" />.</returns> public static CChar FromByte(byte value) { return new CChar(value); } /// <summary> /// Converts the specified <see cref="CChar" /> to a <see cref="byte" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="byte" />.</returns> public static implicit operator byte(CChar value) { return ToByte(value); } /// <summary> /// Converts the specified <see cref="CChar" /> to a <see cref="byte" />. /// </summary> /// <param name="value">The value.</param> /// <returns>A <see cref="byte" />.</returns> public static byte ToByte(CChar value) { return value._value; } /// <inheritdoc /> public override string ToString() { return _value.ToString(CultureInfo.InvariantCulture); } /// <inheritdoc /> public override bool Equals(object? obj) { return obj is CChar value && Equals(value); } /// <inheritdoc /> public bool Equals(byte other) { return _value == other; } /// <inheritdoc /> public bool Equals(CChar other) { return _value == other._value; } /// <inheritdoc /> public override int GetHashCode() { return _value.GetHashCode(); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CChar" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CChar" /> to compare.</param> /// <param name="right">The second <see cref="CChar" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool operator ==(CChar left, CChar right) { return left._value == right._value; } /// <summary> /// Returns a value that indicates whether two specified <see cref="CChar" /> structures are not equal. /// </summary> /// <param name="left">The first <see cref="CChar" /> to compare.</param> /// <param name="right">The second <see cref="CChar" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise, <c>false</c>.</returns> public static bool operator !=(CChar left, CChar right) { return !(left == right); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CChar" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CChar" /> to compare.</param> /// <param name="right">The second <see cref="CChar" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool Equals(CChar left, CChar right) { return left._value == right._value; } } /// <summary> /// A value type with the memory layout of a <c>wchar_t</c> in an unmanaged context. The memory layout in a /// managed context depends on the operating system or otherwise on preprocessor directives defines. /// </summary> [StructLayout(LayoutKind.Sequential)] public readonly struct CCharWide : IEquatable<CCharWide> { #if SIZEOF_WCHAR_T_1 private readonly byte _value; #elif SIZEOF_WCHAR_T_2 private readonly ushort _value; #elif SIZEOF_WCHAR_T_4 private readonly uint _value; #else private readonly ushort _value; #endif private CCharWide(byte value) { #if SIZEOF_WCHAR_T_1 _value = Convert.ToByte(value); #elif SIZEOF_WCHAR_T_2 _value = Convert.ToUInt16(value); #elif SIZEOF_WCHAR_T_4 _value = Convert.ToUInt32(value); #else _value = Convert.ToUInt16(value); #endif } /// <inheritdoc /> public override string ToString() { return _value.ToString(CultureInfo.InvariantCulture); } /// <inheritdoc /> public override bool Equals(object? obj) { return obj is CCharWide value && Equals(value); } /// <inheritdoc /> public bool Equals(CCharWide other) { return _value == other._value; } /// <inheritdoc /> public override int GetHashCode() { return _value.GetHashCode(); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CCharWide" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CCharWide" /> to compare.</param> /// <param name="right">The second <see cref="CCharWide" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool operator ==(CCharWide left, CCharWide right) { return left._value == right._value; } /// <summary> /// Returns a value that indicates whether two specified <see cref="CCharWide" /> structures are not equal. /// </summary> /// <param name="left">The first <see cref="CCharWide" /> to compare.</param> /// <param name="right">The second <see cref="CCharWide" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise, <c>false</c>.</returns> public static bool operator !=(CCharWide left, CCharWide right) { return !(left == right); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CCharWide" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CCharWide" /> to compare.</param> /// <param name="right">The second <see cref="CCharWide" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool Equals(CCharWide left, CCharWide right) { return left._value == right._value; } } /// <summary> /// A pointer value type of bytes that represent a string; the C type `char*`. /// </summary> [StructLayout(LayoutKind.Sequential)] public readonly unsafe struct CString : IEquatable<CString> { internal readonly nint _pointer; /// <summary> /// Gets a value indicating whether this <see cref="CString" /> is a null pointer. /// </summary> public bool IsNull => _pointer == 0; /// <summary> /// Initializes a new instance of the <see cref="CString" /> struct. /// </summary> /// <param name="value">The pointer value.</param> public CString(byte* value) { _pointer = (nint)value; } /// <summary> /// Initializes a new instance of the <see cref="CString" /> struct. /// </summary> /// <param name="value">The pointer value.</param> public CString(nint value) { _pointer = value; } /// <summary> /// Initializes a new instance of the <see cref="CString" /> struct. /// </summary> /// <param name="s">The string value.</param> public CString(string s) { _pointer = CStrings.CString(s); } /// <summary> /// Performs an explicit conversion from a <see cref="IntPtr" /> to a <see cref="CString" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CString" />. /// </returns> public static explicit operator CString(nint value) { return FromIntPtr(value); } /// <summary> /// Performs an explicit conversion from a <see cref="IntPtr" /> to a <see cref="CString" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CString" />. /// </returns> public static CString FromIntPtr(nint value) { return new CString(value); } /// <summary> /// Performs an implicit conversion from a byte pointer to a <see cref="CString" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CString" />. /// </returns> public static implicit operator CString(byte* value) { return From(value); } /// <summary> /// Performs an implicit conversion from a byte pointer to a <see cref="CString" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CString" />. /// </returns> public static CString From(byte* value) { return new CString((nint)value); } /// <summary> /// Performs an implicit conversion from a <see cref="CString" /> to a <see cref="IntPtr" />. /// </summary> /// <param name="value">The pointer.</param> /// <returns> /// The resulting <see cref="IntPtr" />. /// </returns> public static implicit operator nint(CString value) { return value._pointer; } /// <summary> /// Performs an implicit conversion from a <see cref="CString" /> to a <see cref="IntPtr" />. /// </summary> /// <param name="value">The pointer.</param> /// <returns> /// The resulting <see cref="IntPtr" />. /// </returns> public static nint ToIntPtr(CString value) { return value._pointer; } /// <summary> /// Performs an implicit conversion from a <see cref="CString" /> to a <see cref="string" />. /// </summary> /// <param name="value">The <see cref="CString" />.</param> /// <returns> /// The resulting <see cref="string" />. /// </returns> public static implicit operator string(CString value) { return ToString(value); } /// <summary> /// Performs an implicit conversion from a <see cref="CString" /> to a <see cref="string" />. /// </summary> /// <param name="value">The <see cref="CString" />.</param> /// <returns> /// The resulting <see cref="string" />. /// </returns> public static string ToString(CString value) { return CStrings.String(value); } /// <summary> /// Performs an implicit conversion from a <see cref="string" /> to a <see cref="CString" />. /// </summary> /// <param name="s">The <see cref="string" />.</param> /// <returns> /// The resulting <see cref="CString" />. /// </returns> public static implicit operator CString(string s) { return FromString(s); } /// <summary> /// Performs an implicit conversion from a <see cref="string" /> to a <see cref="CString" />. /// </summary> /// <param name="s">The <see cref="string" />.</param> /// <returns> /// The resulting <see cref="CString" />. /// </returns> public static CString FromString(string s) { return CStrings.CString(s); } /// <inheritdoc /> public override string ToString() { return CStrings.String(this); } /// <inheritdoc /> public override bool Equals(object? obj) { return obj is CString value && Equals(value); } /// <inheritdoc /> public bool Equals(CString other) { return _pointer == other._pointer; } /// <inheritdoc /> public override int GetHashCode() { return _pointer.GetHashCode(); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CString" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CString" /> to compare.</param> /// <param name="right">The second <see cref="CString" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool operator ==(CString left, CString right) { return left._pointer == right._pointer; } /// <summary> /// Returns a value that indicates whether two specified <see cref="CBool" /> structures are not equal. /// </summary> /// <param name="left">The first <see cref="CString" /> to compare.</param> /// <param name="right">The second <see cref="CString" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise, <c>false</c>.</returns> public static bool operator !=(CString left, CString right) { return !(left == right); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CString" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CString" /> to compare.</param> /// <param name="right">The second <see cref="CString" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool Equals(CString left, CString right) { return left._pointer == right._pointer; } } /// <summary> /// The collection of utility methods for interoperability with C style strings in C#. /// </summary> public static unsafe class CStrings { private static readonly Dictionary<uint, CString> StringHashesToPointers = new(); private static readonly Dictionary<nint, string> PointersToStrings = new(); private static readonly Dictionary<uint, CStringWide> StringHashesToPointersWide = new(); private static readonly Dictionary<nint, string> PointersToStringsWide = new(); /// <summary> /// Converts a C style string (ANSI or UTF-8) of type `char` (one dimensional byte array /// terminated by a <c>0x0</c>) to a UTF-16 <see cref="string" /> by allocating and copying if not already cached. /// </summary> /// <param name="value">A pointer to the C string.</param> /// <returns>A <see cref="string" /> equivalent of <paramref name="value" />.</returns> public static string String(CString value) { if (value.IsNull) { return string.Empty; } if (PointersToStrings.TryGetValue(value._pointer, out var result)) { return result; } var hash = Djb2((byte*)value._pointer); if (StringHashesToPointers.TryGetValue(hash, out var pointer2)) { result = PointersToStrings[pointer2._pointer]; return result; } // calls ASM/C/C++ functions to calculate length and then "FastAllocate" the string with the GC // https://mattwarren.org/2016/05/31/Strings-and-the-CLR-a-Special-Relationship/ result = Marshal.PtrToStringAnsi(value._pointer); if (string.IsNullOrEmpty(result)) { return string.Empty; } StringHashesToPointers.Add(hash, value); PointersToStrings.Add(value._pointer, result); return result; } /// <summary> /// Converts a C style string (unicode) of type `wchar_t` (one dimensional ushort array /// terminated by a <c>0x0</c>) to a UTF-16 <see cref="string" /> by allocating and copying if not already cached. /// </summary> /// <param name="value">A pointer to the C string.</param> /// <returns>A <see cref="string" /> equivalent of <paramref name="value" />.</returns> public static string StringWide(CStringWide value) { if (value.IsNull) { return string.Empty; } if (PointersToStringsWide.TryGetValue(value._pointer, out var result)) { return result; } var hash = Djb2((byte*)value._pointer); if (StringHashesToPointersWide.TryGetValue(hash, out var pointer2)) { result = PointersToStringsWide[pointer2._pointer]; return result; } // calls ASM/C/C++ functions to calculate length and then "FastAllocate" the string with the GC // https://mattwarren.org/2016/05/31/Strings-and-the-CLR-a-Special-Relationship/ result = Marshal.PtrToStringUni(pointer2._pointer); if (string.IsNullOrEmpty(result)) { return string.Empty; } StringHashesToPointersWide.Add(hash, value); PointersToStringsWide.Add(value._pointer, result); return result; } /// <summary> /// Converts a UTF-16 <see cref="string" /> to a C style string (one dimensional byte array terminated by a /// <c>0x0</c>) by allocating and copying if not already cached. /// </summary> /// <param name="str">The <see cref="string" />.</param> /// <returns>A C string pointer.</returns> public static CString CString(string str) { var hash = Djb2(str); if (StringHashesToPointers.TryGetValue(hash, out var r)) { return r; } // ReSharper disable once JoinDeclarationAndInitializer var pointer = Marshal.StringToHGlobalAnsi(str); StringHashesToPointers.Add(hash, new CString(pointer)); PointersToStrings.Add(pointer, str); return new CString(pointer); } /// <summary> /// Converts a C string pointer (one dimensional byte array terminated by a /// <c>0x0</c>) for a specified <see cref="string" /> by allocating and copying if not already cached. /// </summary> /// <param name="str">The <see cref="string" />.</param> /// <returns>A C string pointer.</returns> public static CStringWide CStringWide(string str) { var hash = Djb2(str); if (StringHashesToPointersWide.TryGetValue(hash, out var r)) { return r; } // ReSharper disable once JoinDeclarationAndInitializer var pointer = Marshal.StringToHGlobalUni(str); StringHashesToPointersWide.Add(hash, new CStringWide(pointer)); PointersToStringsWide.Add(pointer, str); return new CStringWide(pointer); } /// <summary> /// Converts an array of strings to an array of C strings of type `char` (multi-dimensional array of one /// dimensional byte arrays each terminated by a <c>0x0</c>) by allocating and copying if not already cached. /// </summary> /// <remarks> /// <para>Calls <see cref="CString" />.</para> /// </remarks> /// <param name="values">The strings.</param> /// <returns>An array pointer of C string pointers. You are responsible for freeing the returned pointer.</returns> public static CString* CStringArray(ReadOnlySpan<string> values) { var pointerSize = IntPtr.Size; var result = (CString*)Marshal.AllocHGlobal(pointerSize * values.Length); for (var i = 0; i < values.Length; ++i) { var @string = values[i]; var cString = CString(@string); result[i] = cString; } return result; } /// <summary> /// Converts an array of strings to an array of C strings of type `wchar_t` (multi-dimensional array of one /// dimensional ushort arrays each terminated by a <c>0x0</c>) by allocating and copying if not already cached. /// </summary> /// <remarks> /// <para>Calls <see cref="CString" />.</para> /// </remarks> /// <param name="values">The strings.</param> /// <returns>An array pointer of C string pointers. You are responsible for freeing the returned pointer.</returns> public static CStringWide* CStringWideArray(ReadOnlySpan<string> values) { var pointerSize = IntPtr.Size; var result = (CStringWide*)Marshal.AllocHGlobal(pointerSize * values.Length); for (var i = 0; i < values.Length; ++i) { var @string = values[i]; var cString = CStringWide(@string); result[i] = cString; } return result; } /// <summary> /// Frees the memory for all previously allocated C strings and releases references to all <see cref="string" /> /// objects which happened during <see cref="String" />, <see cref="StringWide" />, <see cref="CString" /> /// or <see cref="CStringWide" />. Does <b>not</b> garbage collect. /// </summary> public static void FreeAllStrings() { foreach (var (ptr, _) in PointersToStrings) { Marshal.FreeHGlobal(ptr); } // We can not guarantee that the application has not a strong reference the string since it was allocated, // so we have to let the GC take the wheel here. Thus, this method should NOT garbage collect; that's // on the responsibility of the application developer. The best we can do is just remove any and all strong // references we have here to the strings. StringHashesToPointers.Clear(); PointersToStrings.Clear(); } /// <summary> /// Frees the memory for specific previously allocated C strings and releases associated references to /// <see cref="string" /> objects which happened during <see cref="String" /> or /// <see cref="CString" />. Does <b>not</b> garbage collect. /// </summary> /// <param name="pointers">The C string pointers.</param> /// <param name="count">The number of C string pointers.</param> public static void FreeCStrings(CString* pointers, int count) { for (var i = 0; i < count; i++) { var ptr = pointers[i]; FreeCString(ptr); } Marshal.FreeHGlobal((IntPtr)pointers); } /// <summary> /// Frees the memory for the previously allocated C string and releases reference to the /// <see cref="string" /> object which happened during <see cref="String" /> or <see cref="CString" />. /// Does <b>not</b> garbage collect. /// </summary> /// <param name="value">The string.</param> public static void FreeCString(CString value) { if (!PointersToStrings.ContainsKey(value._pointer)) { return; } Marshal.FreeHGlobal(value); var hash = Djb2(value); StringHashesToPointers.Remove(hash); PointersToStrings.Remove(value._pointer); } /// <summary> /// Frees the memory for the previously allocated C string and releases reference to the /// <see cref="string" /> object which happened during <see cref="StringWide" /> or <see cref="CStringWide" />. /// Does <b>not</b> garbage collect. /// </summary> /// <param name="value">The string.</param> public static void FreeCStringWide(CStringWide value) { if (!PointersToStringsWide.ContainsKey(value._pointer)) { return; } Marshal.FreeHGlobal(value); var hash = Djb2(value); StringHashesToPointersWide.Remove(hash); PointersToStringsWide.Remove(value._pointer); } // djb2 is named after https://en.wikipedia.org/wiki/Daniel_J._Bernstein // References: // (1) https://stackoverflow.com/a/7666577/2171957 // (2) http://www.cse.yorku.ca/~oz/hash.html // (3) https://groups.google.com/g/comp.lang.c/c/lSKWXiuNOAk/m/zstZ3SRhCjgJ private static uint Djb2(byte* str) { uint hash = 5381; unchecked { uint c; while ((c = *str++) != 0) { hash = (hash << 5) + hash + c; // hash * 33 + c } } return hash; } private static uint Djb2(string str) { uint hash = 5381; // ReSharper disable once ForeachCanBeConvertedToQueryUsingAnotherGetEnumerator foreach (var c in str) { hash = (hash << 5) + hash + c; // hash * 33 + c } return hash; } } /// <summary> /// A pointer value type that represents a wide string; C type `wchar_t*`. /// </summary> [StructLayout(LayoutKind.Sequential)] public readonly unsafe struct CStringWide : IEquatable<CStringWide> { internal readonly nint _pointer; /// <summary> /// Gets a value indicating whether this <see cref="CStringWide" /> is a null pointer. /// </summary> public bool IsNull => _pointer == 0; /// <summary> /// Initializes a new instance of the <see cref="CStringWide" /> struct. /// </summary> /// <param name="value">The pointer value.</param> public CStringWide(byte* value) { _pointer = (nint)value; } /// <summary> /// Initializes a new instance of the <see cref="CStringWide" /> struct. /// </summary> /// <param name="value">The pointer value.</param> public CStringWide(nint value) { _pointer = value; } /// <summary> /// Initializes a new instance of the <see cref="CStringWide" /> struct. /// </summary> /// <param name="s">The string value.</param> public CStringWide(string s) { _pointer = CStrings.CStringWide(s); } /// <summary> /// Performs an explicit conversion from a <see cref="IntPtr" /> to a <see cref="CStringWide" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CStringWide" />. /// </returns> public static explicit operator CStringWide(nint value) { return FromIntPtr(value); } /// <summary> /// Performs an explicit conversion from a <see cref="IntPtr" /> to a <see cref="CStringWide" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CStringWide" />. /// </returns> public static CStringWide FromIntPtr(nint value) { return new CStringWide(value); } /// <summary> /// Performs an implicit conversion from a byte pointer to a <see cref="CStringWide" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CStringWide" />. /// </returns> public static implicit operator CStringWide(byte* value) { return From(value); } /// <summary> /// Performs an implicit conversion from a byte pointer to a <see cref="CStringWide" />. /// </summary> /// <param name="value">The pointer value.</param> /// <returns> /// The resulting <see cref="CStringWide" />. /// </returns> public static CStringWide From(byte* value) { return new CStringWide((nint)value); } /// <summary> /// Performs an implicit conversion from a <see cref="CStringWide" /> to a <see cref="IntPtr" />. /// </summary> /// <param name="value">The pointer.</param> /// <returns> /// The resulting <see cref="IntPtr" />. /// </returns> public static implicit operator nint(CStringWide value) { return value._pointer; } /// <summary> /// Performs an implicit conversion from a <see cref="CStringWide" /> to a <see cref="IntPtr" />. /// </summary> /// <param name="value">The pointer.</param> /// <returns> /// The resulting <see cref="IntPtr" />. /// </returns> public static nint ToIntPtr(CStringWide value) { return value._pointer; } /// <summary> /// Performs an implicit conversion from a <see cref="CStringWide" /> to a <see cref="string" />. /// </summary> /// <param name="value">The <see cref="CStringWide" />.</param> /// <returns> /// The resulting <see cref="string" />. /// </returns> public static implicit operator string(CStringWide value) { return ToString(value); } /// <summary> /// Performs an implicit conversion from a <see cref="CStringWide" /> to a <see cref="string" />. /// </summary> /// <param name="value">The <see cref="CStringWide" />.</param> /// <returns> /// The resulting <see cref="string" />. /// </returns> public static string ToString(CStringWide value) { return CStrings.StringWide(value); } /// <summary> /// Performs an implicit conversion from a <see cref="string" /> to a <see cref="CStringWide" />. /// </summary> /// <param name="s">The <see cref="string" />.</param> /// <returns> /// The resulting <see cref="CStringWide" />. /// </returns> public static implicit operator CStringWide(string s) { return FromString(s); } /// <summary> /// Performs an implicit conversion from a <see cref="string" /> to a <see cref="CStringWide" />. /// </summary> /// <param name="s">The <see cref="string" />.</param> /// <returns> /// The resulting <see cref="CStringWide" />. /// </returns> public static CStringWide FromString(string s) { return CStrings.CStringWide(s); } /// <inheritdoc /> public override string ToString() { return CStrings.StringWide(this); } /// <inheritdoc /> public override bool Equals(object? obj) { return obj is CStringWide value && Equals(value); } /// <inheritdoc /> public bool Equals(CStringWide other) { return _pointer == other._pointer; } /// <inheritdoc /> public override int GetHashCode() { return _pointer.GetHashCode(); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CStringWide" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CStringWide" /> to compare.</param> /// <param name="right">The second <see cref="CStringWide" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool operator ==(CStringWide left, CStringWide right) { return left._pointer == right._pointer; } /// <summary> /// Returns a value that indicates whether two specified <see cref="CBool" /> structures are not equal. /// </summary> /// <param name="left">The first <see cref="CStringWide" /> to compare.</param> /// <param name="right">The second <see cref="CStringWide" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are not equal; otherwise, <c>false</c>.</returns> public static bool operator !=(CStringWide left, CStringWide right) { return !(left == right); } /// <summary> /// Returns a value that indicates whether two specified <see cref="CStringWide" /> structures are equal. /// </summary> /// <param name="left">The first <see cref="CStringWide" /> to compare.</param> /// <param name="right">The second <see cref="CStringWide" /> to compare.</param> /// <returns><c>true</c> if <paramref name="left" /> and <paramref name="right" /> are equal; otherwise, <c>false</c>.</returns> public static bool Equals(CStringWide left, CStringWide right) { return left._pointer == right._pointer; } } } #endregion } }
39.033117
277
0.599318
[ "MIT" ]
lithiumtoast/imgui-cs
src/cs/production/imgui/imgui.cs
469,100
C#
//@#$&+ // //The MIT X11 License // //Copyright (c) 2010 - 2016 Icucom Corporation // //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 NON-INFRINGEMENT. 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. //@#$&- #region Using Directives using System; using System.Collections.Generic; using System.Reflection; using PlatformAgileFramework.TypeHandling.ParameterHelpers; #endregion // Using Directives namespace PlatformAgileFramework.TypeHandling.MethodHelpers { /// <summary> /// This class extends <see cref="MethodParameters"/> by adding the host type. /// </summary> /// <history> /// <contribution> /// <author> KRM </author> /// <date> 04jun2015 </date> /// <description> /// New. /// Clean up of the delegate verification stuff in our reflection classes. /// </description> /// </contribution> /// </history> /// <threadsafety> /// Unsafe. Not intended for multi-threaded environmnts. /// </threadsafety> public class MethodCharacteristics : MethodParameters { #region Type fields and autoprops /// <summary> /// Host type for instance methods - <see langword="null"/> statics. /// </summary> public Type HostType { get; protected set; } #endregion // Type fields and autoprops #region Constructors /// <summary> /// Just constructs our representation from a set of <see cref="ParameterInfo"/>'s /// and a host type. /// </summary> /// <param name="parameters"> /// <see langword="null"/> for a method with no parames and no return value. /// </param> /// <param name="hostType"> /// Type of the instance the method lives on. <see langword="null"/> for static method. /// </param> public MethodCharacteristics(IEnumerable<ParameterInfo> parameters = null, Type hostType = null) : base(parameters) { HostType = hostType; } /// <summary> /// Just constructs our representation from a set of <see cref="ParameterCharacteristics"/>'s /// and a host type. /// </summary> /// <param name="parameters"> /// <see langword="null"/> for a method with no params. /// </param> /// <param name="returnValue"> /// Characteristics for the return value - <see langword="null"/> for a void method. /// </param> /// <param name="hostType"> /// Type of the instance the method lives on. <see langword="null"/> for static method. /// </param> public MethodCharacteristics(IEnumerable<ParameterCharacteristics> parameters = null, ParameterCharacteristics returnValue = null, Type hostType = null) : base(parameters, returnValue) { HostType = hostType; } #endregion // Constructors } }
36.59596
99
0.68838
[ "MIT" ]
Platform-Agile-Software/PAF-Community
PlatformAgileFrameworkCore/PlatformAgileFrameworkCoreContractsStandard/TypeHandling/MethodHelpers/MethodCharacteristics.cs
3,625
C#
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.Collections.Generic; using System.Globalization; using System.Reflection; using Microsoft.TestPlatform.TestUtilities; using Microsoft.VisualStudio.TestTools.UnitTesting; #nullable disable namespace Microsoft.TestPlatform.AcceptanceTests; /// <summary> /// Runs tests using the dotnet vstest.console.dll built against .NET Core 2.1. /// Provide a list of target frameworks to run the tests from given as a ';' separated list, or using a constant containing that range such as /// AcceptanceTestBase.NETFX452_NET50 = "net452;net472;net48;netcoreapp2.1;netcoreapp3.1;net5.0" to determine which target framework of the project /// to test. The target project must list those TFMs in the TargetFrameworks property in csproj. /// </summary> public class NetFrameworkRunner : Attribute, ITestDataSource { /// <summary> /// Initializes a new instance of the <see cref="NetCoreTargetFrameworkDataSource"/> class. /// </summary> /// <param name="targetFrameworks">To run tests with desktop runner(vstest.console.exe), use AcceptanceTestBase.Net452TargetFramework or alike values.</param> public NetFrameworkRunner(string targetFrameworks = AcceptanceTestBase.NETFX452_NET50) { var isWindows = Environment.OSVersion.Platform.ToString().StartsWith("Win"); if (!isWindows) { return; } foreach (var fmw in targetFrameworks.Split(';')) { _dataRows.Add(new object[] { new RunnerInfo(IntegrationTestBase.DesktopRunnerFramework, fmw, AcceptanceTestBase.InIsolation) }); } } private readonly List<object[]> _dataRows = new(); public IEnumerable<object[]> GetData(MethodInfo methodInfo) { return _dataRows; } public string GetDisplayName(MethodInfo methodInfo, object[] data) { return string.Format(CultureInfo.CurrentCulture, "{0} ({1})", methodInfo.Name, string.Join(",", data)); } }
37.875
162
0.723715
[ "MIT" ]
Wivra/vstest
test/Microsoft.TestPlatform.AcceptanceTests/Extension/NetFrameworkRunner.cs
2,123
C#
using Hk.Core.Util.Logs; namespace Hk.Core.Logs.Aspects { /// <summary> /// 调试日志 /// </summary> public class DebugInterceptorAttribute : LogInterceptorAttributeBase { /// <summary> /// 是否启用 /// </summary> protected override bool Enabled(ILog log) { return log.IsDebugEnabled; } /// <summary> /// 写日志 /// </summary> protected override void WriteLog(ILog log) { log.Debug(); } } }
20.192308
72
0.500952
[ "MIT" ]
a275979650/NetCoreFramewoker
Hk.Core.Framework/Hk.Core.Logs/Aspects/DebugInterceptorAttribute.cs
549
C#
using Datagrammer; using Datagrammer.MessagePack; using Microsoft.Extensions.Options; using System; using System.Net; using System.Threading.Tasks; namespace Connection.Udp.NatFucking { class NatFuckingMessageHandler : MessagePackHandler<NatFuckingResponseDto> { private readonly IObserver<MyIPData> myIPObserver; private readonly IOptions<UdpOptions> connectionOptions; public NatFuckingMessageHandler(IObserver<MyIPData> myIPObserver, IOptions<UdpOptions> connectionOptions) { this.myIPObserver = myIPObserver; this.connectionOptions = connectionOptions; } public override Task HandleAsync(IContext context, NatFuckingResponseDto data, IPEndPoint endPoint) { if(data.MessageType != UdpMessageType.NatFucking) { return Task.CompletedTask; } if(data.UserId != connectionOptions.Value.UserId) { return Task.CompletedTask; } myIPObserver.OnNext(new MyIPData { UserId = connectionOptions.Value.UserId, IP = new IPEndPoint(new IPAddress(data.Address), data.Port) }); return Task.CompletedTask; } } }
29.930233
113
0.640249
[ "MIT" ]
gendalf90/WhenGunsSpeak
Connection/Connection/Udp/NatFucking/NatFuckingMessageHandler.cs
1,289
C#
using System.Collections.Generic; namespace Xamarin.Forms.Platform.UWP { internal static class ViewExtensions { public static IEnumerable<Page> GetParentPages(this Page target) { var result = new List<Page>(); var parent = target.Parent as Page; while (!Application.IsApplicationOrNull(parent)) { result.Add(parent); parent = parent.Parent as Page; } return result; } } }
20.45
66
0.704156
[ "MIT" ]
07101994/Xamarin.Forms
Xamarin.Forms.Platform.UAP/ViewExtensions.cs
411
C#
// Copyright © 2020 Dmitry Sikorsky. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using Platformus.Core.Backend.ViewModels; using Platformus.Core.Backend.ViewModels.Shared; namespace Platformus.ECommerce.Backend.ViewModels.OrderStates { public class IndexViewModel : ViewModelBase { public GridViewModel Grid { get; set; } } }
32.846154
111
0.779859
[ "Apache-2.0" ]
aleks-ivanov/Platformus
src/Platformus.ECommerce.Backend/Areas/Backend/ViewModels/OrderStates/Index/IndexViewModel.cs
430
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("UserLogins")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("UserLogins")] [assembly: AssemblyCopyright("Copyright © 2017")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("ab0a3daa-e587-4a4b-80a9-9f9670381217")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
37.648649
84
0.744436
[ "MIT" ]
stefanliydov/SoftUniLab
DictionariesExtended/UserLogins/Properties/AssemblyInfo.cs
1,396
C#
using System; using System.Threading.Tasks; namespace ElectricityMap.DotNet.Client.Http { public interface IElectricityMapHttpFacade { Task<T> GetAsync<T>(Uri url); } }
17.363636
46
0.706806
[ "MIT" ]
kristofferandreasen/tomorrow-electricity-api-dotnet-client
src/ElectricityMap.DotNet.Client/Http/IElectricityMapHttpFacade.cs
193
C#
using Gma.System.MouseKeyHook; using System; using System.IO; namespace AutoShot { class Hooks { private IKeyboardMouseEvents GlobalHook; public delegate void LogType(string line); public LogType Log; public Hooks() { this.Log = x => { }; } /// <summary> /// Subscribe to click events. /// </summary> public void Subscribe() { this.GlobalHook = Hook.GlobalEvents(); this.GlobalHook.MouseDownExt += this.GlobalHookMouseDownExt; } /// <summary> /// Unsubscribe from click events. /// </summary> public void Unsubscribe() { if (this.GlobalHook != null) { this.GlobalHook.MouseDownExt -= this.GlobalHookMouseDownExt; this.GlobalHook.Dispose(); } } private void GlobalHookMouseDownExt(object sender, MouseEventExtArgs e) { // XXX: race condition may cause crashes due to user attempting to break program var dir = Settings.Instance.EnsureSaveDirectory(); var savePath = Path.Combine(dir, e.Timestamp + ".png"); this.Log("Saved " + savePath); Screenshot.CaptureTo(savePath); } } }
26.816327
92
0.554033
[ "Apache-2.0" ]
lf-/AutoShot
AutoShot/Hooks.cs
1,316
C#
using UnityEngine; using UnityEngine.UI; using System.Linq; using DG.Tweening; using System.Collections.Generic; using System.Threading.Tasks; /// <summary> /// Contains the logic for managing game CGs /// </summary> [ExecuteInEditMode] public class CgHandler : MonoBehaviour { #region Properties /// <summary> /// The index of the BlackScreen sprite /// </summary> public const string BlackScreenSpriteName = "black_screen"; /// <summary> /// The CGs for the scene /// </summary> public Dictionary<string, Image> sprites = new Dictionary<string, Image>(); /// <summary> /// The color to modulate children CGs /// </summary> public Color modulation; /// <summary> /// The currently showing CG's index /// </summary> public string currentCgName; /// <summary> /// The CG stack /// </summary> public List<string> cgStack = new List<string>(); #endregion private void Awake() { foreach (var image in GetComponentsInChildren<Image>()) { // Only store first level sprites children if (image.transform.parent == transform) { sprites.Add(image.transform.name, image); // Hide the CG and modulate it based on the specified modulation if (modulation != Color.white) { image.color = new Color(modulation.r, modulation.g, modulation.b, 0); } else { image.color = new Color(image.color.r, image.color.g, image.color.b, 0); } } } if (Application.IsPlaying(gameObject)) { // Bring the black screen sprite to front sprites[BlackScreenSpriteName].color = Color.white; sprites[BlackScreenSpriteName].transform.SetAsLastSibling(); } } #region Methods /// <summary> /// Hide the current CG and decrement the CG index /// </summary> /// <param name="time">The time it takes for the previous CG to fully show</param> public void ShowPreviousCg(float time = 1f) { if (cgStack.Count() == 1) { Debug.LogError("Cannot backtrack on the first CG.", this); return; } Debug.Log("Returning to the previous CG"); // Pop the current CG off the stack cgStack.RemoveAt(cgStack.Count() - 1); // Show the CG SetCg(cgStack.ElementAt(cgStack.Count() - 1), time); // Also pop the modified CG stack to keep it as is cgStack.RemoveAt(cgStack.Count() - 1); } /// <summary> /// Show the CG with the specified name /// </summary> /// <param name="index">The CG's name</param> /// <param name="time">The time it takes for the CG to fully show</param> public void SetCg(string name, float time = 1.5f) { name = name.ToLower(); // Helper for my crappy keyboard that can't type the underscore character if (name == "blackscreen" || name == "black_screen") name = CgHandler.BlackScreenSpriteName; if (!sprites.Keys.Contains(name)) { Debug.LogError($"The CG with the name <b>{name}</b> cannot be found", this); return; } // Complete any running tweens DOTween.Complete(transform); Image cg = transform.Find(name).GetComponent<Image>(); // Add the CG to the top of the stack cgStack.Add(name); // Set the color if (modulation == Color.white) { cg.color = new Color(cg.color.r, cg.color.g, cg.color.b, 0); } else { cg.color = new Color(modulation.r, modulation.g, modulation.b, 0); } // Bring the CG to front cg.transform.SetAsLastSibling(); // Fade in the CG cg.DOFade(1f, time).SetTarget(transform); // Also fade in any child sprites foreach (var child in cg.GetComponentsInChildren<Image>()) { child.DOFade(1f, time).SetTarget(transform); } currentCgName = name; } public async Task ToggleTint() { Debug.Log("Tint the screen"); var blackScreen = transform.Find(BlackScreenSpriteName).GetComponent<Image>(); // Complete any running tint job DOTween.Complete(blackScreen); if (blackScreen.color.a == 0.8f) { // Untint blackScreen.DOFade(0, 1f).SetTarget(blackScreen); await Task.Delay(1000); blackScreen.GetComponent<Canvas>().sortingOrder = 0; blackScreen.transform.SetAsFirstSibling(); } else { // Tint blackScreen.color = new Color(blackScreen.color.r, blackScreen.color.g, blackScreen.color.b, 0f); blackScreen.GetComponent<Canvas>().sortingOrder = 999; // Wait a bit await Task.Delay(1000); blackScreen.DOFade(0.8f, 1f).SetTarget(blackScreen); } } #endregion }
27.853261
109
0.569561
[ "MIT" ]
fsnowdin/VN-Project
Assets/Scripts/GameComponents/CgHandler.cs
5,127
C#
// ------------------------------------------------------------------------------ //The MIT License(MIT) //Copyright(c) 2015 Office Developer //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. // ------------------------------------------------------------------------------ using System; using System.ComponentModel; using System.ComponentModel.DataAnnotations; namespace TIP.Dashboard.Models { public class Tenant { public int ID { get; set; } public string IssValue { get; set; } public string Name { get; set; } public DateTime Created { get; set; } [DisplayName("Check this if you are an administrator and you want to enable the app for all your users")] public bool AdminConsented { get; set; } } }
44.275
113
0.67476
[ "MIT" ]
IvanTheBearable/PnP-Tools
Solutions/Tenant Information Portal/src/TIP.DashBoard/Models/Tenant.cs
1,773
C#
using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("TroubleAtTheMill")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("TroubleAtTheMill")] [assembly: AssemblyCopyright("Copyright © 2016")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // The following GUID is for the ID of the typelib if this project is exposed to COM [assembly: Guid("1af92916-703e-4734-9a93-9757e9f6a42f")] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
37.972973
84
0.746619
[ "MIT" ]
RobinBruckmann/TroubleAtTheMill
TroubleAtTheMill/Properties/AssemblyInfo.cs
1,408
C#
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace LibHelper { public partial class Form2 : Form { SqlConnection con = new SqlConnection(@"Data Source=ALIENWARE\SQLExpress;Initial Catalog=LibHelperDB;Integrated Security=True"); public Form2() { InitializeComponent(); } private void btnExit_Click(object sender, EventArgs e) { this.Close(); } private void button2_Click(object sender, EventArgs e) { this.WindowState = FormWindowState.Minimized; } private void button1_Click(object sender, EventArgs e) { /*if (txtUName.Text=="" || txtPw.Text=="") { MessageBox.Show("Please Insert Username And Password!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } else { try { con.Open(); SqlCommand cmd = con.CreateCommand(); cmd.CommandType = CommandType.Text; cmd.CommandText = "SELECT * FROM UserDetail WHERE UserName=@UN"; cmd.Parameters.AddWithValue("@UN", txtUName.Text); cmd.ExecuteNonQuery(); con.Close(); DataTable dt = new DataTable(); SqlDataAdapter da = new SqlDataAdapter(cmd); da.Fill(dt); int i = Convert.ToInt16(dt.Rows.Count.ToString()); if (i != 0) {*/ this.Hide(); new Form1().ShowDialog(); this.Close(); /* } else { MessageBox.Show("Username and Password is Incorrect!\nPlease Try Again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } } } catch (Exception ex) { Console.WriteLine(ex.Message); MessageBox.Show("Something Went Wrong!\nPlease Try Again.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }*/ } } }
32.194805
153
0.504236
[ "MIT" ]
AlokaLakruwan/LibraryManagementSystem-CSharp
LibHelper/LibHelper/Form2.cs
2,481
C#
using System; using System.Collections.Generic; using System.Linq; using System.Numerics; public class Program { public static void Main(string[] args) { var arrayOfNumbers = Console.ReadLine().Split(' ').ToArray(); var baseNumber = int.Parse(arrayOfNumbers[0]); var decimalNumber = BigInteger.Parse(arrayOfNumbers[1]); var outputNumber = string.Empty; var stackOfRemainders = new Stack<string>(); while (decimalNumber > 0) { var remainder = decimalNumber % baseNumber; stackOfRemainders.Push(remainder.ToString()); // outputNumber += decimalNumber / baseNumber; decimalNumber /= baseNumber; } while (stackOfRemainders.Count > 0) { outputNumber += stackOfRemainders.Pop(); } Console.WriteLine(outputNumber); } }
22.846154
69
0.612795
[ "MIT" ]
Uendy/Tech-Module
L09 Strings/L09 Exercise/Q01 Base-10 to Base-N/Program.cs
893
C#
using UnityEngine; using System.Collections; using UnityEngine.UI; using System; /// <summary> /// Se utiliza para guardar la fecha del juego /// </summary> public class Fecha { public int segundo; public int minuto; public int hora; public int dia; public int año; public Fecha(int segundo, int minuto, int hora, int año) { int dia = 0; while (segundo >= 60) { segundo -= 60; minuto++; } this.segundo = segundo; while (minuto >= 60) { minuto -= 60; hora++; } this.minuto = minuto; while (hora >= 24) { hora -= 24; dia++; } this.hora = hora; while (dia >= 365) { dia -= 365; año++; } this.dia = dia; this.año = año; } public Fecha(int segundo, int minuto, int hora, int dia, int año) { while (segundo >= 60) { segundo -= 60; minuto++; } this.segundo = segundo; while (minuto >= 60) { minuto -= 60; hora++; } this.minuto = minuto; while (hora >= 24) { hora -= 24; dia++; } this.hora = hora; while (dia >= 365) { dia -= 365; año++; } this.dia = dia; this.año = año; } public ulong ToSeconds() { return (ulong)(segundo + 60 * (minuto + 60 * (hora + año * 365 * 24))); } override public String ToString() { return año.ToString("0000") + " - " + dia.ToString("000") + "\n" + hora.ToString("00") + ":" + minuto.ToString("00") + ":" + segundo.ToString("00"); } public static Fecha operator -(Fecha c1, Fecha c2) { return new Fecha(c1.segundo - c2.segundo, c1.minuto - c2.minuto, c1.hora - c2.hora, c1.año - c2.año); } public static Fecha operator +(Fecha c1, Fecha c2) { return new Fecha(c1.segundo + c2.segundo, c1.minuto + c2.minuto, c1.hora + c2.hora, c1.año + c2.año); } public static Fecha operator +(Fecha c1, int c2) { return new Fecha(c1.segundo + 1, c1.minuto, c1.hora, c1.dia, c1.año); } public static int operator /(Fecha c1, Fecha c2) { return (int)(c1.ToSeconds() / c2.ToSeconds()); } public static bool operator >(Fecha c1, Fecha c2) { return c1.ToSeconds() > c2.ToSeconds(); } public static bool operator <(Fecha c1, Fecha c2) { return c1.ToSeconds() < c2.ToSeconds(); } public static bool operator ==(Fecha c1, Fecha c2) { return c1.ToSeconds() == c2.ToSeconds(); } public static bool operator !=(Fecha c1, Fecha c2) { return c1.ToSeconds() != c2.ToSeconds(); } public override bool Equals(object obj) { return this == (Fecha)obj; } public override int GetHashCode() { return base.GetHashCode(); } }
24.373016
156
0.496581
[ "MIT" ]
Heber94/Settler
Assets/Scripts/Fecha.cs
3,089
C#
using System; using Xunit; namespace LanguageExt.Tests.Parsing { public class parseGuidTests : AbstractParseTTests<Guid> { protected override Option<Guid> ParseT(string value) => Prelude.parseGuid(value); [Fact] public void ParseGuid_ValidStringFixedGuid_SomeOfSameFixedGuid() { var guid = Guid.Parse("F9168C5E-CEB2-4faa-B6BF-329BF39FA1E4"); ParseT_ValidStringFromGiven_SomeAsGiven(guid); } } }
26.333333
89
0.677215
[ "MIT" ]
1iveowl/language-ext
LanguageExt.Tests/Parsing/parseGuidTests.cs
476
C#
using System.Text.Json.Serialization; namespace Essensoft.Paylink.Alipay.Response { /// <summary> /// ZhimaCustomerContractAcceptCreateResponse. /// </summary> public class ZhimaCustomerContractAcceptCreateResponse : AlipayResponse { /// <summary> /// 合约号 /// </summary> [JsonPropertyName("contract_no")] public string ContractNo { get; set; } } }
24.352941
75
0.637681
[ "MIT" ]
Frunck8206/payment
src/Essensoft.Paylink.Alipay/Response/ZhimaCustomerContractAcceptCreateResponse.cs
422
C#
/******************************************************************************* * Copyright 2012-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"). You may not use * this file except in compliance with the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the * specific language governing permissions and limitations under the License. * ***************************************************************************** * * AWS Tools for Windows (TM) PowerShell (TM) * */ using System; using System.Collections.Generic; using System.Linq; using System.Management.Automation; using System.Text; using Amazon.PowerShell.Common; using Amazon.Runtime; using Amazon.Neptune; using Amazon.Neptune.Model; namespace Amazon.PowerShell.Cmdlets.NPT { /// <summary> /// Creates a new DB instance. /// </summary> [Cmdlet("New", "NPTDBInstance", SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Medium)] [OutputType("Amazon.Neptune.Model.DBInstance")] [AWSCmdlet("Calls the Amazon Neptune CreateDBInstance API operation.", Operation = new[] {"CreateDBInstance"}, SelectReturnType = typeof(Amazon.Neptune.Model.CreateDBInstanceResponse))] [AWSCmdletOutput("Amazon.Neptune.Model.DBInstance or Amazon.Neptune.Model.CreateDBInstanceResponse", "This cmdlet returns an Amazon.Neptune.Model.DBInstance object.", "The service call response (type Amazon.Neptune.Model.CreateDBInstanceResponse) can also be referenced from properties attached to the cmdlet entry in the $AWSHistory stack." )] public partial class NewNPTDBInstanceCmdlet : AmazonNeptuneClientCmdlet, IExecutor { #region Parameter AllocatedStorage /// <summary> /// <para> /// <para>The amount of storage (in gibibytes) to allocate for the DB instance.</para><para>Type: Integer</para><para>Not applicable. Neptune cluster volumes automatically grow as the amount of data in /// your database increases, though you are only charged for the space that you use in /// a Neptune cluster volume.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Int32? AllocatedStorage { get; set; } #endregion #region Parameter AutoMinorVersionUpgrade /// <summary> /// <para> /// <para>Indicates that minor engine upgrades are applied automatically to the DB instance /// during the maintenance window.</para><para>Default: <code>true</code></para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? AutoMinorVersionUpgrade { get; set; } #endregion #region Parameter AvailabilityZone /// <summary> /// <para> /// <para> The EC2 Availability Zone that the DB instance is created in</para><para>Default: A random, system-chosen Availability Zone in the endpoint's AWS Region.</para><para> Example: <code>us-east-1d</code></para><para> Constraint: The AvailabilityZone parameter can't be specified if the MultiAZ parameter /// is set to <code>true</code>. The specified Availability Zone must be in the same AWS /// Region as the current endpoint.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String AvailabilityZone { get; set; } #endregion #region Parameter BackupRetentionPeriod /// <summary> /// <para> /// <para>The number of days for which automated backups are retained.</para><para>Not applicable. The retention period for automated backups is managed by the DB cluster. /// For more information, see <a>CreateDBCluster</a>.</para><para>Default: 1</para><para>Constraints:</para><ul><li><para>Must be a value from 0 to 35</para></li><li><para>Cannot be set to 0 if the DB instance is a source to Read Replicas</para></li></ul> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Int32? BackupRetentionPeriod { get; set; } #endregion #region Parameter CharacterSetName /// <summary> /// <para> /// <para>Indicates that the DB instance should be associated with the specified CharacterSet.</para><para>Not applicable. The character set is managed by the DB cluster. For more information, /// see <a>CreateDBCluster</a>.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String CharacterSetName { get; set; } #endregion #region Parameter CopyTagsToSnapshot /// <summary> /// <para> /// <para>True to copy all tags from the DB instance to snapshots of the DB instance, and otherwise /// false. The default is false.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? CopyTagsToSnapshot { get; set; } #endregion #region Parameter DBClusterIdentifier /// <summary> /// <para> /// <para>The identifier of the DB cluster that the instance will belong to.</para><para>For information on creating a DB cluster, see <a>CreateDBCluster</a>.</para><para>Type: String</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String DBClusterIdentifier { get; set; } #endregion #region Parameter DBInstanceClass /// <summary> /// <para> /// <para>The compute and memory capacity of the DB instance, for example, <code>db.m4.large</code>. /// Not all DB instance classes are available in all AWS Regions.</para> /// </para> /// </summary> #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String DBInstanceClass { get; set; } #endregion #region Parameter DBInstanceIdentifier /// <summary> /// <para> /// <para>The DB instance identifier. This parameter is stored as a lowercase string.</para><para>Constraints:</para><ul><li><para>Must contain from 1 to 63 letters, numbers, or hyphens.</para></li><li><para>First character must be a letter.</para></li><li><para>Cannot end with a hyphen or contain two consecutive hyphens.</para></li></ul><para>Example: <code>mydbinstance</code></para> /// </para> /// </summary> #if !MODULAR [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true)] #else [System.Management.Automation.Parameter(Position = 0, ValueFromPipelineByPropertyName = true, ValueFromPipeline = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String DBInstanceIdentifier { get; set; } #endregion #region Parameter DBName /// <summary> /// <para> /// <para>Not supported.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String DBName { get; set; } #endregion #region Parameter DBParameterGroupName /// <summary> /// <para> /// <para>The name of the DB parameter group to associate with this DB instance. If this argument /// is omitted, the default DBParameterGroup for the specified engine is used.</para><para>Constraints:</para><ul><li><para>Must be 1 to 255 letters, numbers, or hyphens.</para></li><li><para>First character must be a letter</para></li><li><para>Cannot end with a hyphen or contain two consecutive hyphens</para></li></ul> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String DBParameterGroupName { get; set; } #endregion #region Parameter DBSecurityGroup /// <summary> /// <para> /// <para>A list of DB security groups to associate with this DB instance.</para><para>Default: The default DB security group for the database engine.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("DBSecurityGroups")] public System.String[] DBSecurityGroup { get; set; } #endregion #region Parameter DBSubnetGroupName /// <summary> /// <para> /// <para>A DB subnet group to associate with this DB instance.</para><para>If there is no DB subnet group, then it is a non-VPC DB instance.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String DBSubnetGroupName { get; set; } #endregion #region Parameter Domain /// <summary> /// <para> /// <para>Specify the Active Directory Domain to create the instance in.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String Domain { get; set; } #endregion #region Parameter DomainIAMRoleName /// <summary> /// <para> /// <para>Specify the name of the IAM role to be used when making API calls to the Directory /// Service.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String DomainIAMRoleName { get; set; } #endregion #region Parameter EnableCloudwatchLogsExport /// <summary> /// <para> /// <para>The list of log types that need to be enabled for exporting to CloudWatch Logs.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("EnableCloudwatchLogsExports")] public System.String[] EnableCloudwatchLogsExport { get; set; } #endregion #region Parameter EnableIAMDatabaseAuthentication /// <summary> /// <para> /// <para>True to enable AWS Identity and Access Management (IAM) authentication for Neptune.</para><para>Default: <code>false</code></para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? EnableIAMDatabaseAuthentication { get; set; } #endregion #region Parameter EnablePerformanceInsight /// <summary> /// <para> /// <para>True to enable Performance Insights for the DB instance, and otherwise false.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("EnablePerformanceInsights")] public System.Boolean? EnablePerformanceInsight { get; set; } #endregion #region Parameter Engine /// <summary> /// <para> /// <para>The name of the database engine to be used for this instance.</para><para>Valid Values: <code>neptune</code></para> /// </para> /// </summary> #if !MODULAR [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] #else [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true, Mandatory = true)] [System.Management.Automation.AllowEmptyString] [System.Management.Automation.AllowNull] #endif [Amazon.PowerShell.Common.AWSRequiredParameter] public System.String Engine { get; set; } #endregion #region Parameter EngineVersion /// <summary> /// <para> /// <para>The version number of the database engine to use.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String EngineVersion { get; set; } #endregion #region Parameter Iops /// <summary> /// <para> /// <para>The amount of Provisioned IOPS (input/output operations per second) to be initially /// allocated for the DB instance.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Int32? Iops { get; set; } #endregion #region Parameter KmsKeyId /// <summary> /// <para> /// <para>The AWS KMS key identifier for an encrypted DB instance.</para><para>The KMS key identifier is the Amazon Resource Name (ARN) for the KMS encryption key. /// If you are creating a DB instance with the same AWS account that owns the KMS encryption /// key used to encrypt the new DB instance, then you can use the KMS key alias instead /// of the ARN for the KM encryption key.</para><para>Not applicable. The KMS key identifier is managed by the DB cluster. For more information, /// see <a>CreateDBCluster</a>.</para><para>If the <code>StorageEncrypted</code> parameter is true, and you do not specify a value /// for the <code>KmsKeyId</code> parameter, then Amazon Neptune will use your default /// encryption key. AWS KMS creates the default encryption key for your AWS account. Your /// AWS account has a different default encryption key for each AWS Region.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String KmsKeyId { get; set; } #endregion #region Parameter LicenseModel /// <summary> /// <para> /// <para>License model information for this DB instance.</para><para> Valid values: <code>license-included</code> | <code>bring-your-own-license</code> /// | <code>general-public-license</code></para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String LicenseModel { get; set; } #endregion #region Parameter MasterUsername /// <summary> /// <para> /// <para>The name for the master user. Not used.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String MasterUsername { get; set; } #endregion #region Parameter MasterUserPassword /// <summary> /// <para> /// <para>The password for the master user. The password can include any printable ASCII character /// except "/", """, or "@".</para><para> Not used.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String MasterUserPassword { get; set; } #endregion #region Parameter MonitoringInterval /// <summary> /// <para> /// <para>The interval, in seconds, between points when Enhanced Monitoring metrics are collected /// for the DB instance. To disable collecting Enhanced Monitoring metrics, specify 0. /// The default is 0.</para><para>If <code>MonitoringRoleArn</code> is specified, then you must also set <code>MonitoringInterval</code> /// to a value other than 0.</para><para>Valid Values: <code>0, 1, 5, 10, 15, 30, 60</code></para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Int32? MonitoringInterval { get; set; } #endregion #region Parameter MonitoringRoleArn /// <summary> /// <para> /// <para>The ARN for the IAM role that permits Neptune to send enhanced monitoring metrics /// to Amazon CloudWatch Logs. For example, <code>arn:aws:iam:123456789012:role/emaccess</code>.</para><para>If <code>MonitoringInterval</code> is set to a value other than 0, then you must supply /// a <code>MonitoringRoleArn</code> value.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String MonitoringRoleArn { get; set; } #endregion #region Parameter MultiAZ /// <summary> /// <para> /// <para>Specifies if the DB instance is a Multi-AZ deployment. You can't set the AvailabilityZone /// parameter if the MultiAZ parameter is set to true.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? MultiAZ { get; set; } #endregion #region Parameter OptionGroupName /// <summary> /// <para> /// <para>Indicates that the DB instance should be associated with the specified option group.</para><para>Permanent options, such as the TDE option for Oracle Advanced Security TDE, can't /// be removed from an option group, and that option group can't be removed from a DB /// instance once it is associated with a DB instance</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String OptionGroupName { get; set; } #endregion #region Parameter PerformanceInsightsKMSKeyId /// <summary> /// <para> /// <para>The AWS KMS key identifier for encryption of Performance Insights data. The KMS key /// ID is the Amazon Resource Name (ARN), KMS key identifier, or the KMS key alias for /// the KMS encryption key.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String PerformanceInsightsKMSKeyId { get; set; } #endregion #region Parameter Port /// <summary> /// <para> /// <para>The port number on which the database accepts connections.</para><para>Not applicable. The port is managed by the DB cluster. For more information, see <a>CreateDBCluster</a>.</para><para> Default: <code>8182</code></para><para>Type: Integer</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Int32? Port { get; set; } #endregion #region Parameter PreferredBackupWindow /// <summary> /// <para> /// <para> The daily time range during which automated backups are created.</para><para>Not applicable. The daily time range for creating automated backups is managed by /// the DB cluster. For more information, see <a>CreateDBCluster</a>.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String PreferredBackupWindow { get; set; } #endregion #region Parameter PreferredMaintenanceWindow /// <summary> /// <para> /// <para>The time range each week during which system maintenance can occur, in Universal Coordinated /// Time (UTC).</para><para> Format: <code>ddd:hh24:mi-ddd:hh24:mi</code></para><para>The default is a 30-minute window selected at random from an 8-hour block of time /// for each AWS Region, occurring on a random day of the week.</para><para>Valid Days: Mon, Tue, Wed, Thu, Fri, Sat, Sun.</para><para>Constraints: Minimum 30-minute window.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String PreferredMaintenanceWindow { get; set; } #endregion #region Parameter PromotionTier /// <summary> /// <para> /// <para>A value that specifies the order in which an Read Replica is promoted to the primary /// instance after a failure of the existing primary instance. </para><para>Default: 1</para><para>Valid Values: 0 - 15</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Int32? PromotionTier { get; set; } #endregion #region Parameter StorageEncrypted /// <summary> /// <para> /// <para>Specifies whether the DB instance is encrypted.</para><para>Not applicable. The encryption for DB instances is managed by the DB cluster. For /// more information, see <a>CreateDBCluster</a>.</para><para>Default: false</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.Boolean? StorageEncrypted { get; set; } #endregion #region Parameter StorageType /// <summary> /// <para> /// <para>Specifies the storage type to be associated with the DB instance.</para><para>Not applicable. Storage is managed by the DB Cluster.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String StorageType { get; set; } #endregion #region Parameter Tag /// <summary> /// <para> /// <para>The tags to assign to the new instance.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("Tags")] public Amazon.Neptune.Model.Tag[] Tag { get; set; } #endregion #region Parameter TdeCredentialArn /// <summary> /// <para> /// <para>The ARN from the key store with which to associate the instance for TDE encryption.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String TdeCredentialArn { get; set; } #endregion #region Parameter TdeCredentialPassword /// <summary> /// <para> /// <para>The password for the given ARN from the key store in order to access the device.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String TdeCredentialPassword { get; set; } #endregion #region Parameter Timezone /// <summary> /// <para> /// <para>The time zone of the DB instance.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public System.String Timezone { get; set; } #endregion #region Parameter VpcSecurityGroupId /// <summary> /// <para> /// <para>A list of EC2 VPC security groups to associate with this DB instance.</para><para>Not applicable. The associated list of EC2 VPC security groups is managed by the DB /// cluster. For more information, see <a>CreateDBCluster</a>.</para><para>Default: The default EC2 VPC security group for the DB subnet group's VPC.</para> /// </para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [Alias("VpcSecurityGroupIds")] public System.String[] VpcSecurityGroupId { get; set; } #endregion #region Parameter PubliclyAccessible /// <summary> /// <para> /// <para>This flag should no longer be used.</para> /// </para> /// <para>This parameter is deprecated.</para> /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] [System.ObsoleteAttribute("This parameter is not supported")] public System.Boolean? PubliclyAccessible { get; set; } #endregion #region Parameter Select /// <summary> /// Use the -Select parameter to control the cmdlet output. The default value is 'DBInstance'. /// Specifying -Select '*' will result in the cmdlet returning the whole service response (Amazon.Neptune.Model.CreateDBInstanceResponse). /// Specifying the name of a property of type Amazon.Neptune.Model.CreateDBInstanceResponse will result in that property being returned. /// Specifying -Select '^ParameterName' will result in the cmdlet returning the selected cmdlet parameter value. /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public string Select { get; set; } = "DBInstance"; #endregion #region Parameter PassThru /// <summary> /// Changes the cmdlet behavior to return the value passed to the DBInstanceIdentifier parameter. /// The -PassThru parameter is deprecated, use -Select '^DBInstanceIdentifier' instead. This parameter will be removed in a future version. /// </summary> [System.Obsolete("The -PassThru parameter is deprecated, use -Select '^DBInstanceIdentifier' instead. This parameter will be removed in a future version.")] [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter PassThru { get; set; } #endregion #region Parameter Force /// <summary> /// This parameter overrides confirmation prompts to force /// the cmdlet to continue its operation. This parameter should always /// be used with caution. /// </summary> [System.Management.Automation.Parameter(ValueFromPipelineByPropertyName = true)] public SwitchParameter Force { get; set; } #endregion protected override void ProcessRecord() { base.ProcessRecord(); var resourceIdentifiersText = FormatParameterValuesForConfirmationMsg(nameof(this.DBInstanceIdentifier), MyInvocation.BoundParameters); if (!ConfirmShouldProceed(this.Force.IsPresent, resourceIdentifiersText, "New-NPTDBInstance (CreateDBInstance)")) { return; } var context = new CmdletContext(); // allow for manipulation of parameters prior to loading into context PreExecutionContextLoad(context); #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute if (ParameterWasBound(nameof(this.Select))) { context.Select = CreateSelectDelegate<Amazon.Neptune.Model.CreateDBInstanceResponse, NewNPTDBInstanceCmdlet>(Select) ?? throw new System.ArgumentException("Invalid value for -Select parameter.", nameof(this.Select)); if (this.PassThru.IsPresent) { throw new System.ArgumentException("-PassThru cannot be used when -Select is specified.", nameof(this.Select)); } } else if (this.PassThru.IsPresent) { context.Select = (response, cmdlet) => this.DBInstanceIdentifier; } #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.AllocatedStorage = this.AllocatedStorage; context.AutoMinorVersionUpgrade = this.AutoMinorVersionUpgrade; context.AvailabilityZone = this.AvailabilityZone; context.BackupRetentionPeriod = this.BackupRetentionPeriod; context.CharacterSetName = this.CharacterSetName; context.CopyTagsToSnapshot = this.CopyTagsToSnapshot; context.DBClusterIdentifier = this.DBClusterIdentifier; context.DBInstanceClass = this.DBInstanceClass; #if MODULAR if (this.DBInstanceClass == null && ParameterWasBound(nameof(this.DBInstanceClass))) { WriteWarning("You are passing $null as a value for parameter DBInstanceClass which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.DBInstanceIdentifier = this.DBInstanceIdentifier; #if MODULAR if (this.DBInstanceIdentifier == null && ParameterWasBound(nameof(this.DBInstanceIdentifier))) { WriteWarning("You are passing $null as a value for parameter DBInstanceIdentifier which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.DBName = this.DBName; context.DBParameterGroupName = this.DBParameterGroupName; if (this.DBSecurityGroup != null) { context.DBSecurityGroup = new List<System.String>(this.DBSecurityGroup); } context.DBSubnetGroupName = this.DBSubnetGroupName; context.Domain = this.Domain; context.DomainIAMRoleName = this.DomainIAMRoleName; if (this.EnableCloudwatchLogsExport != null) { context.EnableCloudwatchLogsExport = new List<System.String>(this.EnableCloudwatchLogsExport); } context.EnableIAMDatabaseAuthentication = this.EnableIAMDatabaseAuthentication; context.EnablePerformanceInsight = this.EnablePerformanceInsight; context.Engine = this.Engine; #if MODULAR if (this.Engine == null && ParameterWasBound(nameof(this.Engine))) { WriteWarning("You are passing $null as a value for parameter Engine which is marked as required. In case you believe this parameter was incorrectly marked as required, report this by opening an issue at https://github.com/aws/aws-tools-for-powershell/issues."); } #endif context.EngineVersion = this.EngineVersion; context.Iops = this.Iops; context.KmsKeyId = this.KmsKeyId; context.LicenseModel = this.LicenseModel; context.MasterUsername = this.MasterUsername; context.MasterUserPassword = this.MasterUserPassword; context.MonitoringInterval = this.MonitoringInterval; context.MonitoringRoleArn = this.MonitoringRoleArn; context.MultiAZ = this.MultiAZ; context.OptionGroupName = this.OptionGroupName; context.PerformanceInsightsKMSKeyId = this.PerformanceInsightsKMSKeyId; context.Port = this.Port; context.PreferredBackupWindow = this.PreferredBackupWindow; context.PreferredMaintenanceWindow = this.PreferredMaintenanceWindow; context.PromotionTier = this.PromotionTier; #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute context.PubliclyAccessible = this.PubliclyAccessible; #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute context.StorageEncrypted = this.StorageEncrypted; context.StorageType = this.StorageType; if (this.Tag != null) { context.Tag = new List<Amazon.Neptune.Model.Tag>(this.Tag); } context.TdeCredentialArn = this.TdeCredentialArn; context.TdeCredentialPassword = this.TdeCredentialPassword; context.Timezone = this.Timezone; if (this.VpcSecurityGroupId != null) { context.VpcSecurityGroupId = new List<System.String>(this.VpcSecurityGroupId); } // allow further manipulation of loaded context prior to processing PostExecutionContextLoad(context); var output = Execute(context) as CmdletOutput; ProcessOutput(output); } #region IExecutor Members public object Execute(ExecutorContext context) { var cmdletContext = context as CmdletContext; // create request var request = new Amazon.Neptune.Model.CreateDBInstanceRequest(); if (cmdletContext.AllocatedStorage != null) { request.AllocatedStorage = cmdletContext.AllocatedStorage.Value; } if (cmdletContext.AutoMinorVersionUpgrade != null) { request.AutoMinorVersionUpgrade = cmdletContext.AutoMinorVersionUpgrade.Value; } if (cmdletContext.AvailabilityZone != null) { request.AvailabilityZone = cmdletContext.AvailabilityZone; } if (cmdletContext.BackupRetentionPeriod != null) { request.BackupRetentionPeriod = cmdletContext.BackupRetentionPeriod.Value; } if (cmdletContext.CharacterSetName != null) { request.CharacterSetName = cmdletContext.CharacterSetName; } if (cmdletContext.CopyTagsToSnapshot != null) { request.CopyTagsToSnapshot = cmdletContext.CopyTagsToSnapshot.Value; } if (cmdletContext.DBClusterIdentifier != null) { request.DBClusterIdentifier = cmdletContext.DBClusterIdentifier; } if (cmdletContext.DBInstanceClass != null) { request.DBInstanceClass = cmdletContext.DBInstanceClass; } if (cmdletContext.DBInstanceIdentifier != null) { request.DBInstanceIdentifier = cmdletContext.DBInstanceIdentifier; } if (cmdletContext.DBName != null) { request.DBName = cmdletContext.DBName; } if (cmdletContext.DBParameterGroupName != null) { request.DBParameterGroupName = cmdletContext.DBParameterGroupName; } if (cmdletContext.DBSecurityGroup != null) { request.DBSecurityGroups = cmdletContext.DBSecurityGroup; } if (cmdletContext.DBSubnetGroupName != null) { request.DBSubnetGroupName = cmdletContext.DBSubnetGroupName; } if (cmdletContext.Domain != null) { request.Domain = cmdletContext.Domain; } if (cmdletContext.DomainIAMRoleName != null) { request.DomainIAMRoleName = cmdletContext.DomainIAMRoleName; } if (cmdletContext.EnableCloudwatchLogsExport != null) { request.EnableCloudwatchLogsExports = cmdletContext.EnableCloudwatchLogsExport; } if (cmdletContext.EnableIAMDatabaseAuthentication != null) { request.EnableIAMDatabaseAuthentication = cmdletContext.EnableIAMDatabaseAuthentication.Value; } if (cmdletContext.EnablePerformanceInsight != null) { request.EnablePerformanceInsights = cmdletContext.EnablePerformanceInsight.Value; } if (cmdletContext.Engine != null) { request.Engine = cmdletContext.Engine; } if (cmdletContext.EngineVersion != null) { request.EngineVersion = cmdletContext.EngineVersion; } if (cmdletContext.Iops != null) { request.Iops = cmdletContext.Iops.Value; } if (cmdletContext.KmsKeyId != null) { request.KmsKeyId = cmdletContext.KmsKeyId; } if (cmdletContext.LicenseModel != null) { request.LicenseModel = cmdletContext.LicenseModel; } if (cmdletContext.MasterUsername != null) { request.MasterUsername = cmdletContext.MasterUsername; } if (cmdletContext.MasterUserPassword != null) { request.MasterUserPassword = cmdletContext.MasterUserPassword; } if (cmdletContext.MonitoringInterval != null) { request.MonitoringInterval = cmdletContext.MonitoringInterval.Value; } if (cmdletContext.MonitoringRoleArn != null) { request.MonitoringRoleArn = cmdletContext.MonitoringRoleArn; } if (cmdletContext.MultiAZ != null) { request.MultiAZ = cmdletContext.MultiAZ.Value; } if (cmdletContext.OptionGroupName != null) { request.OptionGroupName = cmdletContext.OptionGroupName; } if (cmdletContext.PerformanceInsightsKMSKeyId != null) { request.PerformanceInsightsKMSKeyId = cmdletContext.PerformanceInsightsKMSKeyId; } if (cmdletContext.Port != null) { request.Port = cmdletContext.Port.Value; } if (cmdletContext.PreferredBackupWindow != null) { request.PreferredBackupWindow = cmdletContext.PreferredBackupWindow; } if (cmdletContext.PreferredMaintenanceWindow != null) { request.PreferredMaintenanceWindow = cmdletContext.PreferredMaintenanceWindow; } if (cmdletContext.PromotionTier != null) { request.PromotionTier = cmdletContext.PromotionTier.Value; } #pragma warning disable CS0618, CS0612 //A class member was marked with the Obsolete attribute if (cmdletContext.PubliclyAccessible != null) { request.PubliclyAccessible = cmdletContext.PubliclyAccessible.Value; } #pragma warning restore CS0618, CS0612 //A class member was marked with the Obsolete attribute if (cmdletContext.StorageEncrypted != null) { request.StorageEncrypted = cmdletContext.StorageEncrypted.Value; } if (cmdletContext.StorageType != null) { request.StorageType = cmdletContext.StorageType; } if (cmdletContext.Tag != null) { request.Tags = cmdletContext.Tag; } if (cmdletContext.TdeCredentialArn != null) { request.TdeCredentialArn = cmdletContext.TdeCredentialArn; } if (cmdletContext.TdeCredentialPassword != null) { request.TdeCredentialPassword = cmdletContext.TdeCredentialPassword; } if (cmdletContext.Timezone != null) { request.Timezone = cmdletContext.Timezone; } if (cmdletContext.VpcSecurityGroupId != null) { request.VpcSecurityGroupIds = cmdletContext.VpcSecurityGroupId; } CmdletOutput output; // issue call var client = Client ?? CreateClient(_CurrentCredentials, _RegionEndpoint); try { var response = CallAWSServiceOperation(client, request); object pipelineOutput = null; pipelineOutput = cmdletContext.Select(response, this); output = new CmdletOutput { PipelineOutput = pipelineOutput, ServiceResponse = response }; } catch (Exception e) { output = new CmdletOutput { ErrorResponse = e }; } return output; } public ExecutorContext CreateContext() { return new CmdletContext(); } #endregion #region AWS Service Operation Call private Amazon.Neptune.Model.CreateDBInstanceResponse CallAWSServiceOperation(IAmazonNeptune client, Amazon.Neptune.Model.CreateDBInstanceRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Neptune", "CreateDBInstance"); try { #if DESKTOP return client.CreateDBInstance(request); #elif CORECLR return client.CreateDBInstanceAsync(request).GetAwaiter().GetResult(); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } } #endregion internal partial class CmdletContext : ExecutorContext { public System.Int32? AllocatedStorage { get; set; } public System.Boolean? AutoMinorVersionUpgrade { get; set; } public System.String AvailabilityZone { get; set; } public System.Int32? BackupRetentionPeriod { get; set; } public System.String CharacterSetName { get; set; } public System.Boolean? CopyTagsToSnapshot { get; set; } public System.String DBClusterIdentifier { get; set; } public System.String DBInstanceClass { get; set; } public System.String DBInstanceIdentifier { get; set; } public System.String DBName { get; set; } public System.String DBParameterGroupName { get; set; } public List<System.String> DBSecurityGroup { get; set; } public System.String DBSubnetGroupName { get; set; } public System.String Domain { get; set; } public System.String DomainIAMRoleName { get; set; } public List<System.String> EnableCloudwatchLogsExport { get; set; } public System.Boolean? EnableIAMDatabaseAuthentication { get; set; } public System.Boolean? EnablePerformanceInsight { get; set; } public System.String Engine { get; set; } public System.String EngineVersion { get; set; } public System.Int32? Iops { get; set; } public System.String KmsKeyId { get; set; } public System.String LicenseModel { get; set; } public System.String MasterUsername { get; set; } public System.String MasterUserPassword { get; set; } public System.Int32? MonitoringInterval { get; set; } public System.String MonitoringRoleArn { get; set; } public System.Boolean? MultiAZ { get; set; } public System.String OptionGroupName { get; set; } public System.String PerformanceInsightsKMSKeyId { get; set; } public System.Int32? Port { get; set; } public System.String PreferredBackupWindow { get; set; } public System.String PreferredMaintenanceWindow { get; set; } public System.Int32? PromotionTier { get; set; } [System.ObsoleteAttribute] public System.Boolean? PubliclyAccessible { get; set; } public System.Boolean? StorageEncrypted { get; set; } public System.String StorageType { get; set; } public List<Amazon.Neptune.Model.Tag> Tag { get; set; } public System.String TdeCredentialArn { get; set; } public System.String TdeCredentialPassword { get; set; } public System.String Timezone { get; set; } public List<System.String> VpcSecurityGroupId { get; set; } public System.Func<Amazon.Neptune.Model.CreateDBInstanceResponse, NewNPTDBInstanceCmdlet, object> Select { get; set; } = (response, cmdlet) => response.DBInstance; } } }
48.437956
395
0.614656
[ "Apache-2.0" ]
5u5hma/aws-tools-for-powershell
modules/AWSPowerShell/Cmdlets/Neptune/Basic/New-NPTDBInstance-Cmdlet.cs
46,452
C#
/* * Coda API * * # Introduction The Coda API is a RESTful API that lets you programmatically interact with Coda docs: * List and search Coda docs * Create new docs and copy existing ones * Share and publish docs * Discover pages, tables, formulas, and controls * Read, insert, upsert, update, and delete rows Version 1 of the API will be supported until at least January 15, 2021. As we update and release newer versions of the API, we reserve the right to remove older APIs and functionality with a 3-month deprecation notice. We will post about such changes as well as announce new features in the [Developers Central](https://community.coda.io/c/developers-central) section of our Community, and update the [API updates](https://coda.io/api-updates) doc. # Getting Started Our [Getting Started Guide](https://coda.io/t/Getting-Started-Guide-Coda-API_toujpmwflfy) helps you learn the basic of working with the API and shows a few ways you can use it. Check it out, and learn how to: - Read data from Coda tables and write back to them - Build a one-way sync from one Coda doc to another - Automate reminders - Sync your Google Calendar to Coda # Using the API Coda's REST API is designed to be straightforward to use. You can use the language and platform of your choice to make requests. To get a feel for the API, you can also use a tool like [Postman](https://www.getpostman.com/) or [Insomnia](https://insomnia.rest/). ## API Endpoint This API uses a base path of `https://coda.io/apis/v1`. ## Resource IDs and Links Each resource instance retrieved via the API has the following fields: - `id`: The resource's immutable ID, which can be used to refer to it within its context - `type`: The type of resource, useful for identifying it in a heterogenous collection of results - `href`: A fully qualified URI that can be used to refer to and get the latest details on the resource Most resources can be queried by their name or ID. We recommend sticking with IDs where possible, as names are fragile and prone to being changed by your doc's users. ### List Endpoints Endpoints supporting listing of resources have the following fields: - `items`: An array containing the listed resources, limited by the `limit` and `pageToken` query parameters - `nextPageLink`: If more results are available, an API link to the next page of results - `nextPageToken`: If more results are available, a page token that can be passed into the `pageToken` query parameter **The maximum page size may change at any time, and may be different for different endpoints.** Please do not rely on it for any behavior of your application. If you pass a `limit` parameter that is larger than our maximum allowed limit, we will only return as many results as our maximum limit. You should look for the presence of the `nextPageToken` on the response to see if there are more results available, rather than relying on a result set that matches your provided limit. ### Doc IDs While most object IDs will have to be discovered via the API, you may find yourself frequently wanting to get the ID of a specific Coda doc. Here's a handy tool that will extract it for you. (See if you can find the pattern!) <form> <fieldset style=\"margin: 0px 25px 25px 25px; display: inline;\"> <legend>Doc ID Extractor</legend> <input type=\"text\" id=\"de_docUrl\" placeholder=\"Paste in a Coda doc URL\" style=\"width: 250px; padding: 8px; margin-right: 20px;\" /> <span> Your doc ID is:&nbsp;&nbsp;&nbsp; <input id=\"de_docId\" readonly=\"true\" style=\"width: 150px; padding: 8px; font-family: monospace; border: 1px dashed gray;\" /> </fieldset> </form> <script> (() => { const docUrl = document.getElementById('de_docUrl'); const docId = document.getElementById('de_docId'); docUrl.addEventListener('input', () => { docId.value = (docUrl.value.match(/_d([\\w-]+)/) || [])[1] || ''; }); docId.addEventListener('mousedown', () => docId.select()); docId.addEventListener('click', () => docId.select()); })(); </script> ## Rate Limiting The Coda API sets a reasonable limit on the number of requests that can be made per minute. Once this limit is reached, calls to the API will start returning errors with an HTTP status code of 429. If you find yourself hitting rate limits and would like your individual rate to be raised, please contact us at <help+api@coda.io>. ## Consistency While edits made in Coda are shared with other collaborators in real-time, it can take a few seconds for them to become available via the API. You may also notice that changes made via the API, such as updating a row, are not immediate. These endpoints all return an HTTP 202 status code, instead of a standard 200, indicating that the edit has been accepted and queued for processing. This generally takes a few seconds, and the edit may fail if invalid. Each such edit will return a `requestId` in the response, and you can pass this `requestId` to the [`#getMutationStatus`](#operation/getMutationStatus) endpoint to find out if it has been applied. ## Volatile Formulas Coda exposes a number of \"volatile\" formulas, as as `Today()`, `Now()`, and `User()`. When used in a live Coda doc, these formulas affect what's visible in realtime, tailored to the current user. Such formulas behave differently with the API. Time-based values may only be current to the last edit made to the doc. User-based values may be blank or invalid. ## Free and Paid Workspaces We make the Coda API available to all of our users free of charge, in both free and paid workspaces. However, API usage is subject to the role of the user associated with the API token in the workspace applicable to each API request. What this means is: - For the [`#createDoc`](#operation/createDoc) endpoint specifically, the owner of the API token must be a Doc Maker (or Admin) in the workspace. If the \"Any member can create docs\" option in enabled in the workspace settings, they can be an Editor and will get auto-promoted to Doc Maker upon using this endpoint. Lastly, if in addition, the API key owner matches the \"Approved email domains\" setting, they will be auto-added to the workspace and promoted to Doc Maker upon using this endpoint This behavior applies to the API as well as any integrations that may use it, such as Zapier. ## Examples To help you get started, this documentation provides code examples in Python, Unix shell, and Google Apps Script. These examples are based on a simple doc that looks something like this: ![](https://cdn.coda.io/external/img/api_example_doc.png) ### Python examples These examples use Python 3.6+. If you don't already have the `requests` module, use `pip` or `easy_install` to get it. ### Shell examples The shell examples are intended to be run in a Unix shell. If you're on Windows, you will need to install [WSL](https://docs.microsoft.com/en-us/windows/wsl/install-win10). These examples use the standard cURL utility to pull from the API, and then process it with `jq` to extract and format example output. If you don't already have it, you can either [install it](https://stedolan.github.io/jq/) or run the command without it to see the raw JSON output. ### Google Apps Script examples ![](https://cdn.coda.io/external/img/api_gas.png) [Google Apps Script](https://script.google.com/) makes it easy to write code in a JavaScript-like syntax and easily access many Google products with built-in libraries. You can set up your scripts to run periodically, which makes it a good environment for writing tools without maintaining your own server. Coda provides a library for Google Apps Script. To use it, go into `Resources -> Libraries...` and enter the following library ID: `15IQuWOk8MqT50FDWomh57UqWGH23gjsWVWYFms3ton6L-UHmefYHS9Vl`. If you want to see the library's source code, it's available [here](https://script.google.com/d/15IQuWOk8MqT50FDWomh57UqWGH23gjsWVWYFms3ton6L-UHmefYHS9Vl/edit). Google provides autocomplete for API functions as well as generated docs. You can access these docs via the Libraries dialog by clicking on the library name. Required parameters that would be included in the URL path are positional arguments in each of these functions, followed by the request body, if applicable. All remaining parameters can be specified in the options object. ## OpenAPI/Swagger Spec In an effort to standardize our API and make it accessible, we offer an OpenAPI 3.0 specification: - [OpenAPI 3.0 spec - YAML](https://coda.io/apis/v1/openapi.yaml) - [OpenAPI 3.0 spec - JSON](https://coda.io/apis/v1/openapi.json) ### Swagger 2.0 We also offer a downgraded Swagger 2.0 version of our specification. This may be useful for a number of tools that haven't yet been adapted to OpenAPI 3.0. Here are the links: - [Swagger 2.0 spec - YAML](https://coda.io/apis/v1/swagger.yaml) - [Swagger 2.0 spec - JSON](https://coda.io/apis/v1/swagger.json) #### Postman collection To get started with prototyping the API quickly in Postman, you can use one of links above to import the Coda API into a collection. You'll then need to set the [appropriate header](#section/Authentication) and environment variables. ## Client libraries We do not currently support client libraries apart from Google Apps Script. To work with the Coda API, you can either use standard network libraries for your language, or use the appropriate Swagger Generator tool to auto-generate Coda API client libraries for your language of choice. We do not provide any guarantees that these autogenerated libraries are compatible with our API (e.g., some libraries may not work with Bearer authentication). ### OpenAPI 3.0 [Swagger Generator 3](https://generator3.swagger.io/) (that link takes you to the docs for the generator API) can generate client libraries for [these languages](https://generator3.swagger.io/v2/clients). It's relatively new and thus only has support for a limited set of languages at this time. ### Swagger 2.0 [Swagger Generator](https://generator.swagger.io/) takes in a legacy Swagger 2.0 specification, but can generate client libraries for [more languages](http://generator.swagger.io/api/gen/clients). You can also use local [CLI tools](https://swagger.io/docs/open-source-tools/swagger-codegen/) to generate these libraries. ### Third-party client libraries Some members of our amazing community have written libraries to work with our API. These aren't officially supported by Coda, but are listed here for convenience. (Please let us know if you've written a library and would like to have it included here.) - [PHP](https://github.com/danielstieber/CodaPHP) by Daniel Stieber - [Node-RED](https://github.com/serene-water/node-red-contrib-coda-io) by Mori Sugimoto - [NodeJS](https://www.npmjs.com/package/coda-js) by Parker McMullin - [Ruby](https://rubygems.org/gems/coda_docs/) by Carlos Muñoz at Monday.vc - [Python](https://github.com/Blasterai/codaio) by Mikhail Beliansky * * OpenAPI spec version: 1.0.0 * Contact: help+api@coda.io * Generated by: https://github.com/swagger-api/swagger-codegen.git */ using System; using System.Linq; using System.IO; using System.Text; using System.Text.RegularExpressions; using System.Collections; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Runtime.Serialization; using Newtonsoft.Json; using Newtonsoft.Json.Converters; using System.ComponentModel.DataAnnotations; using SwaggerDateConverter = IO.Swagger.Client.SwaggerDateConverter; namespace IO.Swagger.Model { /// <summary> /// AllOfDocSourceDoc /// </summary> [DataContract] public partial class AllOfDocSourceDoc : IEquatable<AllOfDocSourceDoc>, IValidatableObject { /// <summary> /// The type of this resource. /// </summary> /// <value>The type of this resource.</value> [JsonConverter(typeof(StringEnumConverter))] public enum TypeEnum { /// <summary> /// Enum Doc for value: doc /// </summary> [EnumMember(Value = "doc")] Doc = 1 } /// <summary> /// The type of this resource. /// </summary> /// <value>The type of this resource.</value> [DataMember(Name="type", EmitDefaultValue=false)] public TypeEnum Type { get; set; } /// <summary> /// Initializes a new instance of the <see cref="AllOfDocSourceDoc" /> class. /// </summary> /// <param name="id">ID of the Coda doc. (required).</param> /// <param name="type">The type of this resource. (required).</param> /// <param name="href">API link to the Coda doc. (required).</param> /// <param name="browserLink">Browser-friendly link to the Coda doc. (required).</param> public AllOfDocSourceDoc(string id = default(string), TypeEnum type = default(TypeEnum), string href = default(string), string browserLink = default(string)) { // to ensure "id" is required (not null) if (id == null) { throw new InvalidDataException("id is a required property for AllOfDocSourceDoc and cannot be null"); } else { this.Id = id; } // to ensure "type" is required (not null) if (type == null) { throw new InvalidDataException("type is a required property for AllOfDocSourceDoc and cannot be null"); } else { this.Type = type; } // to ensure "href" is required (not null) if (href == null) { throw new InvalidDataException("href is a required property for AllOfDocSourceDoc and cannot be null"); } else { this.Href = href; } // to ensure "browserLink" is required (not null) if (browserLink == null) { throw new InvalidDataException("browserLink is a required property for AllOfDocSourceDoc and cannot be null"); } else { this.BrowserLink = browserLink; } } /// <summary> /// ID of the Coda doc. /// </summary> /// <value>ID of the Coda doc.</value> [DataMember(Name="id", EmitDefaultValue=false)] public string Id { get; set; } /// <summary> /// API link to the Coda doc. /// </summary> /// <value>API link to the Coda doc.</value> [DataMember(Name="href", EmitDefaultValue=false)] public string Href { get; set; } /// <summary> /// Browser-friendly link to the Coda doc. /// </summary> /// <value>Browser-friendly link to the Coda doc.</value> [DataMember(Name="browserLink", EmitDefaultValue=false)] public string BrowserLink { get; set; } /// <summary> /// Returns the string presentation of the object /// </summary> /// <returns>String presentation of the object</returns> public override string ToString() { var sb = new StringBuilder(); sb.Append("class AllOfDocSourceDoc {\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Href: ").Append(Href).Append("\n"); sb.Append(" BrowserLink: ").Append(BrowserLink).Append("\n"); sb.Append("}\n"); return sb.ToString(); } /// <summary> /// Returns the JSON string presentation of the object /// </summary> /// <returns>JSON string presentation of the object</returns> public virtual string ToJson() { return JsonConvert.SerializeObject(this, Formatting.Indented); } /// <summary> /// Returns true if objects are equal /// </summary> /// <param name="input">Object to be compared</param> /// <returns>Boolean</returns> public override bool Equals(object input) { return this.Equals(input as AllOfDocSourceDoc); } /// <summary> /// Returns true if AllOfDocSourceDoc instances are equal /// </summary> /// <param name="input">Instance of AllOfDocSourceDoc to be compared</param> /// <returns>Boolean</returns> public bool Equals(AllOfDocSourceDoc input) { if (input == null) return false; return ( this.Id == input.Id || (this.Id != null && this.Id.Equals(input.Id)) ) && ( this.Type == input.Type || (this.Type != null && this.Type.Equals(input.Type)) ) && ( this.Href == input.Href || (this.Href != null && this.Href.Equals(input.Href)) ) && ( this.BrowserLink == input.BrowserLink || (this.BrowserLink != null && this.BrowserLink.Equals(input.BrowserLink)) ); } /// <summary> /// Gets the hash code /// </summary> /// <returns>Hash code</returns> public override int GetHashCode() { unchecked // Overflow is fine, just wrap { int hashCode = 41; if (this.Id != null) hashCode = hashCode * 59 + this.Id.GetHashCode(); if (this.Type != null) hashCode = hashCode * 59 + this.Type.GetHashCode(); if (this.Href != null) hashCode = hashCode * 59 + this.Href.GetHashCode(); if (this.BrowserLink != null) hashCode = hashCode * 59 + this.BrowserLink.GetHashCode(); return hashCode; } } /// <summary> /// To validate all properties of the instance /// </summary> /// <param name="validationContext">Validation context</param> /// <returns>Validation Result</returns> IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext) { yield break; } } }
85.378995
11,013
0.660552
[ "MIT" ]
coda-hq/api-csharp-lib
src/IO.Swagger/Model/AllOfDocSourceDoc.cs
18,699
C#
using HslCommunication.BasicFramework; using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; namespace CommonLibrary { /// <summary> /// 系统的关于类 /// </summary> public partial class FormAbout : Form { #region Constructor /// <summary> /// 实例化一个关于系统的窗口对象 /// </summary> /// <param name="softName">应用程序的名称</param> /// <param name="sv">系统的版本</param> /// <param name="yearStart">应用起始年份</param> /// <param name="belongName">本系统的版权归属人</param> public FormAbout(string softName, SystemVersion sv, int yearStart, string belongName) { InitializeComponent(); SoftName = softName; SV = sv; YearStart = yearStart; BelongName = belongName; Icon = UserSystem.GetFormWindowIcon(); } /// <summary> /// 实例化一个关于系统的窗口对象 /// </summary> /// <param name="sv">系统的版本</param> /// <param name="yearStart">版权起始年份</param> /// <param name="belongName">本系统的版权归属人</param> public FormAbout(SystemVersion sv, int yearStart, string belongName) { InitializeComponent(); SoftName = Application.ProductName; SV = sv; YearStart = yearStart; BelongName = belongName; } #endregion #region Quick Close private void FormAbout_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Escape) { Close(); } } #endregion #region Window Load private void FormAbout_Load(object sender, EventArgs e) { Text = "关于系统"; label5.Text = "框架版本:" + SoftBasic.FrameworkVersion.ToString(); label1.Text = SoftName; label2.Text = "V" + SV.ToString(); if (DateTime.Now.Year > YearStart) { label3.Text = $"(C) {YearStart}-{DateTime.Now.Year} {BelongName} 保留所有权利"; } else { label3.Text = $"(C) {YearStart} {BelongName} 保留所有权利"; } } #endregion #region Private Members private string SoftName = string.Empty; private SystemVersion SV = null; private int YearStart = 2017; private string BelongName = "Richard.Hu"; #endregion } }
25.613861
93
0.538462
[ "MIT" ]
491134648/ClientServerProject
CommonLibrary/BasicSupport/FormAbout.cs
2,793
C#
// Copyright (c) Josef Pihrt. All rights reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Threading.Tasks; using Microsoft.CodeAnalysis; using Roslynator.CSharp.CodeFixes; using Roslynator.Testing.CSharp; using Xunit; namespace Roslynator.CSharp.Analysis.Tests { public class RCS1018RemoveAccessibilityModifiersTests : AbstractCSharpDiagnosticVerifier<AddAccessibilityModifiersOrViceVersaAnalyzer, MemberDeclarationCodeFixProvider> { public override DiagnosticDescriptor Descriptor { get; } = DiagnosticRules.AddAccessibilityModifiersOrViceVersa; public override CSharpTestOptions Options { get { return base.Options.EnableDiagnostic(AnalyzerOptionDiagnosticRules.RemoveAccessibilityModifiers); } } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.AddAccessibilityModifiersOrViceVersa)] public async Task Test_NonNestedType() { await VerifyDiagnosticAndFixAsync(@" namespace N { /// <summary>x</summary> [|internal|] class C { } /// <summary>x</summary> [|internal|] interface I { } /// <summary>x</summary> [|internal|] enum E { } /// <summary>x</summary> [|internal|] struct S { } /// <summary>x</summary> [|internal|] delegate void D(); } ", @" namespace N { /// <summary>x</summary> class C { } /// <summary>x</summary> interface I { } /// <summary>x</summary> enum E { } /// <summary>x</summary> struct S { } /// <summary>x</summary> delegate void D(); } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.AddAccessibilityModifiersOrViceVersa)] public async Task Test_MemberDeclaration() { await VerifyDiagnosticAndFixAsync(@" using System; using System.Collections.Generic; namespace N { /// <summary>x</summary> class C { /// <summary>x</summary> [|private|] C() { } /// <summary>x</summary> [|private|] delegate void D(); /// <summary>x</summary> [|private|] event EventHandler E; /// <summary>x</summary> [|private|] event EventHandler E2 { add { } remove { } } /// <summary>x</summary> [|private|] string _fieldName; /// <summary>x</summary> [|private|] object this[int index] { get { return Items[index]; } set { Items[index] = value; } } /// <summary>x</summary> [|private|] List<object> Items { get; } = new List<object>(); } } ", @" using System; using System.Collections.Generic; namespace N { /// <summary>x</summary> class C { /// <summary>x</summary> C() { } /// <summary>x</summary> delegate void D(); /// <summary>x</summary> event EventHandler E; /// <summary>x</summary> event EventHandler E2 { add { } remove { } } /// <summary>x</summary> string _fieldName; /// <summary>x</summary> object this[int index] { get { return Items[index]; } set { Items[index] = value; } } /// <summary>x</summary> List<object> Items { get; } = new List<object>(); } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.AddAccessibilityModifiersOrViceVersa)] public async Task Test_PartialClass() { await VerifyDiagnosticAndFixAsync(@" namespace N { [|internal|] partial class C { } [|internal|] partial class C { } } ", @" namespace N { partial class C { } partial class C { } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.AddAccessibilityModifiersOrViceVersa)] public async Task Test_PartialClass2() { await VerifyDiagnosticAndFixAsync(@" namespace N { [|internal|] partial class C { } partial class C { } } ", @" namespace N { partial class C { } partial class C { } } "); } [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.AddAccessibilityModifiersOrViceVersa)] public async Task TestNoDiagnostic_OperatorDeclaration() { await VerifyNoDiagnosticAsync(@" class C { public static explicit operator C(string value) { return new C(); } public static explicit operator string(C value) { return string.Empty; } public static C operator !(C value) { return new C(); } } "); } } }
20.753247
172
0.573008
[ "Apache-2.0" ]
JosefPihrt/Roslynator
src/Tests/Analyzers.Tests/RCS1018RemoveAccessibilityModifiersTests.cs
4,796
C#
namespace EA.Iws.Domain.ImportMovement { using System; using Core.Shared; using Prsd.Core.Domain; public class ImportMovementReceipt : Entity { public Guid MovementId { get; private set; } public DateTime Date { get; private set; } public decimal Quantity { get; private set; } public ShipmentQuantityUnits Unit { get; private set; } protected ImportMovementReceipt() { } public ImportMovementReceipt(Guid movementId, ShipmentQuantity quantity, DateTime date) { MovementId = movementId; Quantity = quantity.Quantity; Unit = quantity.Units; Date = date; } } }
23.933333
95
0.60585
[ "Unlicense" ]
DEFRA/prsd-iws
src/EA.Iws.Domain/ImportMovement/ImportMovementReceipt.cs
720
C#
using System; using System.Collections.Generic; using System.Linq; using Xunit; using Xunit.Abstractions; namespace FundaAPIClient.Tests { public class CrawlerFundaRestAPITests { public CrawlerFundaRestAPITests(ITestOutputHelper output) { LoggerSetup.SetupLoggerForTest(output, nameof(CrawlerFundaRestAPITests)); } /// <summary> /// Use Local Crawl algorithm locally to check our system is working with files in the hard disk. /// </summary> [Fact] public void CrawlFundaAPIAllAmsterdamData() { #region Scenario Setup ICrawlerAlgorithm crawlerAlgorithm = new CrawlerFundaRestAPI(); Dictionary<string, string> options = new Dictionary<string, string>(); options[CrawlerConstants.MethodKey] = CrawlerConstants.MethodTop10; crawlerAlgorithm.Configure(options); var data = crawlerAlgorithm.Crawl(); #endregion #region Assertion // assert we have something atleast Assert.NotNull(data); Assert.True(data.Data.Count > 0); // there are json files crawled // Number of pages int currentPage = data.GetCurrentPage(); int maxPages = data.GetPageLimit(); // Asserting that the number of pages is equal Assert.True(maxPages == data.Data.Count, "The number of pages is not equal, we didn't crawl sucessfully."); #endregion } /// <summary> /// Use Local Crawl algorithm locally to check our system is working with files in the hard disk. /// </summary> [Fact] public void CrawlFundaAPIAllAmsterdamWithTuinData() { #region Scenario Setup ICrawlerAlgorithm crawlerAlgorithm = new CrawlerFundaRestAPI(); Dictionary<string, string> options = new Dictionary<string, string>(); options[CrawlerConstants.MethodKey] = CrawlerConstants.MethodTop10WithTuin; crawlerAlgorithm.Configure(options); var data = crawlerAlgorithm.Crawl(); #endregion #region Assertion // assert we have something atleast Assert.NotNull(data); Assert.True(data.Data.Count > 0); // there are json files crawled // Number of pages int currentPage = data.GetCurrentPage(); int maxPages = data.GetPageLimit(); // Asserting that the number of pages is equal Assert.True(maxPages == data.Data.Count, "The number of pages is not equal, we didn't crawl sucessfully."); #endregion } } }
36.106667
119
0.61743
[ "MIT" ]
raulcorreia7/Funda_Challenge
FundaAPIClient.Tests/src/CrawlerFundaRestAPI.test.cs
2,708
C#
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information namespace Dnn.PersonaBar.Pages.Components { /// <summary> /// Provides an abstraction over the current context of the Clone Module thread. /// </summary> public interface ICloneModuleExecutionContext { /// <summary> /// Sets whether the import/export process of the Visualizer module is executed /// as part of the process of cloning a module or not. /// F.i: when creating a page from a template, duplicating, etc. /// </summary> void SetCloneModuleContext(bool cloneModule); } }
38.05
87
0.679369
[ "MIT" ]
Andy9999/Dnn.Platform
Dnn.AdminExperience/Dnn.PersonaBar.Extensions/Components/Pages/ICloneModuleExecutionContext.cs
763
C#
using StructureMap; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Atropos.Server.Factory { /// <summary> /// IoC container wrapper. Can create child container <see cref="Child"/> and resolve instances <see cref="Create{T}"/> /// </summary> /// <seealso cref="System.IDisposable" /> public class Instance : IInstance { IContainer _container; public Instance(IContainer container) { _container = container; } public T Create<T>() { return _container.GetInstance<T>(); } public IInstance Child() { return new Instance(_container.CreateChildContainer()); } private bool notDisposed = true; public void Dispose() { if (notDisposed) { notDisposed = false; _container.Dispose(); } } public object Create(Type type) { return _container.GetInstance(type); } } public interface IInstance : IDisposable { T Create<T>(); IInstance Child(); object Create(Type type); } }
18.303571
120
0.684878
[ "MIT" ]
oleksabor/atropos
src/server/Factory/Instance.cs
1,027
C#
namespace Sombra.Messaging { public interface IEvent : IMessage { } }
13.666667
38
0.646341
[ "MIT" ]
JelleKerkstra/Sombra
Sombra.Messaging/IEvent.cs
84
C#
using System; using System.IO; using System.Threading.Tasks; using FluentAssertions; using SilentHunter.Testing.FluentAssertions; using Xunit; namespace SilentHunter.FileFormats.Dat.Chunks { public class AuthorInfoChunkTests { [Fact] public void Should_not_support_id() { ulong id = unchecked((ulong)DateTime.Now.Ticks); // Act Action act = () => new AuthorInfoChunk().Id = id; // Assert act.Should().Throw<Exception>(); } [Fact] public void Should_not_support_parent_id() { ulong id = unchecked((ulong)DateTime.Now.Ticks); // Act Action act = () => new AuthorInfoChunk().ParentId = id; // Assert act.Should().Throw<Exception>(); } [Fact] public async Task When_serializing_should_produce_correct_binary_data() { byte[] expectedRawData = { 00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x6b, 0x77, 0x61, 0x73, 0x00, 0x4d, 0x79, 0x20, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x00 }; var chunk = new AuthorInfoChunk { Author = "skwas", Description = "My description" }; using (var ms = new MemoryStream()) { // Act await chunk.SerializeAsync(ms, false); // Assert ms.ToArray().Should().BeEquivalentTo(expectedRawData); } } [Fact] public async Task When_serializing_without_description_should_produce_correct_binary_data() { byte[] expectedRawData = { 00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x73, 0x6b, 0x77, 0x61, 0x73, 0x00 }; var chunk = new AuthorInfoChunk { Author = "skwas", Description = null }; using (var ms = new MemoryStream()) { // Act await chunk.SerializeAsync(ms, false); // Assert ms.ToArray().Should().BeEquivalentTo(expectedRawData); } } [Fact] public async Task When_serializing_and_then_deserializing_should_produce_equivalent() { var chunk = new AuthorInfoChunk { Unknown = 123, Author = "skwas", Description = "My description" }; using (var ms = new MemoryStream()) { await chunk.SerializeAsync(ms, false); ms.Position = 0; // Act var deserializedChunk = new AuthorInfoChunk(); await deserializedChunk.DeserializeAsync(ms, false); // Assert deserializedChunk.Should().BeEquivalentTo(chunk, options => options.Excluding(c => c.UnknownData)); ms.Should().BeEof(); } } [Fact] public async Task Given_stream_contains_more_data_than_chunk_needs_should_advance_to_end() { var chunk = new AuthorInfoChunk { Author = "skwas", Description = "My file" }; using (var ms = new MemoryStream()) { await chunk.SerializeAsync(ms, false); // Add garbage to end. ms.Write(new byte[] { 0x1, 0x2 }, 0, 2); ms.Position = 0; // Act await chunk.DeserializeAsync(ms, false); // Assert ms.Should().BeEof(); } } } }
22.527559
203
0.656763
[ "Apache-2.0" ]
skwasjer/SilentHunter
test/SilentHunter.FileFormats.Tests/Dat/Chunks/AuthorInfoChunkTests.cs
2,863
C#
using System; using System.ComponentModel.DataAnnotations.Schema; namespace Oqtane.Models { public class Site : IAuditable, IDeletable { public int SiteId { get; set; } public int TenantId { get; set; } public string Name { get; set; } public int? LogoFileId { get; set; } public int? FaviconFileId { get; set; } public string DefaultThemeType { get; set; } public string DefaultLayoutType { get; set; } public string DefaultContainerType { get; set; } public string AdminContainerType { get; set; } public bool PwaIsEnabled { get; set; } public int? PwaAppIconFileId { get; set; } public int? PwaSplashIconFileId { get; set; } public bool AllowRegistration { get; set; } public string CreatedBy { get; set; } public DateTime CreatedOn { get; set; } public string ModifiedBy { get; set; } public DateTime ModifiedOn { get; set; } public string DeletedBy { get; set; } public DateTime? DeletedOn { get; set; } public bool IsDeleted { get; set; } [NotMapped] public string SiteTemplateType { get; set; } } }
35.205882
56
0.617377
[ "MIT" ]
KayYowanu/KingdomDev
Oqtane.Shared/Models/Site.cs
1,197
C#
using SwfLib.Data; namespace SwfLib.Shapes.LineStyles { public struct LineStyleRGB { public ushort Width; public SwfRGB Color; } }
14.25
37
0.608187
[ "MIT" ]
SavchukSergey/SwfLib
SwfLib/Shapes/LineStyles/LineStyleRGB.cs
173
C#
namespace DGP.Genshin.DataModels.Materials { public class Material : Primitive { public string? City { get; set; } } }
17.5
43
0.628571
[ "MIT" ]
bo6682/Snap.Genshin
DGP.Genshin/DataModels/Materials/Material.cs
142
C#
using UnityEngine; using UnityEngine.UI; namespace SweatyChair.UI { /// <summary> /// Layout element for Labels so that our parent fits to the size of our label with a specified min and max to limit size. /// Solves issue where using traditional layout elements to achieve a similar effect would not work, as it would effect other sibling elements /// </summary> [ExecuteAlways] public class LabelLayout : LayoutGroup { #region Variables [Header("Label")] [SerializeField] private RectTransform _labelTransform; [Header("Label Settings")] [SerializeField] private Vector2 _minSize; [SerializeField] private Vector2 _maxSize = new Vector2(100, 40); #endregion #region Unity Lifecycle #if UNITY_EDITOR protected override void OnValidate() { base.OnValidate(); // Validate our min and our max size so max can never be less than min _maxSize.x = Mathf.Max(_minSize.x, _maxSize.x); _maxSize.y = Mathf.Max(_minSize.y, _maxSize.y); } protected override void Reset() { base.Reset(); // Set our max size to not be 0,0 cause thats weird _maxSize = new Vector2(100, 40); } protected void OnDrawGizmosSelected() { if (UnityEditor.Selection.activeGameObject != gameObject) return; if (_labelTransform != null) { // Draw the 2D rect of our Gizmo UI to show off max size and Min Size Vector3[] cornerArray = new Vector3[4]; _labelTransform.GetWorldCorners(cornerArray); Vector3 minWorldPosition = cornerArray[0]; Vector2 minSize = Vector2.Max(_minSize, Vector2.zero); Vector2 maxSize = Vector2.Max(_maxSize, Vector2.zero); Vector3 labelMinSizeWorldPosition = cornerArray[0] + (Vector3)(minSize); Vector3 labelMaxSizeWorldPosition = cornerArray[0] + (Vector3)(maxSize); // Draw our box GizmoUtils.Draw2DRect((Vector2)minWorldPosition, labelMinSizeWorldPosition, Color.green); GizmoUtils.Draw2DRect((Vector2)minWorldPosition, labelMaxSizeWorldPosition, Color.red); } } #endif #endregion #region Calculate /// <summary> /// Calculate the layout element properties for this layout element along the given axis. /// </summary> /// <param name="axis">The axis to calculate for. 0 is horizontal and 1 is vertical.</param> /// <param name="isVertical">Is this group a vertical group?</param> protected void CalcAlongAxis(int axis) { // Get our padding for our specified axis float combinedPadding = (axis == 0 ? padding.horizontal : padding.vertical); // Get our default data float totalMin = combinedPadding; float totalPreferred = combinedPadding; float totalFlexible = 0; // If we have our label, get our min and preferred label size and add it to our total size if (_labelTransform != null) { GetChildSizes(_labelTransform, axis, out float min, out float preferred, out float flexible); // If we are calculating our vertical axis if (axis == 1) { totalMin = Mathf.Max(min + combinedPadding, totalMin); totalPreferred = Mathf.Max(preferred + combinedPadding, totalPreferred); totalFlexible = Mathf.Max(flexible, totalFlexible); } else { totalMin += min; totalPreferred += preferred; totalFlexible += flexible; } } // Limit our min and preferred size to within our min and max bounds float minAxisSize = (axis == 0) ? _minSize.x : _minSize.y; float maxAxisSize = (axis == 0) ? _maxSize.x : _maxSize.y; minAxisSize += combinedPadding; maxAxisSize += combinedPadding; totalMin = Mathf.Clamp(totalMin, minAxisSize, maxAxisSize); totalPreferred = Mathf.Clamp(totalPreferred, totalMin, maxAxisSize); // Then set our rect size to our correct size SetLayoutInputForAxis(totalMin, totalPreferred, totalFlexible, axis); } /// <summary> /// Gets and returns all of our child sizes we need for calculation /// </summary> /// <param name="child"></param> /// <param name="axis"></param> /// <param name="min"></param> /// <param name="preferred"></param> /// <param name="flexible"></param> private void GetChildSizes(RectTransform child, int axis, out float min, out float preferred, out float flexible) { min = LayoutUtility.GetMinSize(child, axis); preferred = LayoutUtility.GetPreferredSize(child, axis); // We force our flexible size to at least 1 so it fits into our parent correctly flexible = Mathf.Max(LayoutUtility.GetFlexibleSize(child, axis), 1); } #endregion #region Set Along Axis /// <summary> /// Set the positions and sizes of the child layout elements for the given axis. /// </summary> /// <param name="axis">The axis to handle. 0 is horizontal and 1 is vertical.</param> /// <param name="isVertical">Is this group a vertical group?</param> protected void SetChildrenAlongAxis(int axis) { // Only set our children size if we have one if (_labelTransform != null) { // Get our size and our sizes float size = rectTransform.rect.size[axis]; float alignmentOnAxis = GetAlignmentOnAxis(axis); // If we are on out vertical axis if ((axis == 1)) { // Set our Child Size along our Vertical Axis float innerSize = size - (axis == 0 ? padding.horizontal : padding.vertical); GetChildSizes(_labelTransform, axis, out float min, out float preferred, out float flexible); float requiredSpace = Mathf.Clamp(innerSize, min, flexible > 0 ? size : preferred); float startOffset = GetStartOffset(axis, requiredSpace); SetChildAlongAxis(_labelTransform, axis, startOffset, requiredSpace); } else { // Get our combined padding float combinedPadding = (axis == 0 ? padding.horizontal : padding.vertical); // Calulate our Min and our Preferred sizes clamped by our min and max float minAxisSize = (axis == 0) ? _minSize.x : _minSize.y; float maxAxisSize = (axis == 0) ? _maxSize.x : _maxSize.y; minAxisSize += combinedPadding; maxAxisSize += combinedPadding; float totalMin = Mathf.Clamp(GetTotalMinSize(axis), minAxisSize, maxAxisSize); float totalPreferred = Mathf.Clamp(GetTotalPreferredSize(axis), totalMin, maxAxisSize - combinedPadding); // Calculate our label position within our child float pos = (axis == 0 ? padding.left : padding.top); if (GetTotalFlexibleSize(axis) == 0 && totalPreferred < size) pos = GetStartOffset(axis, totalPreferred - combinedPadding); // If our min is not equal to our preferred size, we lerp between the two to get the correct size of our label float minMaxLerp = 0; if (totalMin != totalPreferred) minMaxLerp = Mathf.Clamp01((size - totalMin) / (totalPreferred - totalMin)); // Finally get our child Sizes GetChildSizes(_labelTransform, axis, out float min, out float preferred, out float flexible); // Limit our child size min = Mathf.Max(min, totalMin) - combinedPadding; preferred = Mathf.Min(preferred, totalPreferred); // Get and finalize our child size float childSize = Mathf.Lerp(min, preferred, minMaxLerp); childSize = Mathf.Max(childSize, 0); SetChildAlongAxis(_labelTransform, axis, pos, childSize); } } } #endregion #region ILayout /// <summary> /// Called by the layout system. Also see ILayoutElement /// </summary> public override void CalculateLayoutInputHorizontal() { base.CalculateLayoutInputHorizontal(); CalcAlongAxis(0); } /// <summary> /// Called by the layout system. Also see ILayoutElement /// </summary> public override void CalculateLayoutInputVertical() { CalcAlongAxis(1); } /// <summary> /// Called by the layout system. Also see ILayoutElement /// </summary> public override void SetLayoutHorizontal() { SetChildrenAlongAxis(0); } /// <summary> /// Called by the layout system. Also see ILayoutElement /// </summary> public override void SetLayoutVertical() { SetChildrenAlongAxis(1); } #endregion } }
32.222672
143
0.696947
[ "MIT" ]
Sweaty-Chair/SC-Essentials
Assets/SweatyChair/Essentials/UI/BetterUI/LabelLayout.cs
7,961
C#
using System.Threading; using Ardalis.GuardClauses; using LanguageExt; using Microsoft.Azure.Cosmos; using PayrollProcessor.Core.Domain.Features.Departments; using PayrollProcessor.Core.Domain.Intrastructure.Operations.Commands; using static LanguageExt.Prelude; namespace PayrollProcessor.Data.Persistence.Features.Departments { public class DepartmentPayrollUpdateCommandHandler : ICommandHandler<DepartmentPayrollUpdateCommand, DepartmentPayroll> { private readonly CosmosClient client; public DepartmentPayrollUpdateCommandHandler(CosmosClient client) { Guard.Against.Null(client, nameof(client)); this.client = client; } public TryAsync<DepartmentPayroll> Execute(DepartmentPayrollUpdateCommand command, CancellationToken token) => DepartmentPayrollRecord .Map .Merge(command.Employee, command.EmployeePayroll, command.DepartmentPayroll) .Apply(record => client .GetDepartmentsContainer() .ReplaceItemAsync( record, record.Id.ToString(), new PartitionKey(record.PartitionKey), new ItemRequestOptions { IfMatchEtag = record.ETag }, token)) .Apply(TryAsync) .Map(CosmosResponse.Unwrap) .Map(DepartmentPayrollRecord.Map.ToDepartmentPayroll); } }
39.135135
123
0.67058
[ "MIT" ]
KyleMcMaster/payroll-processor
api/PayrollProcessor.Data.Persistence/Features/Departments/DepartmentPayrollUpdateCommandHandler.cs
1,448
C#
namespace TravelShare.Web.Infrastructure.Mapping { using AutoMapper; public interface IHaveCustomMappings { void CreateMappings(IMapperConfiguration configuration); } }
19.5
64
0.738462
[ "MIT" ]
antoanLengerdjiev/TravelShareMvc
Web/TravelShare.Web.Infrastructure/Mapping/IHaveCustomMappings.cs
197
C#
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class UIController : MonoBehaviour { private void Update() { if (Input.GetKeyDown(KeyCode.Escape)) { Application.Quit(); } } public void Refresh() { GameData.worldGenerator.refresh = true; } public void RandomiseSeed() { GameData.worldGenerator.randomiseSeed = true; } public void ChangeSeed(string newVal) { GameData.worldGenerator.seed = long.Parse(newVal); } public void ChangeWorldSize(string newVal) { GameData.worldGenerator.WorldSizeInChunks = int.Parse(newVal); } public void ChangeSmoothTerrain(bool newVal) { GameData.worldGenerator.smoothTerrain = newVal; } public void ChangeNoiseScale(float newVal) { GameData.worldGenerator.noiseScale = newVal; } public void ChangeNumOctave(float newVal) { GameData.worldGenerator.numOctaves = (int)newVal; } }
18.038462
64
0.747335
[ "MIT" ]
J05HM0N5TER/complex-game-systems
Assets/Scripts/UIController.cs
940
C#
using System; using System.Security.Claims; using System.Threading.Tasks; using Microsoft.AspNet.Identity; using Microsoft.AspNet.Identity.EntityFramework; using Microsoft.AspNet.Identity.Owin; using Microsoft.Owin; using Microsoft.Owin.Security; using TechMech.Models; namespace TechMech { public class EmailService : IIdentityMessageService { public Task SendAsync(IdentityMessage message) { // email service here to send an email. return Task.FromResult(0); } } public class SmsService : IIdentityMessageService { public Task SendAsync(IdentityMessage message) { // SMS service here to send a text message. return Task.FromResult(0); } } // Configure the application user manager used in this application. UserManager is defined in ASP.NET Identity and is used by the application. public class ApplicationUserManager : UserManager<ApplicationUser> { public ApplicationUserManager(IUserStore<ApplicationUser> store) : base(store) { } public static ApplicationUserManager Create(IdentityFactoryOptions<ApplicationUserManager> options, IOwinContext context) { var manager = new ApplicationUserManager(new UserStore<ApplicationUser>(context.Get<ApplicationDbContext>())); // Configure validation logic for usernames manager.UserValidator = new UserValidator<ApplicationUser>(manager) { AllowOnlyAlphanumericUserNames = false, RequireUniqueEmail = true }; // Configure validation logic for passwords manager.PasswordValidator = new PasswordValidator { RequiredLength = 6, RequireNonLetterOrDigit = true, RequireDigit = true, RequireLowercase = true, RequireUppercase = true, }; // Configure user lockout defaults manager.UserLockoutEnabledByDefault = true; manager.DefaultAccountLockoutTimeSpan = TimeSpan.FromMinutes(5); manager.MaxFailedAccessAttemptsBeforeLockout = 5; // Register two factor authentication providers. This application uses Phone and Emails as a step of receiving a code for verifying the user // You can write your own provider and plug it in here. manager.RegisterTwoFactorProvider("Phone Code", new PhoneNumberTokenProvider<ApplicationUser> { MessageFormat = "Your security code is {0}" }); manager.RegisterTwoFactorProvider("Email Code", new EmailTokenProvider<ApplicationUser> { Subject = "Security Code", BodyFormat = "Your security code is {0}" }); manager.EmailService = new EmailService(); manager.SmsService = new SmsService(); var dataProtectionProvider = options.DataProtectionProvider; if (dataProtectionProvider != null) { manager.UserTokenProvider = new DataProtectorTokenProvider<ApplicationUser>(dataProtectionProvider.Create("ASP.NET Identity")); } return manager; } } // Configure the application sign-in manager which is used in this application. public class ApplicationSignInManager : SignInManager<ApplicationUser, string> { public ApplicationSignInManager(ApplicationUserManager userManager, IAuthenticationManager authenticationManager) : base(userManager, authenticationManager) { } public override Task<ClaimsIdentity> CreateUserIdentityAsync(ApplicationUser user) { return user.GenerateUserIdentityAsync((ApplicationUserManager)UserManager); } public static ApplicationSignInManager Create(IdentityFactoryOptions<ApplicationSignInManager> options, IOwinContext context) { return new ApplicationSignInManager(context.GetUserManager<ApplicationUserManager>(), context.Authentication); } } }
39.622642
152
0.655
[ "MIT" ]
kiran8143/TechMech
TechMech/App_Start/IdentityConfig.cs
4,202
C#
namespace Fic.XTB.MarketingCustomChannelManager.Proxy { public class LocaleProxy { public string Lcid; public string DisplayName; public LocaleProxy(string lcid, string displayName) { Lcid = lcid; DisplayName = displayName; } public override string ToString() { return DisplayName; } } }
20.15
59
0.568238
[ "MIT" ]
DynamicsNinja/MarketingCustomChannelManager
MarketingCustomChannelManager/Proxy/LocaleProxy.cs
405
C#
using Aim.ClusterNode; using Akka.Cluster.Utility; namespace TalkServer { public class ClusterNodeContext : ClusterNodeContextBase { [ClusterActor("User")] public DistributedActorTableRef<string> UserTable; public DistributedActorTableContainerRef<string> UserTableContainer; [ClusterActor("Room")] public DistributedActorTableRef<string> RoomTable; [ClusterActor("Bot")] public DistributedActorTableRef<long> BotTable; } }
24.85
76
0.712274
[ "MIT" ]
SaladLab/Chatty
src/TalkServer/ClusterNodeContext.cs
499
C#
namespace SMOWMS.DTOs.Enum { public enum EuserInfo { 修改昵称 = 0, 修改地址 = 1, 修改电话 = 2, 修改邮箱 = 3, 修改密码 = 4, 修改生日 = 5, 修改性别 = 6, 修改头像 = 7, 修改所属区域=8 } }
14.4375
27
0.385281
[ "MIT" ]
comsmobiler/SmoWMS
Source/SMOWMS.DTOs/Enum/EuserInfo.cs
309
C#
using System.Collections.Generic; using UnityEngine; public class MapTile : MonoBehaviour { private List<GameTile> tiles; private void Awake() { tiles = new List<GameTile>(); } public void AddNewTileToTheList(GameTile tile) { tiles.Add(tile); } public bool HasPhysicalTile() { for(int i = 0; i < tiles.Count; i++) { if(tiles[i] is PhysicalTile) { return true; } } return false; } public void ApplyEffectsOfTheTile(Character characterToApplyEffect) { for (int i = 0; i < tiles.Count; i++) // Iterar en cada GameTile de esta MapTile { //Aplicar el efecto de la tile (sin importar que tipo es) tiles[i].ApplyEffects(characterToApplyEffect); if (tiles[i] is CollectableTile) //Si es un CollectableTile { //Remover el collectable porque se supone que lo agarramos Destroy(tiles[i].gameObject); tiles.RemoveAt(i); } } } }
23.595745
88
0.546438
[ "MIT" ]
MarcoElz/Unity-GridRoguelike
Assets/Scripts/MapTile.cs
1,111
C#
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace ezviz.net.exceptions { public class EzvizNetException : Exception { public EzvizNetException(string message) : base(message) { } public EzvizNetException(string message, Exception? inner) : base(message, inner) { } } }
18.636364
89
0.663415
[ "MIT" ]
duanemck/ezviz.net
ezviz.net/exceptions/EzvizNetException.cs
412
C#
// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; using System.Collections.Generic; using System.Text.Json; using System.Text.Json.Serialization; using Microsoft.AspNetCore.Mvc.Core; using static Microsoft.AspNetCore.Mvc.Infrastructure.ProblemDetailsJsonConverter; namespace Microsoft.AspNetCore.Mvc.Infrastructure { internal class ValidationProblemDetailsJsonConverter : JsonConverter<ValidationProblemDetails> { private static readonly JsonEncodedText Errors = JsonEncodedText.Encode("errors"); public override ValidationProblemDetails Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) { var problemDetails = new ValidationProblemDetails(); if (reader.TokenType != JsonTokenType.StartObject) { throw new JsonException(Resources.UnexpectedJsonEnd); } while (reader.Read() && reader.TokenType != JsonTokenType.EndObject) { if (reader.ValueTextEquals(Errors.EncodedUtf8Bytes)) { var errors = JsonSerializer.Deserialize<Dictionary<string, string[]>>(ref reader, options); if (errors is not null) { foreach (var item in errors) { problemDetails.Errors[item.Key] = item.Value; } } } else { ReadValue(ref reader, problemDetails, options); } } if (reader.TokenType != JsonTokenType.EndObject) { throw new JsonException(Resources.UnexpectedJsonEnd); } return problemDetails; } public override void Write(Utf8JsonWriter writer, ValidationProblemDetails value, JsonSerializerOptions options) { writer.WriteStartObject(); WriteProblemDetails(writer, value, options); writer.WriteStartObject(Errors); foreach (var kvp in value.Errors) { writer.WritePropertyName(kvp.Key); JsonSerializer.Serialize(writer, kvp.Value, kvp.Value?.GetType() ?? typeof(object), options); } writer.WriteEndObject(); writer.WriteEndObject(); } } }
35.830986
131
0.594733
[ "Apache-2.0" ]
1175169074/aspnetcore
src/Mvc/Mvc.Core/src/Infrastructure/ValidationProblemDetailsJsonConverter.cs
2,544
C#
using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using MediatR; using Microsoft.Extensions.Logging; namespace Sidekick.Mediator.Internal { internal class LoggingMediator : MediatR.Mediator { private readonly ILogger logger; public LoggingMediator( ServiceFactory serviceFactory, ILogger logger) : base(serviceFactory) { this.logger = logger; } /// <summary> /// Overriding the default PublishCore so that we can log notifications /// </summary> protected override async Task PublishCore(IEnumerable<Func<INotification, CancellationToken, Task>> allHandlers, INotification notification, CancellationToken cancellationToken) { foreach (var handler in allHandlers) { var handlerType = handler?.Target?.GetType().GetFields()?.FirstOrDefault()?.GetValue(handler.Target)?.GetType(); var handlerNameWithGuid = $"[{Guid.NewGuid().ToString().Substring(0, 8)}] { handlerType?.FullName ?? notification?.GetType()?.FullName}"; var stopwatch = Stopwatch.StartNew(); logger.LogInformation($"[Mediator:START] {handlerNameWithGuid}"); await handler(notification, cancellationToken).ConfigureAwait(false); stopwatch.Stop(); logger.LogInformation($"[Mediator:END] {handlerNameWithGuid}; Execution time={stopwatch.ElapsedMilliseconds}ms"); } } } }
36.066667
185
0.648799
[ "MIT" ]
5c0r/Sidekick
src/Sidekick.Mediator/Internal/LoggingMediator.cs
1,623
C#
// <auto-generated> // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // </auto-generated> namespace k8s.Models { using Newtonsoft.Json; using System.Linq; /// <summary> /// HorizontalPodAutoscalerBehavior configures the scaling behavior of the /// target in both Up and Down directions (scaleUp and scaleDown fields /// respectively). /// </summary> public partial class V2beta2HorizontalPodAutoscalerBehavior { /// <summary> /// Initializes a new instance of the /// V2beta2HorizontalPodAutoscalerBehavior class. /// </summary> public V2beta2HorizontalPodAutoscalerBehavior() { CustomInit(); } /// <summary> /// Initializes a new instance of the /// V2beta2HorizontalPodAutoscalerBehavior class. /// </summary> /// <param name="scaleDown">scaleDown is scaling policy for scaling /// Down. If not set, the default value is to allow to scale down to /// minReplicas pods, with a 300 second stabilization window (i.e., the /// highest recommendation for the last 300sec is used).</param> /// <param name="scaleUp">scaleUp is scaling policy for scaling Up. If /// not set, the default value is the higher of: /// * increase no more than 4 pods per 60 seconds /// * double the number of pods per 60 seconds /// No stabilization is used.</param> public V2beta2HorizontalPodAutoscalerBehavior(V2beta2HPAScalingRules scaleDown = default(V2beta2HPAScalingRules), V2beta2HPAScalingRules scaleUp = default(V2beta2HPAScalingRules)) { ScaleDown = scaleDown; ScaleUp = scaleUp; CustomInit(); } /// <summary> /// An initialization method that performs custom operations like setting defaults /// </summary> partial void CustomInit(); /// <summary> /// Gets or sets scaleDown is scaling policy for scaling Down. If not /// set, the default value is to allow to scale down to minReplicas /// pods, with a 300 second stabilization window (i.e., the highest /// recommendation for the last 300sec is used). /// </summary> [JsonProperty(PropertyName = "scaleDown")] public V2beta2HPAScalingRules ScaleDown { get; set; } /// <summary> /// Gets or sets scaleUp is scaling policy for scaling Up. If not set, /// the default value is the higher of: /// * increase no more than 4 pods per 60 seconds /// * double the number of pods per 60 seconds /// No stabilization is used. /// </summary> [JsonProperty(PropertyName = "scaleUp")] public V2beta2HPAScalingRules ScaleUp { get; set; } } }
39.337838
187
0.632429
[ "MIT" ]
pdeligia/nekara-artifact
TSVD/kubernetes-client/src/KubernetesClient/generated/Models/V2beta2HorizontalPodAutoscalerBehavior.cs
2,911
C#
/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the translate-2017-07-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.Translate.Model { /// <summary> /// The properties of the custom terminology. /// </summary> public partial class TerminologyProperties { private string _arn; private DateTime? _createdAt; private string _description; private EncryptionKey _encryptionKey; private DateTime? _lastUpdatedAt; private string _name; private int? _sizeBytes; private string _sourceLanguageCode; private List<string> _targetLanguageCodes = new List<string>(); private int? _termCount; /// <summary> /// Gets and sets the property Arn. /// <para> /// The Amazon Resource Name (ARN) of the custom terminology. /// </para> /// </summary> public string Arn { get { return this._arn; } set { this._arn = value; } } // Check to see if Arn property is set internal bool IsSetArn() { return this._arn != null; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time at which the custom terminology was created, based on the timestamp. /// </para> /// </summary> public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// <summary> /// Gets and sets the property Description. /// <para> /// The description of the custom terminology properties. /// </para> /// </summary> [AWSProperty(Max=256)] public string Description { get { return this._description; } set { this._description = value; } } // Check to see if Description property is set internal bool IsSetDescription() { return this._description != null; } /// <summary> /// Gets and sets the property EncryptionKey. /// <para> /// The encryption key for the custom terminology. /// </para> /// </summary> public EncryptionKey EncryptionKey { get { return this._encryptionKey; } set { this._encryptionKey = value; } } // Check to see if EncryptionKey property is set internal bool IsSetEncryptionKey() { return this._encryptionKey != null; } /// <summary> /// Gets and sets the property LastUpdatedAt. /// <para> /// The time at which the custom terminology was last update, based on the timestamp. /// </para> /// </summary> public DateTime LastUpdatedAt { get { return this._lastUpdatedAt.GetValueOrDefault(); } set { this._lastUpdatedAt = value; } } // Check to see if LastUpdatedAt property is set internal bool IsSetLastUpdatedAt() { return this._lastUpdatedAt.HasValue; } /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the custom terminology. /// </para> /// </summary> [AWSProperty(Min=1, Max=256)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property SizeBytes. /// <para> /// The size of the file used when importing a custom terminology. /// </para> /// </summary> public int SizeBytes { get { return this._sizeBytes.GetValueOrDefault(); } set { this._sizeBytes = value; } } // Check to see if SizeBytes property is set internal bool IsSetSizeBytes() { return this._sizeBytes.HasValue; } /// <summary> /// Gets and sets the property SourceLanguageCode. /// <para> /// The language code for the source text of the translation request for which the custom /// terminology is being used. /// </para> /// </summary> [AWSProperty(Min=2, Max=5)] public string SourceLanguageCode { get { return this._sourceLanguageCode; } set { this._sourceLanguageCode = value; } } // Check to see if SourceLanguageCode property is set internal bool IsSetSourceLanguageCode() { return this._sourceLanguageCode != null; } /// <summary> /// Gets and sets the property TargetLanguageCodes. /// <para> /// The language codes for the target languages available with the custom terminology /// file. All possible target languages are returned in array. /// </para> /// </summary> public List<string> TargetLanguageCodes { get { return this._targetLanguageCodes; } set { this._targetLanguageCodes = value; } } // Check to see if TargetLanguageCodes property is set internal bool IsSetTargetLanguageCodes() { return this._targetLanguageCodes != null && this._targetLanguageCodes.Count > 0; } /// <summary> /// Gets and sets the property TermCount. /// <para> /// The number of terms included in the custom terminology. /// </para> /// </summary> public int TermCount { get { return this._termCount.GetValueOrDefault(); } set { this._termCount = value; } } // Check to see if TermCount property is set internal bool IsSetTermCount() { return this._termCount.HasValue; } } }
30.317597
107
0.56427
[ "Apache-2.0" ]
DetlefGolze/aws-sdk-net
sdk/src/Services/Translate/Generated/Model/TerminologyProperties.cs
7,064
C#
using System; using System.Threading.Tasks; using Chromium.Remote; using Neutronium.Core; using Neutronium.Core.WebBrowserEngine.Window; using System.Collections.Concurrent; using Chromium; namespace Neutronium.WebBrowserEngine.ChromiumFx.EngineBinding { public class ChromiumFxDispatcher : IDispatcher { private readonly CfrV8Context _Context; private readonly CfrBrowser _Browser; private readonly IWebSessionLogger _Logger; private readonly ConcurrentQueue<Action> _Actions = new ConcurrentQueue<Action>(); private readonly CfrTask _CfrTask; private volatile bool _IsExecutingActions; private CfrTaskRunner TaskRunner { get; } public ChromiumFxDispatcher(CfrBrowser browser, CfrV8Context context, IWebSessionLogger logger) { _Logger = logger; _Browser = browser; _Context = context; TaskRunner = _Context.TaskRunner; _CfrTask = new CfrTask(); _CfrTask.Execute += CfrTask_Execute; } private void CfrTask_Execute(object sender, CfrEventArgs e) { _IsExecutingActions = true; using (GetContext()) { Action action; while (_Actions.TryDequeue(out action)) { try { action(); } catch (Exception exception) { LogException(exception); } } _IsExecutingActions = false; } } public Task RunAsync(Action act) { var taskCompletionSource = new TaskCompletionSource<int>(); var action = ToTaskAction(act, taskCompletionSource); RunInContext(action); return taskCompletionSource.Task; } public void Dispatch(Action act) { RunInContext(act); } private void LogException(Exception exception) { _Logger?.Info($"Exception encountred during task dispatch: {exception.Message}"); } public void Run(Action act) { RunAsync(act).Wait(); } public Task<T> EvaluateAsync<T>(Func<T> compute) { var taskCompletionSource = new TaskCompletionSource<T>(); var action = ToTaskAction(compute, taskCompletionSource); RunInContext(action); return taskCompletionSource.Task; } public T Evaluate<T>(Func<T> compute) { return EvaluateAsync(compute).Result; } public bool IsInContext() { return TaskRunner.BelongsToCurrentThread(); } private Action ToTaskAction(Action perform, TaskCompletionSource<int> taskCompletionSource) { return ToTaskAction(() => { perform(); return 0; }, taskCompletionSource); } private Action ToTaskAction<T>(Func<T> perform, TaskCompletionSource<T> taskCompletionSource) { Action result = () => { try { var taskResult = perform(); taskCompletionSource.TrySetResult(taskResult); } catch (Exception exception) { LogException(exception); taskCompletionSource.TrySetException(exception); } }; return result; } private ChromiumFxContext GetContext() { return new ChromiumFxContext(_Context, _Logger); } private struct ChromiumFxContext : IDisposable { private readonly CfrV8Context _Context; private readonly IWebSessionLogger _Logger; public ChromiumFxContext(CfrV8Context context, IWebSessionLogger logger) { _Logger = logger; _Context = context; _Context.Enter(); } public void Dispose() { try { _Context.Exit(); } catch (Exception ex) { _Logger?.Info($"Problem in exiting chromiumFx context {ex}"); } } } private ChromiumFxCRemoteContext GetRemoteContext() { return new ChromiumFxCRemoteContext(_Browser); } private void RunInContext(Action action) { if (CfxRemoteCallContext.IsInContext) { action(); return; } _Actions.Enqueue(action); if (_IsExecutingActions) return; using (GetRemoteContext()) { TaskRunner.PostTask(_CfrTask); } } } }
29.226744
104
0.525761
[ "MIT" ]
AhireSwati/TrendingCSharp
WebBrowserEngine/ChromiumFX/HTMEngine.ChromiumFX/EngineBinding/ChromiumFXDispatcher.cs
5,029
C#
using System; using System.Data; using System.Reflection; using General.Configuration; namespace General { /// <summary> /// A singleton implementation to encapsulate necessary elements for the Common Library. /// </summary> public sealed class Manager { #region Singleton Implementation private static readonly Lazy<Manager> LazyMe = new Lazy<Manager>(() => new Manager()); /// <summary> /// Gets the single and the only instance of the <see cref="Manager"/>. /// </summary> public static Manager Instance { get { return LazyMe.Value; } } private Manager() { _serviceProvider = new CommonServiceProvider(); } #endregion private ICommonServiceProvider _serviceProvider; /// <summary> /// Gets or sets a Service Provider for the Common library. /// </summary> /// <value> /// A Service Provider for the Common library. /// </value> /// <remarks> /// Becareful if you want to set or make changes to this property. /// Many other classes and functions in the Common Library use this property to get the Service Provider. /// </remarks> public ICommonServiceProvider ServiceProvider { get { return _serviceProvider; } set { if (value == null) throw new NoNullAllowedException("ServiceProvider does not accept null value."); _serviceProvider = value; } } /// <summary> /// Gets a container of global settings by calling <see cref="Manager"/>.Instance.ServiceProveder.Get(). /// </summary> /// <value> /// A container of global settings. /// </value> /// <remarks> /// Becareful if you want to set or make changes to this property. /// Many other classes and functions in the Common Library use this property to get an initialized instance of <see cref="GlobalSetting"/>. /// </remarks> public GlobalSetting GlobalSetting { get { return ServiceProvider.GetService<IGlobalSettingProvider>().Get(); } } public Assembly ApplicationAssembly { get; set; } } }
33.26087
147
0.5939
[ "MIT" ]
Thrita/Common
Src/General/Manager.cs
2,297
C#
using System; using System.Collections.Generic; using System.Text; using UtyRx.InternalUtil; namespace UtyRx { public sealed class Subject<T> : ISubject<T>, IDisposable, IOptimizedObservable<T> { object observerLock = new object(); bool isStopped; bool isDisposed; Exception lastError; IObserver<T> outObserver = EmptyObserver<T>.Instance; public bool HasObservers { get { return !(outObserver is EmptyObserver<T>) && !isStopped && !isDisposed; } } public void OnCompleted() { IObserver<T> old; lock (observerLock) { ThrowIfDisposed(); if (isStopped) return; old = outObserver; outObserver = EmptyObserver<T>.Instance; isStopped = true; } old.OnCompleted(); } public void OnError(Exception error) { if (error == null) throw new ArgumentNullException("error"); IObserver<T> old; lock (observerLock) { ThrowIfDisposed(); if (isStopped) return; old = outObserver; outObserver = EmptyObserver<T>.Instance; isStopped = true; lastError = error; } old.OnError(error); } public void OnNext(T value) { outObserver.OnNext(value); } public IDisposable Subscribe(IObserver<T> observer) { if (observer == null) throw new ArgumentNullException("observer"); var ex = default(Exception); lock (observerLock) { ThrowIfDisposed(); if (!isStopped) { var listObserver = outObserver as ListObserver<T>; if (listObserver != null) { outObserver = listObserver.Add(observer); } else { var current = outObserver; if (current is EmptyObserver<T>) { outObserver = observer; } else { outObserver = new ListObserver<T>(new ImmutableList<IObserver<T>>(new[] { current, observer })); } } return new Subscription(this, observer); } ex = lastError; } if (ex != null) { observer.OnError(ex); } else { observer.OnCompleted(); } return Disposable.Empty; } public void Dispose() { lock (observerLock) { isDisposed = true; outObserver = DisposedObserver<T>.Instance; } } void ThrowIfDisposed() { if (isDisposed) throw new ObjectDisposedException(""); } public bool IsRequiredSubscribeOnCurrentThread() { return false; } class Subscription : IDisposable { readonly object gate = new object(); Subject<T> parent; IObserver<T> unsubscribeTarget; public Subscription(Subject<T> parent, IObserver<T> unsubscribeTarget) { this.parent = parent; this.unsubscribeTarget = unsubscribeTarget; } public void Dispose() { lock (gate) { if (parent != null) { lock (parent.observerLock) { var listObserver = parent.outObserver as ListObserver<T>; if (listObserver != null) { parent.outObserver = listObserver.Remove(unsubscribeTarget); } else { parent.outObserver = EmptyObserver<T>.Instance; } unsubscribeTarget = null; parent = null; } } } } } } }
27.532544
124
0.417365
[ "Apache-2.0" ]
reinterpretcat/csharp-libs
utyrx/UtyRx/Subjects/Subject.cs
4,655
C#
using System; namespace P02.NestedLoops { internal class Program { private static int[] combinations; static void Main(string[] args) { var n = int.Parse(Console.ReadLine()); combinations = new int[n]; GenerateCombinations(0); } private static void GenerateCombinations(int index) { if (index >= combinations.Length) { Console.WriteLine(string.Join(" ", combinations)); return; } for (int i = 1; i <= combinations.Length; i++) { combinations[index] = i; GenerateCombinations(index + 1); } } } }
22.454545
66
0.48448
[ "MIT" ]
Iceto04/SoftUni
Algorithms Fundamentals/02. Combinatorial Problems/RecursionAndCombinatorialProblems/P02.NestedLoops/Program.cs
743
C#