feat(ui): add SetFocusable to Widget interface and GTK implementations
- commit
- 6c70122d2d7efbf1f4365c44b7a128c1f4b733ab
- author
- brice · · 2025-12-29 17:19 UTC
- committer
- brice · · 2025-12-30 13:48 UTC
- parent
- 5f672c9
- signature
- unsigned
5 files · +783 -0
M .mockery.yaml +3 -0
| @@ -23,6 +23,9 @@ packages: | |||
| 23 | 23 | HardwareSurveyor: {} | |
| 24 | 24 | ColorSchemeDetector: {} | |
| 25 | 25 | ColorSchemeResolver: {} | |
| 26 | + | TextInputTarget: {} | |
| 27 | + | FocusedInputProvider: {} | |
| 28 | + | AccentPickerUI: {} | |
| 26 | 29 | github.com/bnema/dumber/internal/domain/repository: | |
| 27 | 30 | config: | |
| 28 | 31 | dir: '{{.InterfaceDir}}/mocks' | |
| @@ -23,6 +23,9 @@ packages: | |||||
| 23 | HardwareSurveyor: {} | 23 | HardwareSurveyor: {} | ||
| 24 | ColorSchemeDetector: {} | 24 | ColorSchemeDetector: {} | ||
| 25 | ColorSchemeResolver: {} | 25 | ColorSchemeResolver: {} | ||
| 26 | + | TextInputTarget: {} | |||
| 27 | + | FocusedInputProvider: {} | |||
| 28 | + | AccentPickerUI: {} | |||
| 26 | github.com/bnema/dumber/internal/domain/repository: | 29 | github.com/bnema/dumber/internal/domain/repository: | ||
| 27 | config: | 30 | config: | ||
| 28 | dir: '{{.InterfaceDir}}/mocks' | 31 | dir: '{{.InterfaceDir}}/mocks' | ||
M internal/application/port/mocks/mocks.go +410 -0
| @@ -14,6 +14,162 @@ import ( | |||
| 14 | 14 | mock "github.com/stretchr/testify/mock" | |
| 15 | 15 | ) | |
| 16 | 16 | ||
| 17 | + | // NewMockAccentPickerUI creates a new instance of MockAccentPickerUI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |
| 18 | + | // The first argument is typically a *testing.T value. | |
| 19 | + | func NewMockAccentPickerUI(t interface { | |
| 20 | + | mock.TestingT | |
| 21 | + | Cleanup(func()) | |
| 22 | + | }) *MockAccentPickerUI { | |
| 23 | + | mock := &MockAccentPickerUI{} | |
| 24 | + | mock.Mock.Test(t) | |
| 25 | + | ||
| 26 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |
| 27 | + | ||
| 28 | + | return mock | |
| 29 | + | } | |
| 30 | + | ||
| 31 | + | // MockAccentPickerUI is an autogenerated mock type for the AccentPickerUI type | |
| 32 | + | type MockAccentPickerUI struct { | |
| 33 | + | mock.Mock | |
| 34 | + | } | |
| 35 | + | ||
| 36 | + | type MockAccentPickerUI_Expecter struct { | |
| 37 | + | mock *mock.Mock | |
| 38 | + | } | |
| 39 | + | ||
| 40 | + | func (_m *MockAccentPickerUI) EXPECT() *MockAccentPickerUI_Expecter { | |
| 41 | + | return &MockAccentPickerUI_Expecter{mock: &_m.Mock} | |
| 42 | + | } | |
| 43 | + | ||
| 44 | + | // Hide provides a mock function for the type MockAccentPickerUI | |
| 45 | + | func (_mock *MockAccentPickerUI) Hide() { | |
| 46 | + | _mock.Called() | |
| 47 | + | return | |
| 48 | + | } | |
| 49 | + | ||
| 50 | + | // MockAccentPickerUI_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide' | |
| 51 | + | type MockAccentPickerUI_Hide_Call struct { | |
| 52 | + | *mock.Call | |
| 53 | + | } | |
| 54 | + | ||
| 55 | + | // Hide is a helper method to define mock.On call | |
| 56 | + | func (_e *MockAccentPickerUI_Expecter) Hide() *MockAccentPickerUI_Hide_Call { | |
| 57 | + | return &MockAccentPickerUI_Hide_Call{Call: _e.mock.On("Hide")} | |
| 58 | + | } | |
| 59 | + | ||
| 60 | + | func (_c *MockAccentPickerUI_Hide_Call) Run(run func()) *MockAccentPickerUI_Hide_Call { | |
| 61 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 62 | + | run() | |
| 63 | + | }) | |
| 64 | + | return _c | |
| 65 | + | } | |
| 66 | + | ||
| 67 | + | func (_c *MockAccentPickerUI_Hide_Call) Return() *MockAccentPickerUI_Hide_Call { | |
| 68 | + | _c.Call.Return() | |
| 69 | + | return _c | |
| 70 | + | } | |
| 71 | + | ||
| 72 | + | func (_c *MockAccentPickerUI_Hide_Call) RunAndReturn(run func()) *MockAccentPickerUI_Hide_Call { | |
| 73 | + | _c.Run(run) | |
| 74 | + | return _c | |
| 75 | + | } | |
| 76 | + | ||
| 77 | + | // IsVisible provides a mock function for the type MockAccentPickerUI | |
| 78 | + | func (_mock *MockAccentPickerUI) IsVisible() bool { | |
| 79 | + | ret := _mock.Called() | |
| 80 | + | ||
| 81 | + | if len(ret) == 0 { | |
| 82 | + | panic("no return value specified for IsVisible") | |
| 83 | + | } | |
| 84 | + | ||
| 85 | + | var r0 bool | |
| 86 | + | if returnFunc, ok := ret.Get(0).(func() bool); ok { | |
| 87 | + | r0 = returnFunc() | |
| 88 | + | } else { | |
| 89 | + | r0 = ret.Get(0).(bool) | |
| 90 | + | } | |
| 91 | + | return r0 | |
| 92 | + | } | |
| 93 | + | ||
| 94 | + | // MockAccentPickerUI_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible' | |
| 95 | + | type MockAccentPickerUI_IsVisible_Call struct { | |
| 96 | + | *mock.Call | |
| 97 | + | } | |
| 98 | + | ||
| 99 | + | // IsVisible is a helper method to define mock.On call | |
| 100 | + | func (_e *MockAccentPickerUI_Expecter) IsVisible() *MockAccentPickerUI_IsVisible_Call { | |
| 101 | + | return &MockAccentPickerUI_IsVisible_Call{Call: _e.mock.On("IsVisible")} | |
| 102 | + | } | |
| 103 | + | ||
| 104 | + | func (_c *MockAccentPickerUI_IsVisible_Call) Run(run func()) *MockAccentPickerUI_IsVisible_Call { | |
| 105 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 106 | + | run() | |
| 107 | + | }) | |
| 108 | + | return _c | |
| 109 | + | } | |
| 110 | + | ||
| 111 | + | func (_c *MockAccentPickerUI_IsVisible_Call) Return(b bool) *MockAccentPickerUI_IsVisible_Call { | |
| 112 | + | _c.Call.Return(b) | |
| 113 | + | return _c | |
| 114 | + | } | |
| 115 | + | ||
| 116 | + | func (_c *MockAccentPickerUI_IsVisible_Call) RunAndReturn(run func() bool) *MockAccentPickerUI_IsVisible_Call { | |
| 117 | + | _c.Call.Return(run) | |
| 118 | + | return _c | |
| 119 | + | } | |
| 120 | + | ||
| 121 | + | // Show provides a mock function for the type MockAccentPickerUI | |
| 122 | + | func (_mock *MockAccentPickerUI) Show(accents []rune, selectedCallback func(accent rune), cancelCallback func()) { | |
| 123 | + | _mock.Called(accents, selectedCallback, cancelCallback) | |
| 124 | + | return | |
| 125 | + | } | |
| 126 | + | ||
| 127 | + | // MockAccentPickerUI_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show' | |
| 128 | + | type MockAccentPickerUI_Show_Call struct { | |
| 129 | + | *mock.Call | |
| 130 | + | } | |
| 131 | + | ||
| 132 | + | // Show is a helper method to define mock.On call | |
| 133 | + | // - accents []rune | |
| 134 | + | // - selectedCallback func(accent rune) | |
| 135 | + | // - cancelCallback func() | |
| 136 | + | func (_e *MockAccentPickerUI_Expecter) Show(accents interface{}, selectedCallback interface{}, cancelCallback interface{}) *MockAccentPickerUI_Show_Call { | |
| 137 | + | return &MockAccentPickerUI_Show_Call{Call: _e.mock.On("Show", accents, selectedCallback, cancelCallback)} | |
| 138 | + | } | |
| 139 | + | ||
| 140 | + | func (_c *MockAccentPickerUI_Show_Call) Run(run func(accents []rune, selectedCallback func(accent rune), cancelCallback func())) *MockAccentPickerUI_Show_Call { | |
| 141 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 142 | + | var arg0 []rune | |
| 143 | + | if args[0] != nil { | |
| 144 | + | arg0 = args[0].([]rune) | |
| 145 | + | } | |
| 146 | + | var arg1 func(accent rune) | |
| 147 | + | if args[1] != nil { | |
| 148 | + | arg1 = args[1].(func(accent rune)) | |
| 149 | + | } | |
| 150 | + | var arg2 func() | |
| 151 | + | if args[2] != nil { | |
| 152 | + | arg2 = args[2].(func()) | |
| 153 | + | } | |
| 154 | + | run( | |
| 155 | + | arg0, | |
| 156 | + | arg1, | |
| 157 | + | arg2, | |
| 158 | + | ) | |
| 159 | + | }) | |
| 160 | + | return _c | |
| 161 | + | } | |
| 162 | + | ||
| 163 | + | func (_c *MockAccentPickerUI_Show_Call) Return() *MockAccentPickerUI_Show_Call { | |
| 164 | + | _c.Call.Return() | |
| 165 | + | return _c | |
| 166 | + | } | |
| 167 | + | ||
| 168 | + | func (_c *MockAccentPickerUI_Show_Call) RunAndReturn(run func(accents []rune, selectedCallback func(accent rune), cancelCallback func())) *MockAccentPickerUI_Show_Call { | |
| 169 | + | _c.Run(run) | |
| 170 | + | return _c | |
| 171 | + | } | |
| 172 | + | ||
| 17 | 173 | // NewMockColorSchemeDetector creates a new instance of MockColorSchemeDetector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |
| 18 | 174 | // The first argument is typically a *testing.T value. | |
| 19 | 175 | func NewMockColorSchemeDetector(t interface { | |
| @@ -1438,6 +1594,260 @@ func (_c *MockSessionSpawner_SpawnWithSession_Call) RunAndReturn(run func(sessio | |||
| 1438 | 1594 | return _c | |
| 1439 | 1595 | } | |
| 1440 | 1596 | ||
| 1597 | + | // NewMockTextInputTarget creates a new instance of MockTextInputTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |
| 1598 | + | // The first argument is typically a *testing.T value. | |
| 1599 | + | func NewMockTextInputTarget(t interface { | |
| 1600 | + | mock.TestingT | |
| 1601 | + | Cleanup(func()) | |
| 1602 | + | }) *MockTextInputTarget { | |
| 1603 | + | mock := &MockTextInputTarget{} | |
| 1604 | + | mock.Mock.Test(t) | |
| 1605 | + | ||
| 1606 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |
| 1607 | + | ||
| 1608 | + | return mock | |
| 1609 | + | } | |
| 1610 | + | ||
| 1611 | + | // MockTextInputTarget is an autogenerated mock type for the TextInputTarget type | |
| 1612 | + | type MockTextInputTarget struct { | |
| 1613 | + | mock.Mock | |
| 1614 | + | } | |
| 1615 | + | ||
| 1616 | + | type MockTextInputTarget_Expecter struct { | |
| 1617 | + | mock *mock.Mock | |
| 1618 | + | } | |
| 1619 | + | ||
| 1620 | + | func (_m *MockTextInputTarget) EXPECT() *MockTextInputTarget_Expecter { | |
| 1621 | + | return &MockTextInputTarget_Expecter{mock: &_m.Mock} | |
| 1622 | + | } | |
| 1623 | + | ||
| 1624 | + | // DeleteBeforeCursor provides a mock function for the type MockTextInputTarget | |
| 1625 | + | func (_mock *MockTextInputTarget) DeleteBeforeCursor(ctx context.Context, n int) error { | |
| 1626 | + | ret := _mock.Called(ctx, n) | |
| 1627 | + | ||
| 1628 | + | if len(ret) == 0 { | |
| 1629 | + | panic("no return value specified for DeleteBeforeCursor") | |
| 1630 | + | } | |
| 1631 | + | ||
| 1632 | + | var r0 error | |
| 1633 | + | if returnFunc, ok := ret.Get(0).(func(context.Context, int) error); ok { | |
| 1634 | + | r0 = returnFunc(ctx, n) | |
| 1635 | + | } else { | |
| 1636 | + | r0 = ret.Error(0) | |
| 1637 | + | } | |
| 1638 | + | return r0 | |
| 1639 | + | } | |
| 1640 | + | ||
| 1641 | + | // MockTextInputTarget_DeleteBeforeCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBeforeCursor' | |
| 1642 | + | type MockTextInputTarget_DeleteBeforeCursor_Call struct { | |
| 1643 | + | *mock.Call | |
| 1644 | + | } | |
| 1645 | + | ||
| 1646 | + | // DeleteBeforeCursor is a helper method to define mock.On call | |
| 1647 | + | // - ctx context.Context | |
| 1648 | + | // - n int | |
| 1649 | + | func (_e *MockTextInputTarget_Expecter) DeleteBeforeCursor(ctx interface{}, n interface{}) *MockTextInputTarget_DeleteBeforeCursor_Call { | |
| 1650 | + | return &MockTextInputTarget_DeleteBeforeCursor_Call{Call: _e.mock.On("DeleteBeforeCursor", ctx, n)} | |
| 1651 | + | } | |
| 1652 | + | ||
| 1653 | + | func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Run(run func(ctx context.Context, n int)) *MockTextInputTarget_DeleteBeforeCursor_Call { | |
| 1654 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 1655 | + | var arg0 context.Context | |
| 1656 | + | if args[0] != nil { | |
| 1657 | + | arg0 = args[0].(context.Context) | |
| 1658 | + | } | |
| 1659 | + | var arg1 int | |
| 1660 | + | if args[1] != nil { | |
| 1661 | + | arg1 = args[1].(int) | |
| 1662 | + | } | |
| 1663 | + | run( | |
| 1664 | + | arg0, | |
| 1665 | + | arg1, | |
| 1666 | + | ) | |
| 1667 | + | }) | |
| 1668 | + | return _c | |
| 1669 | + | } | |
| 1670 | + | ||
| 1671 | + | func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Return(err error) *MockTextInputTarget_DeleteBeforeCursor_Call { | |
| 1672 | + | _c.Call.Return(err) | |
| 1673 | + | return _c | |
| 1674 | + | } | |
| 1675 | + | ||
| 1676 | + | func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) RunAndReturn(run func(ctx context.Context, n int) error) *MockTextInputTarget_DeleteBeforeCursor_Call { | |
| 1677 | + | _c.Call.Return(run) | |
| 1678 | + | return _c | |
| 1679 | + | } | |
| 1680 | + | ||
| 1681 | + | // InsertText provides a mock function for the type MockTextInputTarget | |
| 1682 | + | func (_mock *MockTextInputTarget) InsertText(ctx context.Context, text string) error { | |
| 1683 | + | ret := _mock.Called(ctx, text) | |
| 1684 | + | ||
| 1685 | + | if len(ret) == 0 { | |
| 1686 | + | panic("no return value specified for InsertText") | |
| 1687 | + | } | |
| 1688 | + | ||
| 1689 | + | var r0 error | |
| 1690 | + | if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok { | |
| 1691 | + | r0 = returnFunc(ctx, text) | |
| 1692 | + | } else { | |
| 1693 | + | r0 = ret.Error(0) | |
| 1694 | + | } | |
| 1695 | + | return r0 | |
| 1696 | + | } | |
| 1697 | + | ||
| 1698 | + | // MockTextInputTarget_InsertText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertText' | |
| 1699 | + | type MockTextInputTarget_InsertText_Call struct { | |
| 1700 | + | *mock.Call | |
| 1701 | + | } | |
| 1702 | + | ||
| 1703 | + | // InsertText is a helper method to define mock.On call | |
| 1704 | + | // - ctx context.Context | |
| 1705 | + | // - text string | |
| 1706 | + | func (_e *MockTextInputTarget_Expecter) InsertText(ctx interface{}, text interface{}) *MockTextInputTarget_InsertText_Call { | |
| 1707 | + | return &MockTextInputTarget_InsertText_Call{Call: _e.mock.On("InsertText", ctx, text)} | |
| 1708 | + | } | |
| 1709 | + | ||
| 1710 | + | func (_c *MockTextInputTarget_InsertText_Call) Run(run func(ctx context.Context, text string)) *MockTextInputTarget_InsertText_Call { | |
| 1711 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 1712 | + | var arg0 context.Context | |
| 1713 | + | if args[0] != nil { | |
| 1714 | + | arg0 = args[0].(context.Context) | |
| 1715 | + | } | |
| 1716 | + | var arg1 string | |
| 1717 | + | if args[1] != nil { | |
| 1718 | + | arg1 = args[1].(string) | |
| 1719 | + | } | |
| 1720 | + | run( | |
| 1721 | + | arg0, | |
| 1722 | + | arg1, | |
| 1723 | + | ) | |
| 1724 | + | }) | |
| 1725 | + | return _c | |
| 1726 | + | } | |
| 1727 | + | ||
| 1728 | + | func (_c *MockTextInputTarget_InsertText_Call) Return(err error) *MockTextInputTarget_InsertText_Call { | |
| 1729 | + | _c.Call.Return(err) | |
| 1730 | + | return _c | |
| 1731 | + | } | |
| 1732 | + | ||
| 1733 | + | func (_c *MockTextInputTarget_InsertText_Call) RunAndReturn(run func(ctx context.Context, text string) error) *MockTextInputTarget_InsertText_Call { | |
| 1734 | + | _c.Call.Return(run) | |
| 1735 | + | return _c | |
| 1736 | + | } | |
| 1737 | + | ||
| 1738 | + | // NewMockFocusedInputProvider creates a new instance of MockFocusedInputProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |
| 1739 | + | // The first argument is typically a *testing.T value. | |
| 1740 | + | func NewMockFocusedInputProvider(t interface { | |
| 1741 | + | mock.TestingT | |
| 1742 | + | Cleanup(func()) | |
| 1743 | + | }) *MockFocusedInputProvider { | |
| 1744 | + | mock := &MockFocusedInputProvider{} | |
| 1745 | + | mock.Mock.Test(t) | |
| 1746 | + | ||
| 1747 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |
| 1748 | + | ||
| 1749 | + | return mock | |
| 1750 | + | } | |
| 1751 | + | ||
| 1752 | + | // MockFocusedInputProvider is an autogenerated mock type for the FocusedInputProvider type | |
| 1753 | + | type MockFocusedInputProvider struct { | |
| 1754 | + | mock.Mock | |
| 1755 | + | } | |
| 1756 | + | ||
| 1757 | + | type MockFocusedInputProvider_Expecter struct { | |
| 1758 | + | mock *mock.Mock | |
| 1759 | + | } | |
| 1760 | + | ||
| 1761 | + | func (_m *MockFocusedInputProvider) EXPECT() *MockFocusedInputProvider_Expecter { | |
| 1762 | + | return &MockFocusedInputProvider_Expecter{mock: &_m.Mock} | |
| 1763 | + | } | |
| 1764 | + | ||
| 1765 | + | // GetFocusedInput provides a mock function for the type MockFocusedInputProvider | |
| 1766 | + | func (_mock *MockFocusedInputProvider) GetFocusedInput() port.TextInputTarget { | |
| 1767 | + | ret := _mock.Called() | |
| 1768 | + | ||
| 1769 | + | if len(ret) == 0 { | |
| 1770 | + | panic("no return value specified for GetFocusedInput") | |
| 1771 | + | } | |
| 1772 | + | ||
| 1773 | + | var r0 port.TextInputTarget | |
| 1774 | + | if returnFunc, ok := ret.Get(0).(func() port.TextInputTarget); ok { | |
| 1775 | + | r0 = returnFunc() | |
| 1776 | + | } else { | |
| 1777 | + | if ret.Get(0) != nil { | |
| 1778 | + | r0 = ret.Get(0).(port.TextInputTarget) | |
| 1779 | + | } | |
| 1780 | + | } | |
| 1781 | + | return r0 | |
| 1782 | + | } | |
| 1783 | + | ||
| 1784 | + | // MockFocusedInputProvider_GetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFocusedInput' | |
| 1785 | + | type MockFocusedInputProvider_GetFocusedInput_Call struct { | |
| 1786 | + | *mock.Call | |
| 1787 | + | } | |
| 1788 | + | ||
| 1789 | + | // GetFocusedInput is a helper method to define mock.On call | |
| 1790 | + | func (_e *MockFocusedInputProvider_Expecter) GetFocusedInput() *MockFocusedInputProvider_GetFocusedInput_Call { | |
| 1791 | + | return &MockFocusedInputProvider_GetFocusedInput_Call{Call: _e.mock.On("GetFocusedInput")} | |
| 1792 | + | } | |
| 1793 | + | ||
| 1794 | + | func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Run(run func()) *MockFocusedInputProvider_GetFocusedInput_Call { | |
| 1795 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 1796 | + | run() | |
| 1797 | + | }) | |
| 1798 | + | return _c | |
| 1799 | + | } | |
| 1800 | + | ||
| 1801 | + | func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Return(textInputTarget port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call { | |
| 1802 | + | _c.Call.Return(textInputTarget) | |
| 1803 | + | return _c | |
| 1804 | + | } | |
| 1805 | + | ||
| 1806 | + | func (_c *MockFocusedInputProvider_GetFocusedInput_Call) RunAndReturn(run func() port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call { | |
| 1807 | + | _c.Call.Return(run) | |
| 1808 | + | return _c | |
| 1809 | + | } | |
| 1810 | + | ||
| 1811 | + | // SetFocusedInput provides a mock function for the type MockFocusedInputProvider | |
| 1812 | + | func (_mock *MockFocusedInputProvider) SetFocusedInput(target port.TextInputTarget) { | |
| 1813 | + | _mock.Called(target) | |
| 1814 | + | return | |
| 1815 | + | } | |
| 1816 | + | ||
| 1817 | + | // MockFocusedInputProvider_SetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusedInput' | |
| 1818 | + | type MockFocusedInputProvider_SetFocusedInput_Call struct { | |
| 1819 | + | *mock.Call | |
| 1820 | + | } | |
| 1821 | + | ||
| 1822 | + | // SetFocusedInput is a helper method to define mock.On call | |
| 1823 | + | // - target port.TextInputTarget | |
| 1824 | + | func (_e *MockFocusedInputProvider_Expecter) SetFocusedInput(target interface{}) *MockFocusedInputProvider_SetFocusedInput_Call { | |
| 1825 | + | return &MockFocusedInputProvider_SetFocusedInput_Call{Call: _e.mock.On("SetFocusedInput", target)} | |
| 1826 | + | } | |
| 1827 | + | ||
| 1828 | + | func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Run(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call { | |
| 1829 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 1830 | + | var arg0 port.TextInputTarget | |
| 1831 | + | if args[0] != nil { | |
| 1832 | + | arg0 = args[0].(port.TextInputTarget) | |
| 1833 | + | } | |
| 1834 | + | run( | |
| 1835 | + | arg0, | |
| 1836 | + | ) | |
| 1837 | + | }) | |
| 1838 | + | return _c | |
| 1839 | + | } | |
| 1840 | + | ||
| 1841 | + | func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Return() *MockFocusedInputProvider_SetFocusedInput_Call { | |
| 1842 | + | _c.Call.Return() | |
| 1843 | + | return _c | |
| 1844 | + | } | |
| 1845 | + | ||
| 1846 | + | func (_c *MockFocusedInputProvider_SetFocusedInput_Call) RunAndReturn(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call { | |
| 1847 | + | _c.Run(run) | |
| 1848 | + | return _c | |
| 1849 | + | } | |
| 1850 | + | ||
| 1441 | 1851 | // NewMockMemoryPressureApplier creates a new instance of MockMemoryPressureApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |
| 1442 | 1852 | // The first argument is typically a *testing.T value. | |
| 1443 | 1853 | func NewMockMemoryPressureApplier(t interface { | |
| @@ -14,6 +14,162 @@ import ( | |||||
| 14 | mock "github.com/stretchr/testify/mock" | 14 | mock "github.com/stretchr/testify/mock" | ||
| 15 | ) | 15 | ) | ||
| 16 | 16 | ||||
| 17 | + | // NewMockAccentPickerUI creates a new instance of MockAccentPickerUI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |||
| 18 | + | // The first argument is typically a *testing.T value. | |||
| 19 | + | func NewMockAccentPickerUI(t interface { | |||
| 20 | + | mock.TestingT | |||
| 21 | + | Cleanup(func()) | |||
| 22 | + | }) *MockAccentPickerUI { | |||
| 23 | + | mock := &MockAccentPickerUI{} | |||
| 24 | + | mock.Mock.Test(t) | |||
| 25 | + | ||||
| 26 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |||
| 27 | + | ||||
| 28 | + | return mock | |||
| 29 | + | } | |||
| 30 | + | ||||
| 31 | + | // MockAccentPickerUI is an autogenerated mock type for the AccentPickerUI type | |||
| 32 | + | type MockAccentPickerUI struct { | |||
| 33 | + | mock.Mock | |||
| 34 | + | } | |||
| 35 | + | ||||
| 36 | + | type MockAccentPickerUI_Expecter struct { | |||
| 37 | + | mock *mock.Mock | |||
| 38 | + | } | |||
| 39 | + | ||||
| 40 | + | func (_m *MockAccentPickerUI) EXPECT() *MockAccentPickerUI_Expecter { | |||
| 41 | + | return &MockAccentPickerUI_Expecter{mock: &_m.Mock} | |||
| 42 | + | } | |||
| 43 | + | ||||
| 44 | + | // Hide provides a mock function for the type MockAccentPickerUI | |||
| 45 | + | func (_mock *MockAccentPickerUI) Hide() { | |||
| 46 | + | _mock.Called() | |||
| 47 | + | return | |||
| 48 | + | } | |||
| 49 | + | ||||
| 50 | + | // MockAccentPickerUI_Hide_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Hide' | |||
| 51 | + | type MockAccentPickerUI_Hide_Call struct { | |||
| 52 | + | *mock.Call | |||
| 53 | + | } | |||
| 54 | + | ||||
| 55 | + | // Hide is a helper method to define mock.On call | |||
| 56 | + | func (_e *MockAccentPickerUI_Expecter) Hide() *MockAccentPickerUI_Hide_Call { | |||
| 57 | + | return &MockAccentPickerUI_Hide_Call{Call: _e.mock.On("Hide")} | |||
| 58 | + | } | |||
| 59 | + | ||||
| 60 | + | func (_c *MockAccentPickerUI_Hide_Call) Run(run func()) *MockAccentPickerUI_Hide_Call { | |||
| 61 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 62 | + | run() | |||
| 63 | + | }) | |||
| 64 | + | return _c | |||
| 65 | + | } | |||
| 66 | + | ||||
| 67 | + | func (_c *MockAccentPickerUI_Hide_Call) Return() *MockAccentPickerUI_Hide_Call { | |||
| 68 | + | _c.Call.Return() | |||
| 69 | + | return _c | |||
| 70 | + | } | |||
| 71 | + | ||||
| 72 | + | func (_c *MockAccentPickerUI_Hide_Call) RunAndReturn(run func()) *MockAccentPickerUI_Hide_Call { | |||
| 73 | + | _c.Run(run) | |||
| 74 | + | return _c | |||
| 75 | + | } | |||
| 76 | + | ||||
| 77 | + | // IsVisible provides a mock function for the type MockAccentPickerUI | |||
| 78 | + | func (_mock *MockAccentPickerUI) IsVisible() bool { | |||
| 79 | + | ret := _mock.Called() | |||
| 80 | + | ||||
| 81 | + | if len(ret) == 0 { | |||
| 82 | + | panic("no return value specified for IsVisible") | |||
| 83 | + | } | |||
| 84 | + | ||||
| 85 | + | var r0 bool | |||
| 86 | + | if returnFunc, ok := ret.Get(0).(func() bool); ok { | |||
| 87 | + | r0 = returnFunc() | |||
| 88 | + | } else { | |||
| 89 | + | r0 = ret.Get(0).(bool) | |||
| 90 | + | } | |||
| 91 | + | return r0 | |||
| 92 | + | } | |||
| 93 | + | ||||
| 94 | + | // MockAccentPickerUI_IsVisible_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsVisible' | |||
| 95 | + | type MockAccentPickerUI_IsVisible_Call struct { | |||
| 96 | + | *mock.Call | |||
| 97 | + | } | |||
| 98 | + | ||||
| 99 | + | // IsVisible is a helper method to define mock.On call | |||
| 100 | + | func (_e *MockAccentPickerUI_Expecter) IsVisible() *MockAccentPickerUI_IsVisible_Call { | |||
| 101 | + | return &MockAccentPickerUI_IsVisible_Call{Call: _e.mock.On("IsVisible")} | |||
| 102 | + | } | |||
| 103 | + | ||||
| 104 | + | func (_c *MockAccentPickerUI_IsVisible_Call) Run(run func()) *MockAccentPickerUI_IsVisible_Call { | |||
| 105 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 106 | + | run() | |||
| 107 | + | }) | |||
| 108 | + | return _c | |||
| 109 | + | } | |||
| 110 | + | ||||
| 111 | + | func (_c *MockAccentPickerUI_IsVisible_Call) Return(b bool) *MockAccentPickerUI_IsVisible_Call { | |||
| 112 | + | _c.Call.Return(b) | |||
| 113 | + | return _c | |||
| 114 | + | } | |||
| 115 | + | ||||
| 116 | + | func (_c *MockAccentPickerUI_IsVisible_Call) RunAndReturn(run func() bool) *MockAccentPickerUI_IsVisible_Call { | |||
| 117 | + | _c.Call.Return(run) | |||
| 118 | + | return _c | |||
| 119 | + | } | |||
| 120 | + | ||||
| 121 | + | // Show provides a mock function for the type MockAccentPickerUI | |||
| 122 | + | func (_mock *MockAccentPickerUI) Show(accents []rune, selectedCallback func(accent rune), cancelCallback func()) { | |||
| 123 | + | _mock.Called(accents, selectedCallback, cancelCallback) | |||
| 124 | + | return | |||
| 125 | + | } | |||
| 126 | + | ||||
| 127 | + | // MockAccentPickerUI_Show_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Show' | |||
| 128 | + | type MockAccentPickerUI_Show_Call struct { | |||
| 129 | + | *mock.Call | |||
| 130 | + | } | |||
| 131 | + | ||||
| 132 | + | // Show is a helper method to define mock.On call | |||
| 133 | + | // - accents []rune | |||
| 134 | + | // - selectedCallback func(accent rune) | |||
| 135 | + | // - cancelCallback func() | |||
| 136 | + | func (_e *MockAccentPickerUI_Expecter) Show(accents interface{}, selectedCallback interface{}, cancelCallback interface{}) *MockAccentPickerUI_Show_Call { | |||
| 137 | + | return &MockAccentPickerUI_Show_Call{Call: _e.mock.On("Show", accents, selectedCallback, cancelCallback)} | |||
| 138 | + | } | |||
| 139 | + | ||||
| 140 | + | func (_c *MockAccentPickerUI_Show_Call) Run(run func(accents []rune, selectedCallback func(accent rune), cancelCallback func())) *MockAccentPickerUI_Show_Call { | |||
| 141 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 142 | + | var arg0 []rune | |||
| 143 | + | if args[0] != nil { | |||
| 144 | + | arg0 = args[0].([]rune) | |||
| 145 | + | } | |||
| 146 | + | var arg1 func(accent rune) | |||
| 147 | + | if args[1] != nil { | |||
| 148 | + | arg1 = args[1].(func(accent rune)) | |||
| 149 | + | } | |||
| 150 | + | var arg2 func() | |||
| 151 | + | if args[2] != nil { | |||
| 152 | + | arg2 = args[2].(func()) | |||
| 153 | + | } | |||
| 154 | + | run( | |||
| 155 | + | arg0, | |||
| 156 | + | arg1, | |||
| 157 | + | arg2, | |||
| 158 | + | ) | |||
| 159 | + | }) | |||
| 160 | + | return _c | |||
| 161 | + | } | |||
| 162 | + | ||||
| 163 | + | func (_c *MockAccentPickerUI_Show_Call) Return() *MockAccentPickerUI_Show_Call { | |||
| 164 | + | _c.Call.Return() | |||
| 165 | + | return _c | |||
| 166 | + | } | |||
| 167 | + | ||||
| 168 | + | func (_c *MockAccentPickerUI_Show_Call) RunAndReturn(run func(accents []rune, selectedCallback func(accent rune), cancelCallback func())) *MockAccentPickerUI_Show_Call { | |||
| 169 | + | _c.Run(run) | |||
| 170 | + | return _c | |||
| 171 | + | } | |||
| 172 | + | ||||
| 17 | // NewMockColorSchemeDetector creates a new instance of MockColorSchemeDetector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | 173 | // NewMockColorSchemeDetector creates a new instance of MockColorSchemeDetector. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | ||
| 18 | // The first argument is typically a *testing.T value. | 174 | // The first argument is typically a *testing.T value. | ||
| 19 | func NewMockColorSchemeDetector(t interface { | 175 | func NewMockColorSchemeDetector(t interface { | ||
| @@ -1438,6 +1594,260 @@ func (_c *MockSessionSpawner_SpawnWithSession_Call) RunAndReturn(run func(sessio | |||||
| 1438 | return _c | 1594 | return _c | ||
| 1439 | } | 1595 | } | ||
| 1440 | 1596 | ||||
| 1597 | + | // NewMockTextInputTarget creates a new instance of MockTextInputTarget. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |||
| 1598 | + | // The first argument is typically a *testing.T value. | |||
| 1599 | + | func NewMockTextInputTarget(t interface { | |||
| 1600 | + | mock.TestingT | |||
| 1601 | + | Cleanup(func()) | |||
| 1602 | + | }) *MockTextInputTarget { | |||
| 1603 | + | mock := &MockTextInputTarget{} | |||
| 1604 | + | mock.Mock.Test(t) | |||
| 1605 | + | ||||
| 1606 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |||
| 1607 | + | ||||
| 1608 | + | return mock | |||
| 1609 | + | } | |||
| 1610 | + | ||||
| 1611 | + | // MockTextInputTarget is an autogenerated mock type for the TextInputTarget type | |||
| 1612 | + | type MockTextInputTarget struct { | |||
| 1613 | + | mock.Mock | |||
| 1614 | + | } | |||
| 1615 | + | ||||
| 1616 | + | type MockTextInputTarget_Expecter struct { | |||
| 1617 | + | mock *mock.Mock | |||
| 1618 | + | } | |||
| 1619 | + | ||||
| 1620 | + | func (_m *MockTextInputTarget) EXPECT() *MockTextInputTarget_Expecter { | |||
| 1621 | + | return &MockTextInputTarget_Expecter{mock: &_m.Mock} | |||
| 1622 | + | } | |||
| 1623 | + | ||||
| 1624 | + | // DeleteBeforeCursor provides a mock function for the type MockTextInputTarget | |||
| 1625 | + | func (_mock *MockTextInputTarget) DeleteBeforeCursor(ctx context.Context, n int) error { | |||
| 1626 | + | ret := _mock.Called(ctx, n) | |||
| 1627 | + | ||||
| 1628 | + | if len(ret) == 0 { | |||
| 1629 | + | panic("no return value specified for DeleteBeforeCursor") | |||
| 1630 | + | } | |||
| 1631 | + | ||||
| 1632 | + | var r0 error | |||
| 1633 | + | if returnFunc, ok := ret.Get(0).(func(context.Context, int) error); ok { | |||
| 1634 | + | r0 = returnFunc(ctx, n) | |||
| 1635 | + | } else { | |||
| 1636 | + | r0 = ret.Error(0) | |||
| 1637 | + | } | |||
| 1638 | + | return r0 | |||
| 1639 | + | } | |||
| 1640 | + | ||||
| 1641 | + | // MockTextInputTarget_DeleteBeforeCursor_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteBeforeCursor' | |||
| 1642 | + | type MockTextInputTarget_DeleteBeforeCursor_Call struct { | |||
| 1643 | + | *mock.Call | |||
| 1644 | + | } | |||
| 1645 | + | ||||
| 1646 | + | // DeleteBeforeCursor is a helper method to define mock.On call | |||
| 1647 | + | // - ctx context.Context | |||
| 1648 | + | // - n int | |||
| 1649 | + | func (_e *MockTextInputTarget_Expecter) DeleteBeforeCursor(ctx interface{}, n interface{}) *MockTextInputTarget_DeleteBeforeCursor_Call { | |||
| 1650 | + | return &MockTextInputTarget_DeleteBeforeCursor_Call{Call: _e.mock.On("DeleteBeforeCursor", ctx, n)} | |||
| 1651 | + | } | |||
| 1652 | + | ||||
| 1653 | + | func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Run(run func(ctx context.Context, n int)) *MockTextInputTarget_DeleteBeforeCursor_Call { | |||
| 1654 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 1655 | + | var arg0 context.Context | |||
| 1656 | + | if args[0] != nil { | |||
| 1657 | + | arg0 = args[0].(context.Context) | |||
| 1658 | + | } | |||
| 1659 | + | var arg1 int | |||
| 1660 | + | if args[1] != nil { | |||
| 1661 | + | arg1 = args[1].(int) | |||
| 1662 | + | } | |||
| 1663 | + | run( | |||
| 1664 | + | arg0, | |||
| 1665 | + | arg1, | |||
| 1666 | + | ) | |||
| 1667 | + | }) | |||
| 1668 | + | return _c | |||
| 1669 | + | } | |||
| 1670 | + | ||||
| 1671 | + | func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) Return(err error) *MockTextInputTarget_DeleteBeforeCursor_Call { | |||
| 1672 | + | _c.Call.Return(err) | |||
| 1673 | + | return _c | |||
| 1674 | + | } | |||
| 1675 | + | ||||
| 1676 | + | func (_c *MockTextInputTarget_DeleteBeforeCursor_Call) RunAndReturn(run func(ctx context.Context, n int) error) *MockTextInputTarget_DeleteBeforeCursor_Call { | |||
| 1677 | + | _c.Call.Return(run) | |||
| 1678 | + | return _c | |||
| 1679 | + | } | |||
| 1680 | + | ||||
| 1681 | + | // InsertText provides a mock function for the type MockTextInputTarget | |||
| 1682 | + | func (_mock *MockTextInputTarget) InsertText(ctx context.Context, text string) error { | |||
| 1683 | + | ret := _mock.Called(ctx, text) | |||
| 1684 | + | ||||
| 1685 | + | if len(ret) == 0 { | |||
| 1686 | + | panic("no return value specified for InsertText") | |||
| 1687 | + | } | |||
| 1688 | + | ||||
| 1689 | + | var r0 error | |||
| 1690 | + | if returnFunc, ok := ret.Get(0).(func(context.Context, string) error); ok { | |||
| 1691 | + | r0 = returnFunc(ctx, text) | |||
| 1692 | + | } else { | |||
| 1693 | + | r0 = ret.Error(0) | |||
| 1694 | + | } | |||
| 1695 | + | return r0 | |||
| 1696 | + | } | |||
| 1697 | + | ||||
| 1698 | + | // MockTextInputTarget_InsertText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InsertText' | |||
| 1699 | + | type MockTextInputTarget_InsertText_Call struct { | |||
| 1700 | + | *mock.Call | |||
| 1701 | + | } | |||
| 1702 | + | ||||
| 1703 | + | // InsertText is a helper method to define mock.On call | |||
| 1704 | + | // - ctx context.Context | |||
| 1705 | + | // - text string | |||
| 1706 | + | func (_e *MockTextInputTarget_Expecter) InsertText(ctx interface{}, text interface{}) *MockTextInputTarget_InsertText_Call { | |||
| 1707 | + | return &MockTextInputTarget_InsertText_Call{Call: _e.mock.On("InsertText", ctx, text)} | |||
| 1708 | + | } | |||
| 1709 | + | ||||
| 1710 | + | func (_c *MockTextInputTarget_InsertText_Call) Run(run func(ctx context.Context, text string)) *MockTextInputTarget_InsertText_Call { | |||
| 1711 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 1712 | + | var arg0 context.Context | |||
| 1713 | + | if args[0] != nil { | |||
| 1714 | + | arg0 = args[0].(context.Context) | |||
| 1715 | + | } | |||
| 1716 | + | var arg1 string | |||
| 1717 | + | if args[1] != nil { | |||
| 1718 | + | arg1 = args[1].(string) | |||
| 1719 | + | } | |||
| 1720 | + | run( | |||
| 1721 | + | arg0, | |||
| 1722 | + | arg1, | |||
| 1723 | + | ) | |||
| 1724 | + | }) | |||
| 1725 | + | return _c | |||
| 1726 | + | } | |||
| 1727 | + | ||||
| 1728 | + | func (_c *MockTextInputTarget_InsertText_Call) Return(err error) *MockTextInputTarget_InsertText_Call { | |||
| 1729 | + | _c.Call.Return(err) | |||
| 1730 | + | return _c | |||
| 1731 | + | } | |||
| 1732 | + | ||||
| 1733 | + | func (_c *MockTextInputTarget_InsertText_Call) RunAndReturn(run func(ctx context.Context, text string) error) *MockTextInputTarget_InsertText_Call { | |||
| 1734 | + | _c.Call.Return(run) | |||
| 1735 | + | return _c | |||
| 1736 | + | } | |||
| 1737 | + | ||||
| 1738 | + | // NewMockFocusedInputProvider creates a new instance of MockFocusedInputProvider. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | |||
| 1739 | + | // The first argument is typically a *testing.T value. | |||
| 1740 | + | func NewMockFocusedInputProvider(t interface { | |||
| 1741 | + | mock.TestingT | |||
| 1742 | + | Cleanup(func()) | |||
| 1743 | + | }) *MockFocusedInputProvider { | |||
| 1744 | + | mock := &MockFocusedInputProvider{} | |||
| 1745 | + | mock.Mock.Test(t) | |||
| 1746 | + | ||||
| 1747 | + | t.Cleanup(func() { mock.AssertExpectations(t) }) | |||
| 1748 | + | ||||
| 1749 | + | return mock | |||
| 1750 | + | } | |||
| 1751 | + | ||||
| 1752 | + | // MockFocusedInputProvider is an autogenerated mock type for the FocusedInputProvider type | |||
| 1753 | + | type MockFocusedInputProvider struct { | |||
| 1754 | + | mock.Mock | |||
| 1755 | + | } | |||
| 1756 | + | ||||
| 1757 | + | type MockFocusedInputProvider_Expecter struct { | |||
| 1758 | + | mock *mock.Mock | |||
| 1759 | + | } | |||
| 1760 | + | ||||
| 1761 | + | func (_m *MockFocusedInputProvider) EXPECT() *MockFocusedInputProvider_Expecter { | |||
| 1762 | + | return &MockFocusedInputProvider_Expecter{mock: &_m.Mock} | |||
| 1763 | + | } | |||
| 1764 | + | ||||
| 1765 | + | // GetFocusedInput provides a mock function for the type MockFocusedInputProvider | |||
| 1766 | + | func (_mock *MockFocusedInputProvider) GetFocusedInput() port.TextInputTarget { | |||
| 1767 | + | ret := _mock.Called() | |||
| 1768 | + | ||||
| 1769 | + | if len(ret) == 0 { | |||
| 1770 | + | panic("no return value specified for GetFocusedInput") | |||
| 1771 | + | } | |||
| 1772 | + | ||||
| 1773 | + | var r0 port.TextInputTarget | |||
| 1774 | + | if returnFunc, ok := ret.Get(0).(func() port.TextInputTarget); ok { | |||
| 1775 | + | r0 = returnFunc() | |||
| 1776 | + | } else { | |||
| 1777 | + | if ret.Get(0) != nil { | |||
| 1778 | + | r0 = ret.Get(0).(port.TextInputTarget) | |||
| 1779 | + | } | |||
| 1780 | + | } | |||
| 1781 | + | return r0 | |||
| 1782 | + | } | |||
| 1783 | + | ||||
| 1784 | + | // MockFocusedInputProvider_GetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFocusedInput' | |||
| 1785 | + | type MockFocusedInputProvider_GetFocusedInput_Call struct { | |||
| 1786 | + | *mock.Call | |||
| 1787 | + | } | |||
| 1788 | + | ||||
| 1789 | + | // GetFocusedInput is a helper method to define mock.On call | |||
| 1790 | + | func (_e *MockFocusedInputProvider_Expecter) GetFocusedInput() *MockFocusedInputProvider_GetFocusedInput_Call { | |||
| 1791 | + | return &MockFocusedInputProvider_GetFocusedInput_Call{Call: _e.mock.On("GetFocusedInput")} | |||
| 1792 | + | } | |||
| 1793 | + | ||||
| 1794 | + | func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Run(run func()) *MockFocusedInputProvider_GetFocusedInput_Call { | |||
| 1795 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 1796 | + | run() | |||
| 1797 | + | }) | |||
| 1798 | + | return _c | |||
| 1799 | + | } | |||
| 1800 | + | ||||
| 1801 | + | func (_c *MockFocusedInputProvider_GetFocusedInput_Call) Return(textInputTarget port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call { | |||
| 1802 | + | _c.Call.Return(textInputTarget) | |||
| 1803 | + | return _c | |||
| 1804 | + | } | |||
| 1805 | + | ||||
| 1806 | + | func (_c *MockFocusedInputProvider_GetFocusedInput_Call) RunAndReturn(run func() port.TextInputTarget) *MockFocusedInputProvider_GetFocusedInput_Call { | |||
| 1807 | + | _c.Call.Return(run) | |||
| 1808 | + | return _c | |||
| 1809 | + | } | |||
| 1810 | + | ||||
| 1811 | + | // SetFocusedInput provides a mock function for the type MockFocusedInputProvider | |||
| 1812 | + | func (_mock *MockFocusedInputProvider) SetFocusedInput(target port.TextInputTarget) { | |||
| 1813 | + | _mock.Called(target) | |||
| 1814 | + | return | |||
| 1815 | + | } | |||
| 1816 | + | ||||
| 1817 | + | // MockFocusedInputProvider_SetFocusedInput_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusedInput' | |||
| 1818 | + | type MockFocusedInputProvider_SetFocusedInput_Call struct { | |||
| 1819 | + | *mock.Call | |||
| 1820 | + | } | |||
| 1821 | + | ||||
| 1822 | + | // SetFocusedInput is a helper method to define mock.On call | |||
| 1823 | + | // - target port.TextInputTarget | |||
| 1824 | + | func (_e *MockFocusedInputProvider_Expecter) SetFocusedInput(target interface{}) *MockFocusedInputProvider_SetFocusedInput_Call { | |||
| 1825 | + | return &MockFocusedInputProvider_SetFocusedInput_Call{Call: _e.mock.On("SetFocusedInput", target)} | |||
| 1826 | + | } | |||
| 1827 | + | ||||
| 1828 | + | func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Run(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call { | |||
| 1829 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 1830 | + | var arg0 port.TextInputTarget | |||
| 1831 | + | if args[0] != nil { | |||
| 1832 | + | arg0 = args[0].(port.TextInputTarget) | |||
| 1833 | + | } | |||
| 1834 | + | run( | |||
| 1835 | + | arg0, | |||
| 1836 | + | ) | |||
| 1837 | + | }) | |||
| 1838 | + | return _c | |||
| 1839 | + | } | |||
| 1840 | + | ||||
| 1841 | + | func (_c *MockFocusedInputProvider_SetFocusedInput_Call) Return() *MockFocusedInputProvider_SetFocusedInput_Call { | |||
| 1842 | + | _c.Call.Return() | |||
| 1843 | + | return _c | |||
| 1844 | + | } | |||
| 1845 | + | ||||
| 1846 | + | func (_c *MockFocusedInputProvider_SetFocusedInput_Call) RunAndReturn(run func(target port.TextInputTarget)) *MockFocusedInputProvider_SetFocusedInput_Call { | |||
| 1847 | + | _c.Run(run) | |||
| 1848 | + | return _c | |||
| 1849 | + | } | |||
| 1850 | + | ||||
| 1441 | // NewMockMemoryPressureApplier creates a new instance of MockMemoryPressureApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | 1851 | // NewMockMemoryPressureApplier creates a new instance of MockMemoryPressureApplier. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. | ||
| 1442 | // The first argument is typically a *testing.T value. | 1852 | // The first argument is typically a *testing.T value. | ||
| 1443 | func NewMockMemoryPressureApplier(t interface { | 1853 | func NewMockMemoryPressureApplier(t interface { | ||
M internal/ui/layout/gtk_widgets.go +9 -0
| @@ -34,6 +34,7 @@ func (w *gtkWidget) IsVisible() bool { return w.inner.GetVisible() | |||
| 34 | 34 | func (w *gtkWidget) GrabFocus() bool { return w.inner.GrabFocus() } | |
| 35 | 35 | func (w *gtkWidget) HasFocus() bool { return w.inner.HasFocus() } | |
| 36 | 36 | func (w *gtkWidget) SetCanFocus(canFocus bool) { w.inner.SetCanFocus(canFocus) } | |
| 37 | + | func (w *gtkWidget) SetFocusable(focusable bool) { w.inner.SetFocusable(focusable) } | |
| 37 | 38 | func (w *gtkWidget) SetFocusOnClick(focus bool) { w.inner.SetFocusOnClick(focus) } | |
| 38 | 39 | func (w *gtkWidget) SetCanTarget(canTarget bool) { w.inner.SetCanTarget(canTarget) } | |
| 39 | 40 | func (w *gtkWidget) SetHexpand(expand bool) { w.inner.SetHexpand(expand) } | |
| @@ -89,6 +90,7 @@ func (p *gtkPaned) IsVisible() bool { return p.inner.GetVisible() | |||
| 89 | 90 | func (p *gtkPaned) GrabFocus() bool { return p.inner.GrabFocus() } | |
| 90 | 91 | func (p *gtkPaned) HasFocus() bool { return p.inner.HasFocus() } | |
| 91 | 92 | func (p *gtkPaned) SetCanFocus(canFocus bool) { p.inner.SetCanFocus(canFocus) } | |
| 93 | + | func (p *gtkPaned) SetFocusable(focusable bool) { p.inner.SetFocusable(focusable) } | |
| 92 | 94 | func (p *gtkPaned) SetFocusOnClick(focus bool) { p.inner.SetFocusOnClick(focus) } | |
| 93 | 95 | func (p *gtkPaned) SetCanTarget(canTarget bool) { p.inner.SetCanTarget(canTarget) } | |
| 94 | 96 | func (p *gtkPaned) SetHexpand(expand bool) { p.inner.SetHexpand(expand) } | |
| @@ -210,6 +212,7 @@ func (b *gtkBox) IsVisible() bool { return b.inner.GetVisible() } | |||
| 210 | 212 | func (b *gtkBox) GrabFocus() bool { return b.inner.GrabFocus() } | |
| 211 | 213 | func (b *gtkBox) HasFocus() bool { return b.inner.HasFocus() } | |
| 212 | 214 | func (b *gtkBox) SetCanFocus(canFocus bool) { b.inner.SetCanFocus(canFocus) } | |
| 215 | + | func (b *gtkBox) SetFocusable(focusable bool) { b.inner.SetFocusable(focusable) } | |
| 213 | 216 | func (b *gtkBox) SetFocusOnClick(focus bool) { b.inner.SetFocusOnClick(focus) } | |
| 214 | 217 | func (b *gtkBox) SetCanTarget(canTarget bool) { b.inner.SetCanTarget(canTarget) } | |
| 215 | 218 | func (b *gtkBox) SetHexpand(expand bool) { b.inner.SetHexpand(expand) } | |
| @@ -315,6 +318,7 @@ func (o *gtkOverlay) IsVisible() bool { return o.inner.GetVisible( | |||
| 315 | 318 | func (o *gtkOverlay) GrabFocus() bool { return o.inner.GrabFocus() } | |
| 316 | 319 | func (o *gtkOverlay) HasFocus() bool { return o.inner.HasFocus() } | |
| 317 | 320 | func (o *gtkOverlay) SetCanFocus(canFocus bool) { o.inner.SetCanFocus(canFocus) } | |
| 321 | + | func (o *gtkOverlay) SetFocusable(focusable bool) { o.inner.SetFocusable(focusable) } | |
| 318 | 322 | func (o *gtkOverlay) SetFocusOnClick(focus bool) { o.inner.SetFocusOnClick(focus) } | |
| 319 | 323 | func (o *gtkOverlay) SetCanTarget(canTarget bool) { o.inner.SetCanTarget(canTarget) } | |
| 320 | 324 | func (o *gtkOverlay) SetHexpand(expand bool) { o.inner.SetHexpand(expand) } | |
| @@ -428,6 +432,7 @@ func (l *gtkLabel) IsVisible() bool { return l.inner.GetVisible() | |||
| 428 | 432 | func (l *gtkLabel) GrabFocus() bool { return l.inner.GrabFocus() } | |
| 429 | 433 | func (l *gtkLabel) HasFocus() bool { return l.inner.HasFocus() } | |
| 430 | 434 | func (l *gtkLabel) SetCanFocus(canFocus bool) { l.inner.SetCanFocus(canFocus) } | |
| 435 | + | func (l *gtkLabel) SetFocusable(focusable bool) { l.inner.SetFocusable(focusable) } | |
| 431 | 436 | func (l *gtkLabel) SetFocusOnClick(focus bool) { l.inner.SetFocusOnClick(focus) } | |
| 432 | 437 | func (l *gtkLabel) SetCanTarget(canTarget bool) { l.inner.SetCanTarget(canTarget) } | |
| 433 | 438 | func (l *gtkLabel) SetHexpand(expand bool) { l.inner.SetHexpand(expand) } | |
| @@ -490,6 +495,7 @@ func (btn *gtkButton) IsVisible() bool { return btn.inner.GetVisib | |||
| 490 | 495 | func (btn *gtkButton) GrabFocus() bool { return btn.inner.GrabFocus() } | |
| 491 | 496 | func (btn *gtkButton) HasFocus() bool { return btn.inner.HasFocus() } | |
| 492 | 497 | func (btn *gtkButton) SetCanFocus(canFocus bool) { btn.inner.SetCanFocus(canFocus) } | |
| 498 | + | func (btn *gtkButton) SetFocusable(focusable bool) { btn.inner.SetFocusable(focusable) } | |
| 493 | 499 | func (btn *gtkButton) SetFocusOnClick(focus bool) { btn.inner.SetFocusOnClick(focus) } | |
| 494 | 500 | func (btn *gtkButton) SetCanTarget(canTarget bool) { btn.inner.SetCanTarget(canTarget) } | |
| 495 | 501 | func (btn *gtkButton) SetHexpand(expand bool) { btn.inner.SetHexpand(expand) } | |
| @@ -571,6 +577,7 @@ func (img *gtkImage) IsVisible() bool { return img.inner.GetVisibl | |||
| 571 | 577 | func (img *gtkImage) GrabFocus() bool { return img.inner.GrabFocus() } | |
| 572 | 578 | func (img *gtkImage) HasFocus() bool { return img.inner.HasFocus() } | |
| 573 | 579 | func (img *gtkImage) SetCanFocus(canFocus bool) { img.inner.SetCanFocus(canFocus) } | |
| 580 | + | func (img *gtkImage) SetFocusable(focusable bool) { img.inner.SetFocusable(focusable) } | |
| 574 | 581 | func (img *gtkImage) SetFocusOnClick(focus bool) { img.inner.SetFocusOnClick(focus) } | |
| 575 | 582 | func (img *gtkImage) SetCanTarget(canTarget bool) { img.inner.SetCanTarget(canTarget) } | |
| 576 | 583 | func (img *gtkImage) SetHexpand(expand bool) { img.inner.SetHexpand(expand) } | |
| @@ -642,6 +649,7 @@ func (p *gtkProgressBar) IsVisible() bool { return p.inner.GetVisi | |||
| 642 | 649 | func (p *gtkProgressBar) GrabFocus() bool { return p.inner.GrabFocus() } | |
| 643 | 650 | func (p *gtkProgressBar) HasFocus() bool { return p.inner.HasFocus() } | |
| 644 | 651 | func (p *gtkProgressBar) SetCanFocus(canFocus bool) { p.inner.SetCanFocus(canFocus) } | |
| 652 | + | func (p *gtkProgressBar) SetFocusable(focusable bool) { p.inner.SetFocusable(focusable) } | |
| 645 | 653 | func (p *gtkProgressBar) SetFocusOnClick(focus bool) { p.inner.SetFocusOnClick(focus) } | |
| 646 | 654 | func (p *gtkProgressBar) SetCanTarget(canTarget bool) { p.inner.SetCanTarget(canTarget) } | |
| 647 | 655 | func (p *gtkProgressBar) SetHexpand(expand bool) { p.inner.SetHexpand(expand) } | |
| @@ -700,6 +708,7 @@ func (s *gtkSpinner) IsVisible() bool { return s.inner.GetVisible( | |||
| 700 | 708 | func (s *gtkSpinner) GrabFocus() bool { return s.inner.GrabFocus() } | |
| 701 | 709 | func (s *gtkSpinner) HasFocus() bool { return s.inner.HasFocus() } | |
| 702 | 710 | func (s *gtkSpinner) SetCanFocus(canFocus bool) { s.inner.SetCanFocus(canFocus) } | |
| 711 | + | func (s *gtkSpinner) SetFocusable(focusable bool) { s.inner.SetFocusable(focusable) } | |
| 703 | 712 | func (s *gtkSpinner) SetFocusOnClick(focus bool) { s.inner.SetFocusOnClick(focus) } | |
| 704 | 713 | func (s *gtkSpinner) SetCanTarget(canTarget bool) { s.inner.SetCanTarget(canTarget) } | |
| 705 | 714 | func (s *gtkSpinner) SetHexpand(expand bool) { s.inner.SetHexpand(expand) } | |
| @@ -34,6 +34,7 @@ func (w *gtkWidget) IsVisible() bool { return w.inner.GetVisible() | |||||
| 34 | func (w *gtkWidget) GrabFocus() bool { return w.inner.GrabFocus() } | 34 | func (w *gtkWidget) GrabFocus() bool { return w.inner.GrabFocus() } | ||
| 35 | func (w *gtkWidget) HasFocus() bool { return w.inner.HasFocus() } | 35 | func (w *gtkWidget) HasFocus() bool { return w.inner.HasFocus() } | ||
| 36 | func (w *gtkWidget) SetCanFocus(canFocus bool) { w.inner.SetCanFocus(canFocus) } | 36 | func (w *gtkWidget) SetCanFocus(canFocus bool) { w.inner.SetCanFocus(canFocus) } | ||
| 37 | + | func (w *gtkWidget) SetFocusable(focusable bool) { w.inner.SetFocusable(focusable) } | |||
| 37 | func (w *gtkWidget) SetFocusOnClick(focus bool) { w.inner.SetFocusOnClick(focus) } | 38 | func (w *gtkWidget) SetFocusOnClick(focus bool) { w.inner.SetFocusOnClick(focus) } | ||
| 38 | func (w *gtkWidget) SetCanTarget(canTarget bool) { w.inner.SetCanTarget(canTarget) } | 39 | func (w *gtkWidget) SetCanTarget(canTarget bool) { w.inner.SetCanTarget(canTarget) } | ||
| 39 | func (w *gtkWidget) SetHexpand(expand bool) { w.inner.SetHexpand(expand) } | 40 | func (w *gtkWidget) SetHexpand(expand bool) { w.inner.SetHexpand(expand) } | ||
| @@ -89,6 +90,7 @@ func (p *gtkPaned) IsVisible() bool { return p.inner.GetVisible() | |||||
| 89 | func (p *gtkPaned) GrabFocus() bool { return p.inner.GrabFocus() } | 90 | func (p *gtkPaned) GrabFocus() bool { return p.inner.GrabFocus() } | ||
| 90 | func (p *gtkPaned) HasFocus() bool { return p.inner.HasFocus() } | 91 | func (p *gtkPaned) HasFocus() bool { return p.inner.HasFocus() } | ||
| 91 | func (p *gtkPaned) SetCanFocus(canFocus bool) { p.inner.SetCanFocus(canFocus) } | 92 | func (p *gtkPaned) SetCanFocus(canFocus bool) { p.inner.SetCanFocus(canFocus) } | ||
| 93 | + | func (p *gtkPaned) SetFocusable(focusable bool) { p.inner.SetFocusable(focusable) } | |||
| 92 | func (p *gtkPaned) SetFocusOnClick(focus bool) { p.inner.SetFocusOnClick(focus) } | 94 | func (p *gtkPaned) SetFocusOnClick(focus bool) { p.inner.SetFocusOnClick(focus) } | ||
| 93 | func (p *gtkPaned) SetCanTarget(canTarget bool) { p.inner.SetCanTarget(canTarget) } | 95 | func (p *gtkPaned) SetCanTarget(canTarget bool) { p.inner.SetCanTarget(canTarget) } | ||
| 94 | func (p *gtkPaned) SetHexpand(expand bool) { p.inner.SetHexpand(expand) } | 96 | func (p *gtkPaned) SetHexpand(expand bool) { p.inner.SetHexpand(expand) } | ||
| @@ -210,6 +212,7 @@ func (b *gtkBox) IsVisible() bool { return b.inner.GetVisible() } | |||||
| 210 | func (b *gtkBox) GrabFocus() bool { return b.inner.GrabFocus() } | 212 | func (b *gtkBox) GrabFocus() bool { return b.inner.GrabFocus() } | ||
| 211 | func (b *gtkBox) HasFocus() bool { return b.inner.HasFocus() } | 213 | func (b *gtkBox) HasFocus() bool { return b.inner.HasFocus() } | ||
| 212 | func (b *gtkBox) SetCanFocus(canFocus bool) { b.inner.SetCanFocus(canFocus) } | 214 | func (b *gtkBox) SetCanFocus(canFocus bool) { b.inner.SetCanFocus(canFocus) } | ||
| 215 | + | func (b *gtkBox) SetFocusable(focusable bool) { b.inner.SetFocusable(focusable) } | |||
| 213 | func (b *gtkBox) SetFocusOnClick(focus bool) { b.inner.SetFocusOnClick(focus) } | 216 | func (b *gtkBox) SetFocusOnClick(focus bool) { b.inner.SetFocusOnClick(focus) } | ||
| 214 | func (b *gtkBox) SetCanTarget(canTarget bool) { b.inner.SetCanTarget(canTarget) } | 217 | func (b *gtkBox) SetCanTarget(canTarget bool) { b.inner.SetCanTarget(canTarget) } | ||
| 215 | func (b *gtkBox) SetHexpand(expand bool) { b.inner.SetHexpand(expand) } | 218 | func (b *gtkBox) SetHexpand(expand bool) { b.inner.SetHexpand(expand) } | ||
| @@ -315,6 +318,7 @@ func (o *gtkOverlay) IsVisible() bool { return o.inner.GetVisible( | |||||
| 315 | func (o *gtkOverlay) GrabFocus() bool { return o.inner.GrabFocus() } | 318 | func (o *gtkOverlay) GrabFocus() bool { return o.inner.GrabFocus() } | ||
| 316 | func (o *gtkOverlay) HasFocus() bool { return o.inner.HasFocus() } | 319 | func (o *gtkOverlay) HasFocus() bool { return o.inner.HasFocus() } | ||
| 317 | func (o *gtkOverlay) SetCanFocus(canFocus bool) { o.inner.SetCanFocus(canFocus) } | 320 | func (o *gtkOverlay) SetCanFocus(canFocus bool) { o.inner.SetCanFocus(canFocus) } | ||
| 321 | + | func (o *gtkOverlay) SetFocusable(focusable bool) { o.inner.SetFocusable(focusable) } | |||
| 318 | func (o *gtkOverlay) SetFocusOnClick(focus bool) { o.inner.SetFocusOnClick(focus) } | 322 | func (o *gtkOverlay) SetFocusOnClick(focus bool) { o.inner.SetFocusOnClick(focus) } | ||
| 319 | func (o *gtkOverlay) SetCanTarget(canTarget bool) { o.inner.SetCanTarget(canTarget) } | 323 | func (o *gtkOverlay) SetCanTarget(canTarget bool) { o.inner.SetCanTarget(canTarget) } | ||
| 320 | func (o *gtkOverlay) SetHexpand(expand bool) { o.inner.SetHexpand(expand) } | 324 | func (o *gtkOverlay) SetHexpand(expand bool) { o.inner.SetHexpand(expand) } | ||
| @@ -428,6 +432,7 @@ func (l *gtkLabel) IsVisible() bool { return l.inner.GetVisible() | |||||
| 428 | func (l *gtkLabel) GrabFocus() bool { return l.inner.GrabFocus() } | 432 | func (l *gtkLabel) GrabFocus() bool { return l.inner.GrabFocus() } | ||
| 429 | func (l *gtkLabel) HasFocus() bool { return l.inner.HasFocus() } | 433 | func (l *gtkLabel) HasFocus() bool { return l.inner.HasFocus() } | ||
| 430 | func (l *gtkLabel) SetCanFocus(canFocus bool) { l.inner.SetCanFocus(canFocus) } | 434 | func (l *gtkLabel) SetCanFocus(canFocus bool) { l.inner.SetCanFocus(canFocus) } | ||
| 435 | + | func (l *gtkLabel) SetFocusable(focusable bool) { l.inner.SetFocusable(focusable) } | |||
| 431 | func (l *gtkLabel) SetFocusOnClick(focus bool) { l.inner.SetFocusOnClick(focus) } | 436 | func (l *gtkLabel) SetFocusOnClick(focus bool) { l.inner.SetFocusOnClick(focus) } | ||
| 432 | func (l *gtkLabel) SetCanTarget(canTarget bool) { l.inner.SetCanTarget(canTarget) } | 437 | func (l *gtkLabel) SetCanTarget(canTarget bool) { l.inner.SetCanTarget(canTarget) } | ||
| 433 | func (l *gtkLabel) SetHexpand(expand bool) { l.inner.SetHexpand(expand) } | 438 | func (l *gtkLabel) SetHexpand(expand bool) { l.inner.SetHexpand(expand) } | ||
| @@ -490,6 +495,7 @@ func (btn *gtkButton) IsVisible() bool { return btn.inner.GetVisib | |||||
| 490 | func (btn *gtkButton) GrabFocus() bool { return btn.inner.GrabFocus() } | 495 | func (btn *gtkButton) GrabFocus() bool { return btn.inner.GrabFocus() } | ||
| 491 | func (btn *gtkButton) HasFocus() bool { return btn.inner.HasFocus() } | 496 | func (btn *gtkButton) HasFocus() bool { return btn.inner.HasFocus() } | ||
| 492 | func (btn *gtkButton) SetCanFocus(canFocus bool) { btn.inner.SetCanFocus(canFocus) } | 497 | func (btn *gtkButton) SetCanFocus(canFocus bool) { btn.inner.SetCanFocus(canFocus) } | ||
| 498 | + | func (btn *gtkButton) SetFocusable(focusable bool) { btn.inner.SetFocusable(focusable) } | |||
| 493 | func (btn *gtkButton) SetFocusOnClick(focus bool) { btn.inner.SetFocusOnClick(focus) } | 499 | func (btn *gtkButton) SetFocusOnClick(focus bool) { btn.inner.SetFocusOnClick(focus) } | ||
| 494 | func (btn *gtkButton) SetCanTarget(canTarget bool) { btn.inner.SetCanTarget(canTarget) } | 500 | func (btn *gtkButton) SetCanTarget(canTarget bool) { btn.inner.SetCanTarget(canTarget) } | ||
| 495 | func (btn *gtkButton) SetHexpand(expand bool) { btn.inner.SetHexpand(expand) } | 501 | func (btn *gtkButton) SetHexpand(expand bool) { btn.inner.SetHexpand(expand) } | ||
| @@ -571,6 +577,7 @@ func (img *gtkImage) IsVisible() bool { return img.inner.GetVisibl | |||||
| 571 | func (img *gtkImage) GrabFocus() bool { return img.inner.GrabFocus() } | 577 | func (img *gtkImage) GrabFocus() bool { return img.inner.GrabFocus() } | ||
| 572 | func (img *gtkImage) HasFocus() bool { return img.inner.HasFocus() } | 578 | func (img *gtkImage) HasFocus() bool { return img.inner.HasFocus() } | ||
| 573 | func (img *gtkImage) SetCanFocus(canFocus bool) { img.inner.SetCanFocus(canFocus) } | 579 | func (img *gtkImage) SetCanFocus(canFocus bool) { img.inner.SetCanFocus(canFocus) } | ||
| 580 | + | func (img *gtkImage) SetFocusable(focusable bool) { img.inner.SetFocusable(focusable) } | |||
| 574 | func (img *gtkImage) SetFocusOnClick(focus bool) { img.inner.SetFocusOnClick(focus) } | 581 | func (img *gtkImage) SetFocusOnClick(focus bool) { img.inner.SetFocusOnClick(focus) } | ||
| 575 | func (img *gtkImage) SetCanTarget(canTarget bool) { img.inner.SetCanTarget(canTarget) } | 582 | func (img *gtkImage) SetCanTarget(canTarget bool) { img.inner.SetCanTarget(canTarget) } | ||
| 576 | func (img *gtkImage) SetHexpand(expand bool) { img.inner.SetHexpand(expand) } | 583 | func (img *gtkImage) SetHexpand(expand bool) { img.inner.SetHexpand(expand) } | ||
| @@ -642,6 +649,7 @@ func (p *gtkProgressBar) IsVisible() bool { return p.inner.GetVisi | |||||
| 642 | func (p *gtkProgressBar) GrabFocus() bool { return p.inner.GrabFocus() } | 649 | func (p *gtkProgressBar) GrabFocus() bool { return p.inner.GrabFocus() } | ||
| 643 | func (p *gtkProgressBar) HasFocus() bool { return p.inner.HasFocus() } | 650 | func (p *gtkProgressBar) HasFocus() bool { return p.inner.HasFocus() } | ||
| 644 | func (p *gtkProgressBar) SetCanFocus(canFocus bool) { p.inner.SetCanFocus(canFocus) } | 651 | func (p *gtkProgressBar) SetCanFocus(canFocus bool) { p.inner.SetCanFocus(canFocus) } | ||
| 652 | + | func (p *gtkProgressBar) SetFocusable(focusable bool) { p.inner.SetFocusable(focusable) } | |||
| 645 | func (p *gtkProgressBar) SetFocusOnClick(focus bool) { p.inner.SetFocusOnClick(focus) } | 653 | func (p *gtkProgressBar) SetFocusOnClick(focus bool) { p.inner.SetFocusOnClick(focus) } | ||
| 646 | func (p *gtkProgressBar) SetCanTarget(canTarget bool) { p.inner.SetCanTarget(canTarget) } | 654 | func (p *gtkProgressBar) SetCanTarget(canTarget bool) { p.inner.SetCanTarget(canTarget) } | ||
| 647 | func (p *gtkProgressBar) SetHexpand(expand bool) { p.inner.SetHexpand(expand) } | 655 | func (p *gtkProgressBar) SetHexpand(expand bool) { p.inner.SetHexpand(expand) } | ||
| @@ -700,6 +708,7 @@ func (s *gtkSpinner) IsVisible() bool { return s.inner.GetVisible( | |||||
| 700 | func (s *gtkSpinner) GrabFocus() bool { return s.inner.GrabFocus() } | 708 | func (s *gtkSpinner) GrabFocus() bool { return s.inner.GrabFocus() } | ||
| 701 | func (s *gtkSpinner) HasFocus() bool { return s.inner.HasFocus() } | 709 | func (s *gtkSpinner) HasFocus() bool { return s.inner.HasFocus() } | ||
| 702 | func (s *gtkSpinner) SetCanFocus(canFocus bool) { s.inner.SetCanFocus(canFocus) } | 710 | func (s *gtkSpinner) SetCanFocus(canFocus bool) { s.inner.SetCanFocus(canFocus) } | ||
| 711 | + | func (s *gtkSpinner) SetFocusable(focusable bool) { s.inner.SetFocusable(focusable) } | |||
| 703 | func (s *gtkSpinner) SetFocusOnClick(focus bool) { s.inner.SetFocusOnClick(focus) } | 712 | func (s *gtkSpinner) SetFocusOnClick(focus bool) { s.inner.SetFocusOnClick(focus) } | ||
| 704 | func (s *gtkSpinner) SetCanTarget(canTarget bool) { s.inner.SetCanTarget(canTarget) } | 713 | func (s *gtkSpinner) SetCanTarget(canTarget bool) { s.inner.SetCanTarget(canTarget) } | ||
| 705 | func (s *gtkSpinner) SetHexpand(expand bool) { s.inner.SetHexpand(expand) } | 714 | func (s *gtkSpinner) SetHexpand(expand bool) { s.inner.SetHexpand(expand) } | ||
M internal/ui/layout/mocks/mocks.go +360 -0
| @@ -908,6 +908,46 @@ func (_c *MockWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bo | |||
| 908 | 908 | return _c | |
| 909 | 909 | } | |
| 910 | 910 | ||
| 911 | + | // SetFocusable provides a mock function for the type MockWidget | |
| 912 | + | func (_mock *MockWidget) SetFocusable(focusable bool) { | |
| 913 | + | _mock.Called(focusable) | |
| 914 | + | return | |
| 915 | + | } | |
| 916 | + | ||
| 917 | + | // MockWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 918 | + | type MockWidget_SetFocusable_Call struct { | |
| 919 | + | *mock.Call | |
| 920 | + | } | |
| 921 | + | ||
| 922 | + | // SetFocusable is a helper method to define mock.On call | |
| 923 | + | // - focusable bool | |
| 924 | + | func (_e *MockWidget_Expecter) SetFocusable(focusable interface{}) *MockWidget_SetFocusable_Call { | |
| 925 | + | return &MockWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 926 | + | } | |
| 927 | + | ||
| 928 | + | func (_c *MockWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockWidget_SetFocusable_Call { | |
| 929 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 930 | + | var arg0 bool | |
| 931 | + | if args[0] != nil { | |
| 932 | + | arg0 = args[0].(bool) | |
| 933 | + | } | |
| 934 | + | run( | |
| 935 | + | arg0, | |
| 936 | + | ) | |
| 937 | + | }) | |
| 938 | + | return _c | |
| 939 | + | } | |
| 940 | + | ||
| 941 | + | func (_c *MockWidget_SetFocusable_Call) Return() *MockWidget_SetFocusable_Call { | |
| 942 | + | _c.Call.Return() | |
| 943 | + | return _c | |
| 944 | + | } | |
| 945 | + | ||
| 946 | + | func (_c *MockWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockWidget_SetFocusable_Call { | |
| 947 | + | _c.Run(run) | |
| 948 | + | return _c | |
| 949 | + | } | |
| 950 | + | ||
| 911 | 951 | // SetHalign provides a mock function for the type MockWidget | |
| 912 | 952 | func (_mock *MockWidget) SetHalign(align gtk.Align) { | |
| 913 | 953 | _mock.Called(align) | |
| @@ -2586,6 +2626,46 @@ func (_c *MockPanedWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCli | |||
| 2586 | 2626 | return _c | |
| 2587 | 2627 | } | |
| 2588 | 2628 | ||
| 2629 | + | // SetFocusable provides a mock function for the type MockPanedWidget | |
| 2630 | + | func (_mock *MockPanedWidget) SetFocusable(focusable bool) { | |
| 2631 | + | _mock.Called(focusable) | |
| 2632 | + | return | |
| 2633 | + | } | |
| 2634 | + | ||
| 2635 | + | // MockPanedWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 2636 | + | type MockPanedWidget_SetFocusable_Call struct { | |
| 2637 | + | *mock.Call | |
| 2638 | + | } | |
| 2639 | + | ||
| 2640 | + | // SetFocusable is a helper method to define mock.On call | |
| 2641 | + | // - focusable bool | |
| 2642 | + | func (_e *MockPanedWidget_Expecter) SetFocusable(focusable interface{}) *MockPanedWidget_SetFocusable_Call { | |
| 2643 | + | return &MockPanedWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 2644 | + | } | |
| 2645 | + | ||
| 2646 | + | func (_c *MockPanedWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockPanedWidget_SetFocusable_Call { | |
| 2647 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 2648 | + | var arg0 bool | |
| 2649 | + | if args[0] != nil { | |
| 2650 | + | arg0 = args[0].(bool) | |
| 2651 | + | } | |
| 2652 | + | run( | |
| 2653 | + | arg0, | |
| 2654 | + | ) | |
| 2655 | + | }) | |
| 2656 | + | return _c | |
| 2657 | + | } | |
| 2658 | + | ||
| 2659 | + | func (_c *MockPanedWidget_SetFocusable_Call) Return() *MockPanedWidget_SetFocusable_Call { | |
| 2660 | + | _c.Call.Return() | |
| 2661 | + | return _c | |
| 2662 | + | } | |
| 2663 | + | ||
| 2664 | + | func (_c *MockPanedWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockPanedWidget_SetFocusable_Call { | |
| 2665 | + | _c.Run(run) | |
| 2666 | + | return _c | |
| 2667 | + | } | |
| 2668 | + | ||
| 2589 | 2669 | // SetHalign provides a mock function for the type MockPanedWidget | |
| 2590 | 2670 | func (_mock *MockPanedWidget) SetHalign(align gtk.Align) { | |
| 2591 | 2671 | _mock.Called(align) | |
| @@ -4339,6 +4419,46 @@ func (_c *MockBoxWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick | |||
| 4339 | 4419 | return _c | |
| 4340 | 4420 | } | |
| 4341 | 4421 | ||
| 4422 | + | // SetFocusable provides a mock function for the type MockBoxWidget | |
| 4423 | + | func (_mock *MockBoxWidget) SetFocusable(focusable bool) { | |
| 4424 | + | _mock.Called(focusable) | |
| 4425 | + | return | |
| 4426 | + | } | |
| 4427 | + | ||
| 4428 | + | // MockBoxWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 4429 | + | type MockBoxWidget_SetFocusable_Call struct { | |
| 4430 | + | *mock.Call | |
| 4431 | + | } | |
| 4432 | + | ||
| 4433 | + | // SetFocusable is a helper method to define mock.On call | |
| 4434 | + | // - focusable bool | |
| 4435 | + | func (_e *MockBoxWidget_Expecter) SetFocusable(focusable interface{}) *MockBoxWidget_SetFocusable_Call { | |
| 4436 | + | return &MockBoxWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 4437 | + | } | |
| 4438 | + | ||
| 4439 | + | func (_c *MockBoxWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockBoxWidget_SetFocusable_Call { | |
| 4440 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 4441 | + | var arg0 bool | |
| 4442 | + | if args[0] != nil { | |
| 4443 | + | arg0 = args[0].(bool) | |
| 4444 | + | } | |
| 4445 | + | run( | |
| 4446 | + | arg0, | |
| 4447 | + | ) | |
| 4448 | + | }) | |
| 4449 | + | return _c | |
| 4450 | + | } | |
| 4451 | + | ||
| 4452 | + | func (_c *MockBoxWidget_SetFocusable_Call) Return() *MockBoxWidget_SetFocusable_Call { | |
| 4453 | + | _c.Call.Return() | |
| 4454 | + | return _c | |
| 4455 | + | } | |
| 4456 | + | ||
| 4457 | + | func (_c *MockBoxWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockBoxWidget_SetFocusable_Call { | |
| 4458 | + | _c.Run(run) | |
| 4459 | + | return _c | |
| 4460 | + | } | |
| 4461 | + | ||
| 4342 | 4462 | // SetHalign provides a mock function for the type MockBoxWidget | |
| 4343 | 4463 | func (_mock *MockBoxWidget) SetHalign(align gtk.Align) { | |
| 4344 | 4464 | _mock.Called(align) | |
| @@ -5902,6 +6022,46 @@ func (_c *MockOverlayWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnC | |||
| 5902 | 6022 | return _c | |
| 5903 | 6023 | } | |
| 5904 | 6024 | ||
| 6025 | + | // SetFocusable provides a mock function for the type MockOverlayWidget | |
| 6026 | + | func (_mock *MockOverlayWidget) SetFocusable(focusable bool) { | |
| 6027 | + | _mock.Called(focusable) | |
| 6028 | + | return | |
| 6029 | + | } | |
| 6030 | + | ||
| 6031 | + | // MockOverlayWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 6032 | + | type MockOverlayWidget_SetFocusable_Call struct { | |
| 6033 | + | *mock.Call | |
| 6034 | + | } | |
| 6035 | + | ||
| 6036 | + | // SetFocusable is a helper method to define mock.On call | |
| 6037 | + | // - focusable bool | |
| 6038 | + | func (_e *MockOverlayWidget_Expecter) SetFocusable(focusable interface{}) *MockOverlayWidget_SetFocusable_Call { | |
| 6039 | + | return &MockOverlayWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 6040 | + | } | |
| 6041 | + | ||
| 6042 | + | func (_c *MockOverlayWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockOverlayWidget_SetFocusable_Call { | |
| 6043 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 6044 | + | var arg0 bool | |
| 6045 | + | if args[0] != nil { | |
| 6046 | + | arg0 = args[0].(bool) | |
| 6047 | + | } | |
| 6048 | + | run( | |
| 6049 | + | arg0, | |
| 6050 | + | ) | |
| 6051 | + | }) | |
| 6052 | + | return _c | |
| 6053 | + | } | |
| 6054 | + | ||
| 6055 | + | func (_c *MockOverlayWidget_SetFocusable_Call) Return() *MockOverlayWidget_SetFocusable_Call { | |
| 6056 | + | _c.Call.Return() | |
| 6057 | + | return _c | |
| 6058 | + | } | |
| 6059 | + | ||
| 6060 | + | func (_c *MockOverlayWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockOverlayWidget_SetFocusable_Call { | |
| 6061 | + | _c.Run(run) | |
| 6062 | + | return _c | |
| 6063 | + | } | |
| 6064 | + | ||
| 5905 | 6065 | // SetHalign provides a mock function for the type MockOverlayWidget | |
| 5906 | 6066 | func (_mock *MockOverlayWidget) SetHalign(align gtk.Align) { | |
| 5907 | 6067 | _mock.Called(align) | |
| @@ -7161,6 +7321,46 @@ func (_c *MockLabelWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCli | |||
| 7161 | 7321 | return _c | |
| 7162 | 7322 | } | |
| 7163 | 7323 | ||
| 7324 | + | // SetFocusable provides a mock function for the type MockLabelWidget | |
| 7325 | + | func (_mock *MockLabelWidget) SetFocusable(focusable bool) { | |
| 7326 | + | _mock.Called(focusable) | |
| 7327 | + | return | |
| 7328 | + | } | |
| 7329 | + | ||
| 7330 | + | // MockLabelWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 7331 | + | type MockLabelWidget_SetFocusable_Call struct { | |
| 7332 | + | *mock.Call | |
| 7333 | + | } | |
| 7334 | + | ||
| 7335 | + | // SetFocusable is a helper method to define mock.On call | |
| 7336 | + | // - focusable bool | |
| 7337 | + | func (_e *MockLabelWidget_Expecter) SetFocusable(focusable interface{}) *MockLabelWidget_SetFocusable_Call { | |
| 7338 | + | return &MockLabelWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 7339 | + | } | |
| 7340 | + | ||
| 7341 | + | func (_c *MockLabelWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockLabelWidget_SetFocusable_Call { | |
| 7342 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 7343 | + | var arg0 bool | |
| 7344 | + | if args[0] != nil { | |
| 7345 | + | arg0 = args[0].(bool) | |
| 7346 | + | } | |
| 7347 | + | run( | |
| 7348 | + | arg0, | |
| 7349 | + | ) | |
| 7350 | + | }) | |
| 7351 | + | return _c | |
| 7352 | + | } | |
| 7353 | + | ||
| 7354 | + | func (_c *MockLabelWidget_SetFocusable_Call) Return() *MockLabelWidget_SetFocusable_Call { | |
| 7355 | + | _c.Call.Return() | |
| 7356 | + | return _c | |
| 7357 | + | } | |
| 7358 | + | ||
| 7359 | + | func (_c *MockLabelWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockLabelWidget_SetFocusable_Call { | |
| 7360 | + | _c.Run(run) | |
| 7361 | + | return _c | |
| 7362 | + | } | |
| 7363 | + | ||
| 7164 | 7364 | // SetHalign provides a mock function for the type MockLabelWidget | |
| 7165 | 7365 | func (_mock *MockLabelWidget) SetHalign(align gtk.Align) { | |
| 7166 | 7366 | _mock.Called(align) | |
| @@ -8631,6 +8831,46 @@ func (_c *MockButtonWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCl | |||
| 8631 | 8831 | return _c | |
| 8632 | 8832 | } | |
| 8633 | 8833 | ||
| 8834 | + | // SetFocusable provides a mock function for the type MockButtonWidget | |
| 8835 | + | func (_mock *MockButtonWidget) SetFocusable(focusable bool) { | |
| 8836 | + | _mock.Called(focusable) | |
| 8837 | + | return | |
| 8838 | + | } | |
| 8839 | + | ||
| 8840 | + | // MockButtonWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 8841 | + | type MockButtonWidget_SetFocusable_Call struct { | |
| 8842 | + | *mock.Call | |
| 8843 | + | } | |
| 8844 | + | ||
| 8845 | + | // SetFocusable is a helper method to define mock.On call | |
| 8846 | + | // - focusable bool | |
| 8847 | + | func (_e *MockButtonWidget_Expecter) SetFocusable(focusable interface{}) *MockButtonWidget_SetFocusable_Call { | |
| 8848 | + | return &MockButtonWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 8849 | + | } | |
| 8850 | + | ||
| 8851 | + | func (_c *MockButtonWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockButtonWidget_SetFocusable_Call { | |
| 8852 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 8853 | + | var arg0 bool | |
| 8854 | + | if args[0] != nil { | |
| 8855 | + | arg0 = args[0].(bool) | |
| 8856 | + | } | |
| 8857 | + | run( | |
| 8858 | + | arg0, | |
| 8859 | + | ) | |
| 8860 | + | }) | |
| 8861 | + | return _c | |
| 8862 | + | } | |
| 8863 | + | ||
| 8864 | + | func (_c *MockButtonWidget_SetFocusable_Call) Return() *MockButtonWidget_SetFocusable_Call { | |
| 8865 | + | _c.Call.Return() | |
| 8866 | + | return _c | |
| 8867 | + | } | |
| 8868 | + | ||
| 8869 | + | func (_c *MockButtonWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockButtonWidget_SetFocusable_Call { | |
| 8870 | + | _c.Run(run) | |
| 8871 | + | return _c | |
| 8872 | + | } | |
| 8873 | + | ||
| 8634 | 8874 | // SetHalign provides a mock function for the type MockButtonWidget | |
| 8635 | 8875 | func (_mock *MockButtonWidget) SetHalign(align gtk.Align) { | |
| 8636 | 8876 | _mock.Called(align) | |
| @@ -9833,6 +10073,46 @@ func (_c *MockImageWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCli | |||
| 9833 | 10073 | return _c | |
| 9834 | 10074 | } | |
| 9835 | 10075 | ||
| 10076 | + | // SetFocusable provides a mock function for the type MockImageWidget | |
| 10077 | + | func (_mock *MockImageWidget) SetFocusable(focusable bool) { | |
| 10078 | + | _mock.Called(focusable) | |
| 10079 | + | return | |
| 10080 | + | } | |
| 10081 | + | ||
| 10082 | + | // MockImageWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 10083 | + | type MockImageWidget_SetFocusable_Call struct { | |
| 10084 | + | *mock.Call | |
| 10085 | + | } | |
| 10086 | + | ||
| 10087 | + | // SetFocusable is a helper method to define mock.On call | |
| 10088 | + | // - focusable bool | |
| 10089 | + | func (_e *MockImageWidget_Expecter) SetFocusable(focusable interface{}) *MockImageWidget_SetFocusable_Call { | |
| 10090 | + | return &MockImageWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 10091 | + | } | |
| 10092 | + | ||
| 10093 | + | func (_c *MockImageWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockImageWidget_SetFocusable_Call { | |
| 10094 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 10095 | + | var arg0 bool | |
| 10096 | + | if args[0] != nil { | |
| 10097 | + | arg0 = args[0].(bool) | |
| 10098 | + | } | |
| 10099 | + | run( | |
| 10100 | + | arg0, | |
| 10101 | + | ) | |
| 10102 | + | }) | |
| 10103 | + | return _c | |
| 10104 | + | } | |
| 10105 | + | ||
| 10106 | + | func (_c *MockImageWidget_SetFocusable_Call) Return() *MockImageWidget_SetFocusable_Call { | |
| 10107 | + | _c.Call.Return() | |
| 10108 | + | return _c | |
| 10109 | + | } | |
| 10110 | + | ||
| 10111 | + | func (_c *MockImageWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockImageWidget_SetFocusable_Call { | |
| 10112 | + | _c.Run(run) | |
| 10113 | + | return _c | |
| 10114 | + | } | |
| 10115 | + | ||
| 9836 | 10116 | // SetFromFile provides a mock function for the type MockImageWidget | |
| 9837 | 10117 | func (_mock *MockImageWidget) SetFromFile(filename string) { | |
| 9838 | 10118 | _mock.Called(filename) | |
| @@ -11166,6 +11446,46 @@ func (_c *MockProgressBarWidget_SetFocusOnClick_Call) RunAndReturn(run func(focu | |||
| 11166 | 11446 | return _c | |
| 11167 | 11447 | } | |
| 11168 | 11448 | ||
| 11449 | + | // SetFocusable provides a mock function for the type MockProgressBarWidget | |
| 11450 | + | func (_mock *MockProgressBarWidget) SetFocusable(focusable bool) { | |
| 11451 | + | _mock.Called(focusable) | |
| 11452 | + | return | |
| 11453 | + | } | |
| 11454 | + | ||
| 11455 | + | // MockProgressBarWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 11456 | + | type MockProgressBarWidget_SetFocusable_Call struct { | |
| 11457 | + | *mock.Call | |
| 11458 | + | } | |
| 11459 | + | ||
| 11460 | + | // SetFocusable is a helper method to define mock.On call | |
| 11461 | + | // - focusable bool | |
| 11462 | + | func (_e *MockProgressBarWidget_Expecter) SetFocusable(focusable interface{}) *MockProgressBarWidget_SetFocusable_Call { | |
| 11463 | + | return &MockProgressBarWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 11464 | + | } | |
| 11465 | + | ||
| 11466 | + | func (_c *MockProgressBarWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockProgressBarWidget_SetFocusable_Call { | |
| 11467 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 11468 | + | var arg0 bool | |
| 11469 | + | if args[0] != nil { | |
| 11470 | + | arg0 = args[0].(bool) | |
| 11471 | + | } | |
| 11472 | + | run( | |
| 11473 | + | arg0, | |
| 11474 | + | ) | |
| 11475 | + | }) | |
| 11476 | + | return _c | |
| 11477 | + | } | |
| 11478 | + | ||
| 11479 | + | func (_c *MockProgressBarWidget_SetFocusable_Call) Return() *MockProgressBarWidget_SetFocusable_Call { | |
| 11480 | + | _c.Call.Return() | |
| 11481 | + | return _c | |
| 11482 | + | } | |
| 11483 | + | ||
| 11484 | + | func (_c *MockProgressBarWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockProgressBarWidget_SetFocusable_Call { | |
| 11485 | + | _c.Run(run) | |
| 11486 | + | return _c | |
| 11487 | + | } | |
| 11488 | + | ||
| 11169 | 11489 | // SetFraction provides a mock function for the type MockProgressBarWidget | |
| 11170 | 11490 | func (_mock *MockProgressBarWidget) SetFraction(fraction float64) { | |
| 11171 | 11491 | _mock.Called(fraction) | |
| @@ -12379,6 +12699,46 @@ func (_c *MockSpinnerWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnC | |||
| 12379 | 12699 | return _c | |
| 12380 | 12700 | } | |
| 12381 | 12701 | ||
| 12702 | + | // SetFocusable provides a mock function for the type MockSpinnerWidget | |
| 12703 | + | func (_mock *MockSpinnerWidget) SetFocusable(focusable bool) { | |
| 12704 | + | _mock.Called(focusable) | |
| 12705 | + | return | |
| 12706 | + | } | |
| 12707 | + | ||
| 12708 | + | // MockSpinnerWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |
| 12709 | + | type MockSpinnerWidget_SetFocusable_Call struct { | |
| 12710 | + | *mock.Call | |
| 12711 | + | } | |
| 12712 | + | ||
| 12713 | + | // SetFocusable is a helper method to define mock.On call | |
| 12714 | + | // - focusable bool | |
| 12715 | + | func (_e *MockSpinnerWidget_Expecter) SetFocusable(focusable interface{}) *MockSpinnerWidget_SetFocusable_Call { | |
| 12716 | + | return &MockSpinnerWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |
| 12717 | + | } | |
| 12718 | + | ||
| 12719 | + | func (_c *MockSpinnerWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockSpinnerWidget_SetFocusable_Call { | |
| 12720 | + | _c.Call.Run(func(args mock.Arguments) { | |
| 12721 | + | var arg0 bool | |
| 12722 | + | if args[0] != nil { | |
| 12723 | + | arg0 = args[0].(bool) | |
| 12724 | + | } | |
| 12725 | + | run( | |
| 12726 | + | arg0, | |
| 12727 | + | ) | |
| 12728 | + | }) | |
| 12729 | + | return _c | |
| 12730 | + | } | |
| 12731 | + | ||
| 12732 | + | func (_c *MockSpinnerWidget_SetFocusable_Call) Return() *MockSpinnerWidget_SetFocusable_Call { | |
| 12733 | + | _c.Call.Return() | |
| 12734 | + | return _c | |
| 12735 | + | } | |
| 12736 | + | ||
| 12737 | + | func (_c *MockSpinnerWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockSpinnerWidget_SetFocusable_Call { | |
| 12738 | + | _c.Run(run) | |
| 12739 | + | return _c | |
| 12740 | + | } | |
| 12741 | + | ||
| 12382 | 12742 | // SetHalign provides a mock function for the type MockSpinnerWidget | |
| 12383 | 12743 | func (_mock *MockSpinnerWidget) SetHalign(align gtk.Align) { | |
| 12384 | 12744 | _mock.Called(align) | |
| @@ -908,6 +908,46 @@ func (_c *MockWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick bo | |||||
| 908 | return _c | 908 | return _c | ||
| 909 | } | 909 | } | ||
| 910 | 910 | ||||
| 911 | + | // SetFocusable provides a mock function for the type MockWidget | |||
| 912 | + | func (_mock *MockWidget) SetFocusable(focusable bool) { | |||
| 913 | + | _mock.Called(focusable) | |||
| 914 | + | return | |||
| 915 | + | } | |||
| 916 | + | ||||
| 917 | + | // MockWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 918 | + | type MockWidget_SetFocusable_Call struct { | |||
| 919 | + | *mock.Call | |||
| 920 | + | } | |||
| 921 | + | ||||
| 922 | + | // SetFocusable is a helper method to define mock.On call | |||
| 923 | + | // - focusable bool | |||
| 924 | + | func (_e *MockWidget_Expecter) SetFocusable(focusable interface{}) *MockWidget_SetFocusable_Call { | |||
| 925 | + | return &MockWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 926 | + | } | |||
| 927 | + | ||||
| 928 | + | func (_c *MockWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockWidget_SetFocusable_Call { | |||
| 929 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 930 | + | var arg0 bool | |||
| 931 | + | if args[0] != nil { | |||
| 932 | + | arg0 = args[0].(bool) | |||
| 933 | + | } | |||
| 934 | + | run( | |||
| 935 | + | arg0, | |||
| 936 | + | ) | |||
| 937 | + | }) | |||
| 938 | + | return _c | |||
| 939 | + | } | |||
| 940 | + | ||||
| 941 | + | func (_c *MockWidget_SetFocusable_Call) Return() *MockWidget_SetFocusable_Call { | |||
| 942 | + | _c.Call.Return() | |||
| 943 | + | return _c | |||
| 944 | + | } | |||
| 945 | + | ||||
| 946 | + | func (_c *MockWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockWidget_SetFocusable_Call { | |||
| 947 | + | _c.Run(run) | |||
| 948 | + | return _c | |||
| 949 | + | } | |||
| 950 | + | ||||
| 911 | // SetHalign provides a mock function for the type MockWidget | 951 | // SetHalign provides a mock function for the type MockWidget | ||
| 912 | func (_mock *MockWidget) SetHalign(align gtk.Align) { | 952 | func (_mock *MockWidget) SetHalign(align gtk.Align) { | ||
| 913 | _mock.Called(align) | 953 | _mock.Called(align) | ||
| @@ -2586,6 +2626,46 @@ func (_c *MockPanedWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCli | |||||
| 2586 | return _c | 2626 | return _c | ||
| 2587 | } | 2627 | } | ||
| 2588 | 2628 | ||||
| 2629 | + | // SetFocusable provides a mock function for the type MockPanedWidget | |||
| 2630 | + | func (_mock *MockPanedWidget) SetFocusable(focusable bool) { | |||
| 2631 | + | _mock.Called(focusable) | |||
| 2632 | + | return | |||
| 2633 | + | } | |||
| 2634 | + | ||||
| 2635 | + | // MockPanedWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 2636 | + | type MockPanedWidget_SetFocusable_Call struct { | |||
| 2637 | + | *mock.Call | |||
| 2638 | + | } | |||
| 2639 | + | ||||
| 2640 | + | // SetFocusable is a helper method to define mock.On call | |||
| 2641 | + | // - focusable bool | |||
| 2642 | + | func (_e *MockPanedWidget_Expecter) SetFocusable(focusable interface{}) *MockPanedWidget_SetFocusable_Call { | |||
| 2643 | + | return &MockPanedWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 2644 | + | } | |||
| 2645 | + | ||||
| 2646 | + | func (_c *MockPanedWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockPanedWidget_SetFocusable_Call { | |||
| 2647 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 2648 | + | var arg0 bool | |||
| 2649 | + | if args[0] != nil { | |||
| 2650 | + | arg0 = args[0].(bool) | |||
| 2651 | + | } | |||
| 2652 | + | run( | |||
| 2653 | + | arg0, | |||
| 2654 | + | ) | |||
| 2655 | + | }) | |||
| 2656 | + | return _c | |||
| 2657 | + | } | |||
| 2658 | + | ||||
| 2659 | + | func (_c *MockPanedWidget_SetFocusable_Call) Return() *MockPanedWidget_SetFocusable_Call { | |||
| 2660 | + | _c.Call.Return() | |||
| 2661 | + | return _c | |||
| 2662 | + | } | |||
| 2663 | + | ||||
| 2664 | + | func (_c *MockPanedWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockPanedWidget_SetFocusable_Call { | |||
| 2665 | + | _c.Run(run) | |||
| 2666 | + | return _c | |||
| 2667 | + | } | |||
| 2668 | + | ||||
| 2589 | // SetHalign provides a mock function for the type MockPanedWidget | 2669 | // SetHalign provides a mock function for the type MockPanedWidget | ||
| 2590 | func (_mock *MockPanedWidget) SetHalign(align gtk.Align) { | 2670 | func (_mock *MockPanedWidget) SetHalign(align gtk.Align) { | ||
| 2591 | _mock.Called(align) | 2671 | _mock.Called(align) | ||
| @@ -4339,6 +4419,46 @@ func (_c *MockBoxWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnClick | |||||
| 4339 | return _c | 4419 | return _c | ||
| 4340 | } | 4420 | } | ||
| 4341 | 4421 | ||||
| 4422 | + | // SetFocusable provides a mock function for the type MockBoxWidget | |||
| 4423 | + | func (_mock *MockBoxWidget) SetFocusable(focusable bool) { | |||
| 4424 | + | _mock.Called(focusable) | |||
| 4425 | + | return | |||
| 4426 | + | } | |||
| 4427 | + | ||||
| 4428 | + | // MockBoxWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 4429 | + | type MockBoxWidget_SetFocusable_Call struct { | |||
| 4430 | + | *mock.Call | |||
| 4431 | + | } | |||
| 4432 | + | ||||
| 4433 | + | // SetFocusable is a helper method to define mock.On call | |||
| 4434 | + | // - focusable bool | |||
| 4435 | + | func (_e *MockBoxWidget_Expecter) SetFocusable(focusable interface{}) *MockBoxWidget_SetFocusable_Call { | |||
| 4436 | + | return &MockBoxWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 4437 | + | } | |||
| 4438 | + | ||||
| 4439 | + | func (_c *MockBoxWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockBoxWidget_SetFocusable_Call { | |||
| 4440 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 4441 | + | var arg0 bool | |||
| 4442 | + | if args[0] != nil { | |||
| 4443 | + | arg0 = args[0].(bool) | |||
| 4444 | + | } | |||
| 4445 | + | run( | |||
| 4446 | + | arg0, | |||
| 4447 | + | ) | |||
| 4448 | + | }) | |||
| 4449 | + | return _c | |||
| 4450 | + | } | |||
| 4451 | + | ||||
| 4452 | + | func (_c *MockBoxWidget_SetFocusable_Call) Return() *MockBoxWidget_SetFocusable_Call { | |||
| 4453 | + | _c.Call.Return() | |||
| 4454 | + | return _c | |||
| 4455 | + | } | |||
| 4456 | + | ||||
| 4457 | + | func (_c *MockBoxWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockBoxWidget_SetFocusable_Call { | |||
| 4458 | + | _c.Run(run) | |||
| 4459 | + | return _c | |||
| 4460 | + | } | |||
| 4461 | + | ||||
| 4342 | // SetHalign provides a mock function for the type MockBoxWidget | 4462 | // SetHalign provides a mock function for the type MockBoxWidget | ||
| 4343 | func (_mock *MockBoxWidget) SetHalign(align gtk.Align) { | 4463 | func (_mock *MockBoxWidget) SetHalign(align gtk.Align) { | ||
| 4344 | _mock.Called(align) | 4464 | _mock.Called(align) | ||
| @@ -5902,6 +6022,46 @@ func (_c *MockOverlayWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnC | |||||
| 5902 | return _c | 6022 | return _c | ||
| 5903 | } | 6023 | } | ||
| 5904 | 6024 | ||||
| 6025 | + | // SetFocusable provides a mock function for the type MockOverlayWidget | |||
| 6026 | + | func (_mock *MockOverlayWidget) SetFocusable(focusable bool) { | |||
| 6027 | + | _mock.Called(focusable) | |||
| 6028 | + | return | |||
| 6029 | + | } | |||
| 6030 | + | ||||
| 6031 | + | // MockOverlayWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 6032 | + | type MockOverlayWidget_SetFocusable_Call struct { | |||
| 6033 | + | *mock.Call | |||
| 6034 | + | } | |||
| 6035 | + | ||||
| 6036 | + | // SetFocusable is a helper method to define mock.On call | |||
| 6037 | + | // - focusable bool | |||
| 6038 | + | func (_e *MockOverlayWidget_Expecter) SetFocusable(focusable interface{}) *MockOverlayWidget_SetFocusable_Call { | |||
| 6039 | + | return &MockOverlayWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 6040 | + | } | |||
| 6041 | + | ||||
| 6042 | + | func (_c *MockOverlayWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockOverlayWidget_SetFocusable_Call { | |||
| 6043 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 6044 | + | var arg0 bool | |||
| 6045 | + | if args[0] != nil { | |||
| 6046 | + | arg0 = args[0].(bool) | |||
| 6047 | + | } | |||
| 6048 | + | run( | |||
| 6049 | + | arg0, | |||
| 6050 | + | ) | |||
| 6051 | + | }) | |||
| 6052 | + | return _c | |||
| 6053 | + | } | |||
| 6054 | + | ||||
| 6055 | + | func (_c *MockOverlayWidget_SetFocusable_Call) Return() *MockOverlayWidget_SetFocusable_Call { | |||
| 6056 | + | _c.Call.Return() | |||
| 6057 | + | return _c | |||
| 6058 | + | } | |||
| 6059 | + | ||||
| 6060 | + | func (_c *MockOverlayWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockOverlayWidget_SetFocusable_Call { | |||
| 6061 | + | _c.Run(run) | |||
| 6062 | + | return _c | |||
| 6063 | + | } | |||
| 6064 | + | ||||
| 5905 | // SetHalign provides a mock function for the type MockOverlayWidget | 6065 | // SetHalign provides a mock function for the type MockOverlayWidget | ||
| 5906 | func (_mock *MockOverlayWidget) SetHalign(align gtk.Align) { | 6066 | func (_mock *MockOverlayWidget) SetHalign(align gtk.Align) { | ||
| 5907 | _mock.Called(align) | 6067 | _mock.Called(align) | ||
| @@ -7161,6 +7321,46 @@ func (_c *MockLabelWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCli | |||||
| 7161 | return _c | 7321 | return _c | ||
| 7162 | } | 7322 | } | ||
| 7163 | 7323 | ||||
| 7324 | + | // SetFocusable provides a mock function for the type MockLabelWidget | |||
| 7325 | + | func (_mock *MockLabelWidget) SetFocusable(focusable bool) { | |||
| 7326 | + | _mock.Called(focusable) | |||
| 7327 | + | return | |||
| 7328 | + | } | |||
| 7329 | + | ||||
| 7330 | + | // MockLabelWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 7331 | + | type MockLabelWidget_SetFocusable_Call struct { | |||
| 7332 | + | *mock.Call | |||
| 7333 | + | } | |||
| 7334 | + | ||||
| 7335 | + | // SetFocusable is a helper method to define mock.On call | |||
| 7336 | + | // - focusable bool | |||
| 7337 | + | func (_e *MockLabelWidget_Expecter) SetFocusable(focusable interface{}) *MockLabelWidget_SetFocusable_Call { | |||
| 7338 | + | return &MockLabelWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 7339 | + | } | |||
| 7340 | + | ||||
| 7341 | + | func (_c *MockLabelWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockLabelWidget_SetFocusable_Call { | |||
| 7342 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 7343 | + | var arg0 bool | |||
| 7344 | + | if args[0] != nil { | |||
| 7345 | + | arg0 = args[0].(bool) | |||
| 7346 | + | } | |||
| 7347 | + | run( | |||
| 7348 | + | arg0, | |||
| 7349 | + | ) | |||
| 7350 | + | }) | |||
| 7351 | + | return _c | |||
| 7352 | + | } | |||
| 7353 | + | ||||
| 7354 | + | func (_c *MockLabelWidget_SetFocusable_Call) Return() *MockLabelWidget_SetFocusable_Call { | |||
| 7355 | + | _c.Call.Return() | |||
| 7356 | + | return _c | |||
| 7357 | + | } | |||
| 7358 | + | ||||
| 7359 | + | func (_c *MockLabelWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockLabelWidget_SetFocusable_Call { | |||
| 7360 | + | _c.Run(run) | |||
| 7361 | + | return _c | |||
| 7362 | + | } | |||
| 7363 | + | ||||
| 7164 | // SetHalign provides a mock function for the type MockLabelWidget | 7364 | // SetHalign provides a mock function for the type MockLabelWidget | ||
| 7165 | func (_mock *MockLabelWidget) SetHalign(align gtk.Align) { | 7365 | func (_mock *MockLabelWidget) SetHalign(align gtk.Align) { | ||
| 7166 | _mock.Called(align) | 7366 | _mock.Called(align) | ||
| @@ -8631,6 +8831,46 @@ func (_c *MockButtonWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCl | |||||
| 8631 | return _c | 8831 | return _c | ||
| 8632 | } | 8832 | } | ||
| 8633 | 8833 | ||||
| 8834 | + | // SetFocusable provides a mock function for the type MockButtonWidget | |||
| 8835 | + | func (_mock *MockButtonWidget) SetFocusable(focusable bool) { | |||
| 8836 | + | _mock.Called(focusable) | |||
| 8837 | + | return | |||
| 8838 | + | } | |||
| 8839 | + | ||||
| 8840 | + | // MockButtonWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 8841 | + | type MockButtonWidget_SetFocusable_Call struct { | |||
| 8842 | + | *mock.Call | |||
| 8843 | + | } | |||
| 8844 | + | ||||
| 8845 | + | // SetFocusable is a helper method to define mock.On call | |||
| 8846 | + | // - focusable bool | |||
| 8847 | + | func (_e *MockButtonWidget_Expecter) SetFocusable(focusable interface{}) *MockButtonWidget_SetFocusable_Call { | |||
| 8848 | + | return &MockButtonWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 8849 | + | } | |||
| 8850 | + | ||||
| 8851 | + | func (_c *MockButtonWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockButtonWidget_SetFocusable_Call { | |||
| 8852 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 8853 | + | var arg0 bool | |||
| 8854 | + | if args[0] != nil { | |||
| 8855 | + | arg0 = args[0].(bool) | |||
| 8856 | + | } | |||
| 8857 | + | run( | |||
| 8858 | + | arg0, | |||
| 8859 | + | ) | |||
| 8860 | + | }) | |||
| 8861 | + | return _c | |||
| 8862 | + | } | |||
| 8863 | + | ||||
| 8864 | + | func (_c *MockButtonWidget_SetFocusable_Call) Return() *MockButtonWidget_SetFocusable_Call { | |||
| 8865 | + | _c.Call.Return() | |||
| 8866 | + | return _c | |||
| 8867 | + | } | |||
| 8868 | + | ||||
| 8869 | + | func (_c *MockButtonWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockButtonWidget_SetFocusable_Call { | |||
| 8870 | + | _c.Run(run) | |||
| 8871 | + | return _c | |||
| 8872 | + | } | |||
| 8873 | + | ||||
| 8634 | // SetHalign provides a mock function for the type MockButtonWidget | 8874 | // SetHalign provides a mock function for the type MockButtonWidget | ||
| 8635 | func (_mock *MockButtonWidget) SetHalign(align gtk.Align) { | 8875 | func (_mock *MockButtonWidget) SetHalign(align gtk.Align) { | ||
| 8636 | _mock.Called(align) | 8876 | _mock.Called(align) | ||
| @@ -9833,6 +10073,46 @@ func (_c *MockImageWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnCli | |||||
| 9833 | return _c | 10073 | return _c | ||
| 9834 | } | 10074 | } | ||
| 9835 | 10075 | ||||
| 10076 | + | // SetFocusable provides a mock function for the type MockImageWidget | |||
| 10077 | + | func (_mock *MockImageWidget) SetFocusable(focusable bool) { | |||
| 10078 | + | _mock.Called(focusable) | |||
| 10079 | + | return | |||
| 10080 | + | } | |||
| 10081 | + | ||||
| 10082 | + | // MockImageWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 10083 | + | type MockImageWidget_SetFocusable_Call struct { | |||
| 10084 | + | *mock.Call | |||
| 10085 | + | } | |||
| 10086 | + | ||||
| 10087 | + | // SetFocusable is a helper method to define mock.On call | |||
| 10088 | + | // - focusable bool | |||
| 10089 | + | func (_e *MockImageWidget_Expecter) SetFocusable(focusable interface{}) *MockImageWidget_SetFocusable_Call { | |||
| 10090 | + | return &MockImageWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 10091 | + | } | |||
| 10092 | + | ||||
| 10093 | + | func (_c *MockImageWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockImageWidget_SetFocusable_Call { | |||
| 10094 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 10095 | + | var arg0 bool | |||
| 10096 | + | if args[0] != nil { | |||
| 10097 | + | arg0 = args[0].(bool) | |||
| 10098 | + | } | |||
| 10099 | + | run( | |||
| 10100 | + | arg0, | |||
| 10101 | + | ) | |||
| 10102 | + | }) | |||
| 10103 | + | return _c | |||
| 10104 | + | } | |||
| 10105 | + | ||||
| 10106 | + | func (_c *MockImageWidget_SetFocusable_Call) Return() *MockImageWidget_SetFocusable_Call { | |||
| 10107 | + | _c.Call.Return() | |||
| 10108 | + | return _c | |||
| 10109 | + | } | |||
| 10110 | + | ||||
| 10111 | + | func (_c *MockImageWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockImageWidget_SetFocusable_Call { | |||
| 10112 | + | _c.Run(run) | |||
| 10113 | + | return _c | |||
| 10114 | + | } | |||
| 10115 | + | ||||
| 9836 | // SetFromFile provides a mock function for the type MockImageWidget | 10116 | // SetFromFile provides a mock function for the type MockImageWidget | ||
| 9837 | func (_mock *MockImageWidget) SetFromFile(filename string) { | 10117 | func (_mock *MockImageWidget) SetFromFile(filename string) { | ||
| 9838 | _mock.Called(filename) | 10118 | _mock.Called(filename) | ||
| @@ -11166,6 +11446,46 @@ func (_c *MockProgressBarWidget_SetFocusOnClick_Call) RunAndReturn(run func(focu | |||||
| 11166 | return _c | 11446 | return _c | ||
| 11167 | } | 11447 | } | ||
| 11168 | 11448 | ||||
| 11449 | + | // SetFocusable provides a mock function for the type MockProgressBarWidget | |||
| 11450 | + | func (_mock *MockProgressBarWidget) SetFocusable(focusable bool) { | |||
| 11451 | + | _mock.Called(focusable) | |||
| 11452 | + | return | |||
| 11453 | + | } | |||
| 11454 | + | ||||
| 11455 | + | // MockProgressBarWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 11456 | + | type MockProgressBarWidget_SetFocusable_Call struct { | |||
| 11457 | + | *mock.Call | |||
| 11458 | + | } | |||
| 11459 | + | ||||
| 11460 | + | // SetFocusable is a helper method to define mock.On call | |||
| 11461 | + | // - focusable bool | |||
| 11462 | + | func (_e *MockProgressBarWidget_Expecter) SetFocusable(focusable interface{}) *MockProgressBarWidget_SetFocusable_Call { | |||
| 11463 | + | return &MockProgressBarWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 11464 | + | } | |||
| 11465 | + | ||||
| 11466 | + | func (_c *MockProgressBarWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockProgressBarWidget_SetFocusable_Call { | |||
| 11467 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 11468 | + | var arg0 bool | |||
| 11469 | + | if args[0] != nil { | |||
| 11470 | + | arg0 = args[0].(bool) | |||
| 11471 | + | } | |||
| 11472 | + | run( | |||
| 11473 | + | arg0, | |||
| 11474 | + | ) | |||
| 11475 | + | }) | |||
| 11476 | + | return _c | |||
| 11477 | + | } | |||
| 11478 | + | ||||
| 11479 | + | func (_c *MockProgressBarWidget_SetFocusable_Call) Return() *MockProgressBarWidget_SetFocusable_Call { | |||
| 11480 | + | _c.Call.Return() | |||
| 11481 | + | return _c | |||
| 11482 | + | } | |||
| 11483 | + | ||||
| 11484 | + | func (_c *MockProgressBarWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockProgressBarWidget_SetFocusable_Call { | |||
| 11485 | + | _c.Run(run) | |||
| 11486 | + | return _c | |||
| 11487 | + | } | |||
| 11488 | + | ||||
| 11169 | // SetFraction provides a mock function for the type MockProgressBarWidget | 11489 | // SetFraction provides a mock function for the type MockProgressBarWidget | ||
| 11170 | func (_mock *MockProgressBarWidget) SetFraction(fraction float64) { | 11490 | func (_mock *MockProgressBarWidget) SetFraction(fraction float64) { | ||
| 11171 | _mock.Called(fraction) | 11491 | _mock.Called(fraction) | ||
| @@ -12379,6 +12699,46 @@ func (_c *MockSpinnerWidget_SetFocusOnClick_Call) RunAndReturn(run func(focusOnC | |||||
| 12379 | return _c | 12699 | return _c | ||
| 12380 | } | 12700 | } | ||
| 12381 | 12701 | ||||
| 12702 | + | // SetFocusable provides a mock function for the type MockSpinnerWidget | |||
| 12703 | + | func (_mock *MockSpinnerWidget) SetFocusable(focusable bool) { | |||
| 12704 | + | _mock.Called(focusable) | |||
| 12705 | + | return | |||
| 12706 | + | } | |||
| 12707 | + | ||||
| 12708 | + | // MockSpinnerWidget_SetFocusable_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetFocusable' | |||
| 12709 | + | type MockSpinnerWidget_SetFocusable_Call struct { | |||
| 12710 | + | *mock.Call | |||
| 12711 | + | } | |||
| 12712 | + | ||||
| 12713 | + | // SetFocusable is a helper method to define mock.On call | |||
| 12714 | + | // - focusable bool | |||
| 12715 | + | func (_e *MockSpinnerWidget_Expecter) SetFocusable(focusable interface{}) *MockSpinnerWidget_SetFocusable_Call { | |||
| 12716 | + | return &MockSpinnerWidget_SetFocusable_Call{Call: _e.mock.On("SetFocusable", focusable)} | |||
| 12717 | + | } | |||
| 12718 | + | ||||
| 12719 | + | func (_c *MockSpinnerWidget_SetFocusable_Call) Run(run func(focusable bool)) *MockSpinnerWidget_SetFocusable_Call { | |||
| 12720 | + | _c.Call.Run(func(args mock.Arguments) { | |||
| 12721 | + | var arg0 bool | |||
| 12722 | + | if args[0] != nil { | |||
| 12723 | + | arg0 = args[0].(bool) | |||
| 12724 | + | } | |||
| 12725 | + | run( | |||
| 12726 | + | arg0, | |||
| 12727 | + | ) | |||
| 12728 | + | }) | |||
| 12729 | + | return _c | |||
| 12730 | + | } | |||
| 12731 | + | ||||
| 12732 | + | func (_c *MockSpinnerWidget_SetFocusable_Call) Return() *MockSpinnerWidget_SetFocusable_Call { | |||
| 12733 | + | _c.Call.Return() | |||
| 12734 | + | return _c | |||
| 12735 | + | } | |||
| 12736 | + | ||||
| 12737 | + | func (_c *MockSpinnerWidget_SetFocusable_Call) RunAndReturn(run func(focusable bool)) *MockSpinnerWidget_SetFocusable_Call { | |||
| 12738 | + | _c.Run(run) | |||
| 12739 | + | return _c | |||
| 12740 | + | } | |||
| 12741 | + | ||||
| 12382 | // SetHalign provides a mock function for the type MockSpinnerWidget | 12742 | // SetHalign provides a mock function for the type MockSpinnerWidget | ||
| 12383 | func (_mock *MockSpinnerWidget) SetHalign(align gtk.Align) { | 12743 | func (_mock *MockSpinnerWidget) SetHalign(align gtk.Align) { | ||
| 12384 | _mock.Called(align) | 12744 | _mock.Called(align) | ||
M internal/ui/layout/widgets.go +1 -0
| @@ -28,6 +28,7 @@ type Widget interface { | |||
| 28 | 28 | GrabFocus() bool | |
| 29 | 29 | HasFocus() bool | |
| 30 | 30 | SetCanFocus(canFocus bool) | |
| 31 | + | SetFocusable(focusable bool) // GTK4: makes widget able to receive keyboard focus | |
| 31 | 32 | SetFocusOnClick(focusOnClick bool) | |
| 32 | 33 | ||
| 33 | 34 | // Pointer events | |
| @@ -28,6 +28,7 @@ type Widget interface { | |||||
| 28 | GrabFocus() bool | 28 | GrabFocus() bool | ||
| 29 | HasFocus() bool | 29 | HasFocus() bool | ||
| 30 | SetCanFocus(canFocus bool) | 30 | SetCanFocus(canFocus bool) | ||
| 31 | + | SetFocusable(focusable bool) // GTK4: makes widget able to receive keyboard focus | |||
| 31 | SetFocusOnClick(focusOnClick bool) | 32 | SetFocusOnClick(focusOnClick bool) | ||
| 32 | 33 | ||||
| 33 | // Pointer events | 34 | // Pointer events | ||