forked from johnfercher/maroto
/
Font.go
138 lines (109 loc) · 2.72 KB
/
Font.go
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
// Code generated by mockery v2.2.1. DO NOT EDIT.
package mocks
import (
color "github.com/jmacd/maroto/pkg/color"
consts "github.com/jmacd/maroto/pkg/consts"
mock "github.com/stretchr/testify/mock"
)
// Font is an autogenerated mock type for the Font type
type Font struct {
mock.Mock
}
// GetColor provides a mock function with given fields:
func (_m *Font) GetColor() color.Color {
ret := _m.Called()
var r0 color.Color
if rf, ok := ret.Get(0).(func() color.Color); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(color.Color)
}
return r0
}
// GetFamily provides a mock function with given fields:
func (_m *Font) GetFamily() string {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
return r0
}
// GetFont provides a mock function with given fields:
func (_m *Font) GetFont() (string, consts.Style, float64) {
ret := _m.Called()
var r0 string
if rf, ok := ret.Get(0).(func() string); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(string)
}
var r1 consts.Style
if rf, ok := ret.Get(1).(func() consts.Style); ok {
r1 = rf()
} else {
r1 = ret.Get(1).(consts.Style)
}
var r2 float64
if rf, ok := ret.Get(2).(func() float64); ok {
r2 = rf()
} else {
r2 = ret.Get(2).(float64)
}
return r0, r1, r2
}
// GetScaleFactor provides a mock function with given fields:
func (_m *Font) GetScaleFactor() float64 {
ret := _m.Called()
var r0 float64
if rf, ok := ret.Get(0).(func() float64); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(float64)
}
return r0
}
// GetSize provides a mock function with given fields:
func (_m *Font) GetSize() float64 {
ret := _m.Called()
var r0 float64
if rf, ok := ret.Get(0).(func() float64); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(float64)
}
return r0
}
// GetStyle provides a mock function with given fields:
func (_m *Font) GetStyle() consts.Style {
ret := _m.Called()
var r0 consts.Style
if rf, ok := ret.Get(0).(func() consts.Style); ok {
r0 = rf()
} else {
r0 = ret.Get(0).(consts.Style)
}
return r0
}
// SetColor provides a mock function with given fields: _a0
func (_m *Font) SetColor(_a0 color.Color) {
_m.Called(_a0)
}
// SetFamily provides a mock function with given fields: family
func (_m *Font) SetFamily(family string) {
_m.Called(family)
}
// SetFont provides a mock function with given fields: family, style, size
func (_m *Font) SetFont(family string, style consts.Style, size float64) {
_m.Called(family, style, size)
}
// SetSize provides a mock function with given fields: size
func (_m *Font) SetSize(size float64) {
_m.Called(size)
}
// SetStyle provides a mock function with given fields: style
func (_m *Font) SetStyle(style consts.Style) {
_m.Called(style)
}