-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpointericon.go
More file actions
57 lines (51 loc) · 1.1 KB
/
pointericon.go
File metadata and controls
57 lines (51 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
package view
import (
graphics "github.com/AndroidGoLab/binder/android/graphics"
"github.com/AndroidGoLab/binder/parcel"
)
// Code generated by aidlgen. DO NOT EDIT.
type PointerIcon struct {
Type int32
HotSpotX float32
HotSpotY float32
DrawNativeDropShadow bool
Bitmap graphics.Bitmap
}
var _ parcel.Parcelable = (*PointerIcon)(nil)
func (s *PointerIcon) MarshalParcel(
p *parcel.Parcel,
) error {
p.WriteInt32(s.Type)
if _err := s.Bitmap.MarshalParcel(p); _err != nil {
return _err
}
p.WriteFloat32(s.HotSpotX)
p.WriteFloat32(s.HotSpotY)
p.WriteBool(s.DrawNativeDropShadow)
return nil
}
func (s *PointerIcon) UnmarshalParcel(
p *parcel.Parcel,
) error {
var _err error
s.Type, _err = p.ReadInt32()
if _err != nil {
return _err
}
if _err := s.Bitmap.UnmarshalParcel(p); _err != nil {
return _err
}
s.HotSpotX, _err = p.ReadFloat32()
if _err != nil {
return _err
}
s.HotSpotY, _err = p.ReadFloat32()
if _err != nil {
return _err
}
s.DrawNativeDropShadow, _err = p.ReadBool()
if _err != nil {
return _err
}
return nil
}