dsstore

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package dsstore is a package for writing .DS_Store files on macOS. Original code from https://github.com/LinusU/node-ds-store (MIT)

Index

Constants

This section is empty.

Variables

View Source
var DSStoreClean []byte

Functions

This section is empty.

Types

type DSStore

type DSStore struct {
	Entries []entry.Entry
}

func NewDSStore

func NewDSStore() *DSStore

func (*DSStore) AddEntry

func (ds *DSStore) AddEntry(entry entry.Entry)

func (*DSStore) SetBackgroundImage added in v0.2.0

func (ds *DSStore) SetBackgroundImage(path string)

func (*DSStore) SetBgColor

func (ds *DSStore) SetBgColor(r, g, b float64)

func (*DSStore) SetBgToDefault

func (ds *DSStore) SetBgToDefault()

func (*DSStore) SetIconPos

func (ds *DSStore) SetIconPos(name string, x, y uint32)

func (*DSStore) SetIconSize

func (ds *DSStore) SetIconSize(size float64)

func (*DSStore) SetLabelPlaceToBottom

func (ds *DSStore) SetLabelPlaceToBottom(bottom bool)

func (*DSStore) SetLabelSize

func (ds *DSStore) SetLabelSize(size float64)

func (*DSStore) SetWindow

func (ds *DSStore) SetWindow(width, height, x, y int)

func (*DSStore) Write

func (ds *DSStore) Write(filePath string) error

type Entries

type Entries []entry.Entry

func (Entries) Len

func (e Entries) Len() int

func (Entries) Less

func (e Entries) Less(i, j int) bool

func (Entries) Swap

func (e Entries) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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