func (rs *ResourceSet) SetCursorTranslation(resID Identifier, langID uint16, cursor *Cursor) error {
	b := &bytes.Buffer{}
	binary.Write(b, binary.LittleEndian, cursorDirHeader{
		Type:  2,
		Count: uint16(len(cursor.images)),
	})

	cursor.order()
	for _, img := range cursor.images {
		id := rs.lastCursorID + 1

		binary.Write(b, binary.LittleEndian, cursorResDirEntry{
			cursorInfo: img.info,
			Id:         id,
		})

		if err := rs.Set(RT_CURSOR, ID(id), LCIDNeutral, img.resData()); err != nil {
			return err
		}
	}
	return rs.Set(RT_GROUP_CURSOR, resID, langID, b.Bytes())
}
// SetCursorTranslation adds the cursor to a specific language in the resource set.
SetCursorTranslation adds the cursor to a specific language in the resource set.
// SetCursorTranslation adds the cursor to a specific language in the resource set .
func (rs *ResourceSet) SetCursorTranslation(resID Identifier, langID uint16, cursor *Cursor) error {
	b := &bytes.Buffer{}
	binary.Write(b, binary.LittleEndian, cursorDirHeader{
		Type:  2,
		Count: uint16(len(cursor.images)),
	})
	cursor.order()
	for _, img := range cursor.images {
		id := rs.lastCursorID + 1
		binary.Write(b, binary.LittleEndian, cursorResDirEntry{
			cursorInfo: img.info,
			Id:         id,
		})
		if err := rs.Set(RT_CURSOR, ID(id), LCIDNeutral, img.resData()); err != nil {
			return err
		}
	}
	return rs.Set(RT_GROUP_CURSOR, resID, langID, b.Bytes())
}
func ( rs * ResourceSet ) SetCursorTranslation ( resID Identifier , langID uint16 , cursor * Cursor ) error { b := & bytes . Buffer { } binary . Write ( b , binary . LittleEndian , cursorDirHeader { Type : 2 , Count : uint16 ( len ( cursor . images ) ) , } ) cursor . order ( ) for _ , img := range cursor . images { id := rs . lastCursorID + 1 binary . Write ( b , binary . LittleEndian , cursorResDirEntry { cursorInfo : img . info , Id : id , } ) if err := rs . Set ( RT_CURSOR , ID ( id ) , LCIDNeutral , img . resData ( ) ) ; err != nil { return err } } return rs . Set ( RT_GROUP_CURSOR , resID , langID , b . Bytes ( ) ) }
SetCursorTranslation adds the cursor to a specific language in the resource set.
SetCursorTranslation adds the cursor to a specific language in the resource set .