package core:sys/darwin/CoreFoundation

Warning: This was generated for -target:darwin_arm64 and might not represent every target this package supports.

⌘K
Ctrl+K
or
/

    Types

    CGFloat ¶

    CGFloat :: distinct f64

    CGRect ¶

    CGRect :: struct {
    	using origin: CGPoint,
    	using size: CGSize,
    }

    CGSize ¶

    CGSize :: struct {
    	width:  CGFloat,
    	height: CGFloat,
    }

    HashCode ¶

    HashCode :: distinct uint

    HashCode ¶

    HashCode :: String
     

    same as CFStringRef

    Related Procedures With Parameters
    Related Procedures With Returns

    Index ¶

    Index :: distinct int
    Related Procedures With Parameters
    Related Procedures With Returns

    OptionFlags ¶

    OptionFlags :: distinct uint

    Range ¶

    Range :: struct {
    	location: Index,
    	length:   Index,
    }
    Related Procedures With Parameters

    TypeID ¶

    TypeID :: distinct uint

    TypeRef ¶

    TypeRef :: distinct rawptr
    Related Procedures With Parameters

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    CFRelease ¶

    CFRelease :: proc "c" (cf: TypeRef) ---
     

    Releases a Core Foundation object.

    CGPoint ¶

    CGPoint :: StringGetLength
     

    Returns the number (in terms of UTF-16 code pairs) of Unicode characters in a string.

    OptionFlags ¶

    OptionFlags :: StringGetBytes
     

    Fetches a range of the characters from a string into a byte buffer after converting the characters to a specified encoding.

    ReleaseObject ¶

    ReleaseObject :: proc(cf: TypeRef) {…}
    Related Procedure Groups

    ReleaseString ¶

    ReleaseString :: proc(theString: String) {…}
     

    Releases a Core Foundation string.

    Related Procedure Groups

    StringCopyToOdinString ¶

    StringCopyToOdinString :: proc(theString: String, allocator := context.allocator) -> (str: string, ok: bool) #optional_ok {…}

    StringGetMaximumSizeForEncoding ¶

    StringGetMaximumSizeForEncoding :: proc "c" (length: Index, encoding: StringEncoding) -> Index ---
     

    Returns the maximum number of bytes a string of a specified length (in Unicode characters) will take up if encoded in a specified encoding.

    StringIsEncodingAvailable ¶

    StringIsEncodingAvailable :: proc "c" (encoding: StringEncoding) -> b8 ---

    StringMakeConstantString ¶

    StringMakeConstantString :: proc "c" (#const c: cstring) -> String ---

    TypeID ¶

    TypeID :: StringGetCString
     

    Copies the character contents of a string to a local C string buffer after converting the characters to a given encoding.

    Procedure Groups

    Release ¶

    Release :: proc{
    	ReleaseObject,
    	ReleaseString,
    }
    
     

    Releases a Core Foundation object.

    Source Files

    Generation Information

    Generated with odin version dev-2026-03 (vendor "odin") Windows_amd64 @ 2026-03-16 21:30:54.818415200 +0000 UTC