-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
empty_border.go
31 lines (25 loc) · 955 Bytes
/
empty_border.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// Copyright (c) 2021-2024 by Richard A. Wilkes. All rights reserved.
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, version 2.0. If a copy of the MPL was not distributed with
// this file, You can obtain one at http://mozilla.org/MPL/2.0/.
//
// This Source Code Form is "Incompatible With Secondary Licenses", as
// defined by the Mozilla Public License, version 2.0.
package unison
var _ Border = &EmptyBorder{}
// EmptyBorder provides and empty border with the specified insets.
type EmptyBorder struct {
insets Insets
}
// NewEmptyBorder creates a new empty border with the specified insets.
func NewEmptyBorder(insets Insets) *EmptyBorder {
return &EmptyBorder{insets: insets}
}
// Insets returns the insets describing the space the border occupies on each side.
func (b *EmptyBorder) Insets() Insets {
return b.insets
}
// Draw the border into rect.
func (b *EmptyBorder) Draw(_ *Canvas, _ Rect) {
}