1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-31 00:42:50 -05:00

core: add screenshot utility

This commit is contained in:
bbedward
2025-12-05 14:59:08 -05:00
parent 844e91dc9e
commit 6d0c56554f
17 changed files with 2894 additions and 109 deletions

View File

@@ -0,0 +1,18 @@
package screenshot
import "github.com/AvengeMedia/DankMaterialShell/core/internal/wayland/shm"
type PixelFormat = shm.PixelFormat
const (
FormatARGB8888 = shm.FormatARGB8888
FormatXRGB8888 = shm.FormatXRGB8888
FormatABGR8888 = shm.FormatABGR8888
FormatXBGR8888 = shm.FormatXBGR8888
)
type ShmBuffer = shm.Buffer
func CreateShmBuffer(width, height, stride int) (*ShmBuffer, error) {
return shm.CreateBuffer(width, height, stride)
}