nativewindow

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 16, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Raw CGo bindings for Android native window

Index

Constants

View Source
const (
	ANATIVEWINDOW_TRANSFORM_IDENTITY          = 0
	ANATIVEWINDOW_TRANSFORM_MIRROR_HORIZONTAL = 1
	ANATIVEWINDOW_TRANSFORM_MIRROR_VERTICAL   = 2
	ANATIVEWINDOW_TRANSFORM_ROTATE_90         = 4
	ANATIVEWINDOW_TRANSFORM_ROTATE_180        = 3
	ANATIVEWINDOW_TRANSFORM_ROTATE_270        = 7
)
View Source
const (
	ANATIVEWINDOW_CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS = 0
	ANATIVEWINDOW_CHANGE_FRAME_RATE_ALWAYS           = 1
)
View Source
const (
	ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT      = 0
	ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_FIXED_SOURCE = 1
)
View Source
const (
	WINDOW_FORMAT_RGBA_8888 = 1
	WINDOW_FORMAT_RGBX_8888 = 2
	WINDOW_FORMAT_RGB_565   = 4
)

Variables

This section is empty.

Functions

func ANativeWindow_acquire

func ANativeWindow_acquire(window *ANativeWindow)

func ANativeWindow_clearFrameRate

func ANativeWindow_clearFrameRate(window *ANativeWindow) int32

func ANativeWindow_getBuffersDataSpace

func ANativeWindow_getBuffersDataSpace(window *ANativeWindow) int32

func ANativeWindow_getBuffersDefaultDataSpace

func ANativeWindow_getBuffersDefaultDataSpace(window *ANativeWindow) int32

func ANativeWindow_getFormat

func ANativeWindow_getFormat(window *ANativeWindow) int32

func ANativeWindow_getHeight

func ANativeWindow_getHeight(window *ANativeWindow) int32

func ANativeWindow_getWidth

func ANativeWindow_getWidth(window *ANativeWindow) int32

func ANativeWindow_lock

func ANativeWindow_lock(window *ANativeWindow, outBuffer *ANativeWindow_Buffer, inOutDirtyBounds *ARect) int32

func ANativeWindow_release

func ANativeWindow_release(window *ANativeWindow)

func ANativeWindow_setBuffersDataSpace

func ANativeWindow_setBuffersDataSpace(window *ANativeWindow, dataSpace int32) int32

func ANativeWindow_setBuffersGeometry

func ANativeWindow_setBuffersGeometry(window *ANativeWindow, width int32, height int32, format int32) int32

func ANativeWindow_setBuffersTransform

func ANativeWindow_setBuffersTransform(window *ANativeWindow, transform int32) int32

func ANativeWindow_setFrameRate

func ANativeWindow_setFrameRate(window *ANativeWindow, frameRate float32, compatibility int8) int32

func ANativeWindow_setFrameRateWithChangeStrategy

func ANativeWindow_setFrameRateWithChangeStrategy(window *ANativeWindow, frameRate float32, compatibility int8, changeFrameRateStrategy int8) int32

func ANativeWindow_tryAllocateBuffers

func ANativeWindow_tryAllocateBuffers(window *ANativeWindow)

func ANativeWindow_unlockAndPost

func ANativeWindow_unlockAndPost(window *ANativeWindow) int32

Types

type ANativeWindow

type ANativeWindow C.ANativeWindow

type ANativeWindow_Buffer

type ANativeWindow_Buffer C.ANativeWindow_Buffer

type ARect

type ARect C.ARect

type CgoAllocMap

type CgoAllocMap struct {
	// contains filtered or unexported fields
}

CgoAllocMap stores pointers to C allocated memory for future reference.

func (*CgoAllocMap) Add

func (a *CgoAllocMap) Add(ptr unsafe.Pointer)

func (*CgoAllocMap) Borrow

func (a *CgoAllocMap) Borrow(b *CgoAllocMap)

func (*CgoAllocMap) Free

func (a *CgoAllocMap) Free()

func (*CgoAllocMap) IsEmpty

func (a *CgoAllocMap) IsEmpty() bool

type SliceHeader

type SliceHeader struct {
	Data unsafe.Pointer
	Len  int
	Cap  int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL