ImGuiCs
cs-target runtime support for the generated bindings (imguics.ImGui):
native addresses cross as Haxe Float (53-bit mantissa covers user-space
pointers on every supported platform), converted to System.IntPtr at the
P/Invoke boundary. Scratch memory is allocated once (Marshal.AllocHGlobal
through DCImGui.Alloc) - nothing here allocates garbage per frame.
Static Members
numScratch: FloatFloat address type used across the generated cs bindings.
arrScratchA: FloatarrScratchB: FloatptrSize: IntNative pointer size in bytes.
init(): Voidptr(a: Float): cs.system.IntPtrHaxe Float address → native pointer.
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| cs.system.IntPtr |
addr(p: cs.system.IntPtr): FloatNative pointer → Haxe Float address.
| Name | Type |
|---|---|
p |
cs.system.IntPtr |
| Returns |
|---|
| Float |
nullPtr(): cs.system.IntPtr| Returns |
|---|
| cs.system.IntPtr |
| Name | Type |
|---|---|
v |
Float |
| Returns |
|---|
| cs.UInt64 |
toI64(v: Float): haxe.Int64| Name | Type |
|---|---|
v |
Float |
| Returns |
|---|
| haxe.Int64 |
| Name | Type |
|---|---|
v |
cs.UInt64 |
| Returns |
|---|
| Float |
from64i(v: haxe.Int64): Float| Name | Type |
|---|---|
v |
haxe.Int64 |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
v |
Int |
| Returns |
|---|
| cs.Int8 |
| Name | Type |
|---|---|
v |
Int |
| Returns |
|---|
| cs.UInt8 |
| Name | Type |
|---|---|
v |
Int |
| Returns |
|---|
| cs.Int16 |
| Name | Type |
|---|---|
v |
Int |
| Returns |
|---|
| cs.UInt16 |
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
a |
Float |
v |
Float |
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
a |
Float |
v |
Float |
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
a |
Float |
v |
Int |
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| Float |
| Name | Type |
|---|---|
a |
Float |
v |
Float |
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| Int |
| Name | Type |
|---|---|
a |
Float |
v |
Int |
Copy a Haxe Array
| Name | Type |
|---|---|
values |
Array<Float> |
| Returns |
|---|
| Float |
Read a native pointer at addr.
| Name | Type |
|---|---|
addr |
Float |
| Returns |
|---|
| Float |
isNull(p: cs.system.IntPtr): BoolWhether a native pointer is NULL.
| Name | Type |
|---|---|
p |
cs.system.IntPtr |
| Returns |
|---|
| Bool |
Read a u64 at addr as a Haxe Float (registry ids are small).
| Name | Type |
|---|---|
a |
Float |
| Returns |
|---|
| Float |
readString(p: cs.system.IntPtr): StringRead a NUL-terminated UTF-8 native string.
| Name | Type |
|---|---|
p |
cs.system.IntPtr |
| Returns |
|---|
| String |
Copy s (UTF-8, clamped to maxLength bytes on a codepoint boundary,
zero-terminated) into the persistent buffer; returns its Float address.
| Name | Type |
|---|---|
s |
String |
maxLength |
Int |
| Returns |
|---|
| Float |
Whether the persistent buffer differs from original.
| Name | Type |
|---|---|
original |
String |
| Returns |
|---|
| Bool |
strBufRead(): StringThe persistent buffer content as a Haxe String.
| Returns |
|---|
| String |
Private Members
bufAddr: FloatbufCap: Intinited: BooldynFloats: FloatdynFloatsCap: IntMetadata
| Name | Parameters |
|---|---|
:hxGen |
- |