MCPcopy Create free account
hub / github.com/andlabs/ui / toLibui

Method toLibui

draw.go:344–353  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

342}
343
344func (m *DrawMatrix) toLibui() *C.uiDrawMatrix {
345 cm := C.pkguiAllocMatrix()
346 cm.M11 = C.double(m.M11)
347 cm.M12 = C.double(m.M12)
348 cm.M21 = C.double(m.M21)
349 cm.M22 = C.double(m.M22)
350 cm.M31 = C.double(m.M31)
351 cm.M32 = C.double(m.M32)
352 return cm
353}
354
355func (m *DrawMatrix) fromLibui(cm *C.uiDrawMatrix) {
356 m.M11 = float64(cm.M11)

Callers 7

TranslateMethod · 0.95
ScaleMethod · 0.95
RotateMethod · 0.95
SkewMethod · 0.95
MultiplyMethod · 0.95
InvertibleMethod · 0.95
InvertMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected