-
Notifications
You must be signed in to change notification settings - Fork 1
/
nada.go
64 lines (49 loc) · 1.19 KB
/
nada.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Copyright (c) 2018, Mark "Happy-Ferret" Bauermeister
//
// This software may be modified and distributed under the terms
// of the BSD license. See the LICENSE file for details.
package frame
import (
"github.com/BurntSushi/xgbutil"
)
type Nada struct {
*frame
}
func NewNada(X *xgbutil.XUtil, p *Parent, c Client) (*Nada, error) {
f, err := newFrame(X, p, c)
if err != nil {
return nil, err
}
return &Nada{f}, nil
}
func (f *Nada) Current() bool {
return f.client.Frame() == f
}
func (f *Nada) Off() {}
func (f *Nada) On() {
Reset(f)
}
func (f *Nada) Active() {
f.State = Active
}
func (f *Nada) Inactive() {
f.State = Inactive
}
func (f *Nada) Maximize() {}
func (f *Nada) Unmaximize() {}
func (f *Nada) Top() int { return 0 }
func (f *Nada) Bottom() int { return 0 }
func (f *Nada) Left() int { return 0 }
func (f *Nada) Right() int { return 0 }
func (f *Nada) MROpt(validate bool, flags, x, y, w, h int) {
mropt(f, validate, flags, x, y, w, h)
}
func (f *Nada) MoveResize(validate bool, x, y, w, h int) {
moveresize(f, validate, x, y, w, h)
}
func (f *Nada) Move(x, y int) {
move(f, x, y)
}
func (f *Nada) Resize(validate bool, w, h int) {
resize(f, validate, w, h)
}