package gbox
import "github.com/diamondburned/gotk4/pkg/core/gbox"
Index ¶
- func Assign(v interface{}) uintptr
- func AssignOnce(v interface{}) uintptr
- func Delete(ptr uintptr)
- func Get(ptr uintptr) interface{}
- func Pop(ptr uintptr) interface{}
Functions ¶
func Assign ¶
func Assign(v interface{}) uintptr
Assign assigns the given value and returns the fake pointer.
func AssignOnce ¶
func AssignOnce(v interface{}) uintptr
AssignOnce stores the given value so that, when the value is retrieved, it will immediately be deleted.
func Delete ¶
func Delete(ptr uintptr)
Delete deletes a boxed value. It is exposed to C under the name "callbackDelete".
func Get ¶
func Get(ptr uintptr) interface{}
Get gets the value from the given fake pointer. The context must match the given value in Assign.
func Pop ¶
func Pop(ptr uintptr) interface{}
Pop gets a value and deletes it atomically.
Source Files ¶
- Version
- v0.3.1 (latest)
- Published
- Jul 31, 2024
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 3 weeks ago –
Tools for package owners.