mirror of
https://github.com/taigrr/wtf
synced 2025-01-18 04:03:14 -08:00
wtf.Position into its own file
This commit is contained in:
committed by
Chris Cummer
parent
b216005385
commit
01aab4cc53
26
wtf/position.go
Normal file
26
wtf/position.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package wtf
|
||||
|
||||
import ()
|
||||
|
||||
type Position struct {
|
||||
top int
|
||||
left int
|
||||
width int
|
||||
height int
|
||||
}
|
||||
|
||||
func (pos *Position) Top() int {
|
||||
return pos.top
|
||||
}
|
||||
|
||||
func (pos *Position) Left() int {
|
||||
return pos.left
|
||||
}
|
||||
|
||||
func (pos *Position) Width() int {
|
||||
return pos.width
|
||||
}
|
||||
|
||||
func (pos *Position) Height() int {
|
||||
return pos.height
|
||||
}
|
||||
@@ -10,31 +10,6 @@ import (
|
||||
|
||||
var Config *config.Config
|
||||
|
||||
type Position struct {
|
||||
top int
|
||||
left int
|
||||
width int
|
||||
height int
|
||||
}
|
||||
|
||||
func (pos *Position) Top() int {
|
||||
return pos.top
|
||||
}
|
||||
|
||||
func (pos *Position) Left() int {
|
||||
return pos.left
|
||||
}
|
||||
|
||||
func (pos *Position) Width() int {
|
||||
return pos.width
|
||||
}
|
||||
|
||||
func (pos *Position) Height() int {
|
||||
return pos.height
|
||||
}
|
||||
|
||||
/* -------------------- TextWidget -------------------- */
|
||||
|
||||
type TextWidget struct {
|
||||
enabled bool
|
||||
|
||||
|
||||
Reference in New Issue
Block a user