// See cairo_set_antialias().
//
// C API documentation: http://cairographics.org/manual/cairo-cairo-t.html#cairo-set-antialias
359227
func (cr *Context) SetAntialias(antialias Antialias) {
	C.cairo_set_antialias(cr.Ptr, C.cairo_antialias_t(antialias))
	if err := cr.status(); err != nil {
		panic(err)
	}
}
600987
func (d *Decoder) antialias3() {
	for gr := 0; gr < 2; gr++ {
		for ch := 0; ch < d.nChannels; ch++ {
			sbLimit := 32
			if d.blockType[gr][ch] == 2 {
				if d.mixedBlockFlag[gr][ch] == 1 {
					sbLimit = 2
				} else {
					continue
				}
			}

			for sb := 1; sb < sbLimit; sb++ {
				for i := 0; i < 8; i++ {
					tmp0 := d.huffmanData[gr][ch][18*sb-1-i]
					tmp1 := d.huffmanData[gr][ch][18*sb+i]
					d.huffmanData[gr][ch][18*sb-1-i] = tmp0*cs[i] - tmp1*ca[i]
					d.huffmanData[gr][ch][18*sb+i] = tmp1*cs[i] + tmp0*ca[i]
				}
			}
		}
	}
}
1342165
func (s *UserPoolType) SetAliasAttributes(v []*string) *UserPoolType {
	s.AliasAttributes = v
	return s
}
518814
func (s *Target) SetSqsParameters(v *SqsParameters) *Target {
	s.SqsParameters = v
	return s
}
964162
func (s *WorkspaceDirectory) SetAlias(v string) *WorkspaceDirectory {
	s.Alias = &v
	return s
}
771036
func (s *PostContentInput) SetBotAlias(v string) *PostContentInput {
	s.BotAlias = &v
	return s
}
66748
func (pattern *Pattern) SetMatrix(matrix *Matrix) {
	C.cairo_pattern_set_matrix(pattern.Ptr, (*C.cairo_matrix_t)(unsafe.Pointer(matrix)))
	if err := pattern.status(); err != nil {
		panic(err)
	}
}
1208503
func ParseTabletAlias(aliasStr string) (*topodatapb.TabletAlias, error) {
	nameParts := strings.Split(aliasStr, "-")
	if len(nameParts) != 2 {
		return nil, fmt.Errorf("invalid tablet alias: '%s', expecting format: '<cell>-<uid>'", aliasStr)
	}
	uid, err := ParseUID(nameParts[1])
	if err != nil {
		return nil, vterrors.Wrapf(err, "invalid tablet uid in alias '%s'", aliasStr)
	}
	return &topodatapb.TabletAlias{
		Cell: nameParts[0],
		Uid:  uid,
	}, nil
}
1258375
func (s *AccountWithRestoreAccess) SetAccountAlias(v string) *AccountWithRestoreAccess {
	s.AccountAlias = &v
	return s
}
1062172
func (s *DeleteAliasInput) SetAliasId(v string) *DeleteAliasInput {
	s.AliasId = &v
	return s
}
201492
func (c *Canvas) SetPixels(pixels []uint8) {
	c.gf.Dirty()

	mainthread.Call(func() {
		tex := c.Texture()
		tex.Begin()
		tex.SetPixels(0, 0, tex.Width(), tex.Height(), pixels)
		tex.End()
	})
}
319875
func (t *Texture) SetPixels(x, y, w, h int, pixels []uint8) {
	if len(pixels) != w*h*4 {
		panic("set pixels: wrong number of pixels")
	}
	gl.TexSubImage2D(
		gl.TEXTURE_2D,
		0,
		int32(x),
		int32(y),
		int32(w),
		int32(h),
		gl.RGBA,
		gl.UNSIGNED_BYTE,
		gl.Ptr(pixels),
	)
}
1336137
func (s *ListAliasesOutput) SetAliases(v []*string) *ListAliasesOutput {
	s.Aliases = v
	return s
}
1059203
func (surface *Surface) SetColorMod(r, g, b uint8) error {
	if C.SDL_SetSurfaceColorMod(surface.cptr(), C.Uint8(r), C.Uint8(g), C.Uint8(b)) != 0 {
		return GetError()
	}
	return nil
}
192568
func (s *Edge) SetAliases(v []*Alias) *Edge {
	s.Aliases = v
	return s
}
288942
func (s *DescribeOrganizationOutput) SetAlias(v string) *DescribeOrganizationOutput {
	s.Alias = &v
	return s
}
740531
func (vr *vectorRenderer) SetDPI(dpi float64) {
	vr.dpi = dpi
	vr.c.dpi = dpi
}