diff options
Diffstat (limited to 'structs.go')
| -rw-r--r-- | structs.go | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -135,8 +135,6 @@ func (r *rectType) Height() int { type window struct { windowFrame *guiWidget // this is the frame for a window widget wasDragged bool // indicates the window was dragged. This keeps it from being rearranged - dragW int // when dragging a window, this is the offset to the mouse position - dragH int // when dragging a window, this is the offset to the mouse position hasTabs bool // does the window have tabs? currentTab bool // the visible tab selectedTab *tree.Node // for a window, this is currently selected tab @@ -165,8 +163,6 @@ type guiWidget struct { node *tree.Node // the pointer back to the tree windowFrame *guiWidget // this is the frame for a window widget internal bool // indicates the widget is internal to gocui and should be treated differently - dragW int // when dragging a window, this is the offset to the mouse position - dragH int // when dragging a window, this is the offset to the mouse position hasTabs bool // does the window have tabs? currentTab bool // the visible tab window window // holds information specific only to Window widgets @@ -180,6 +176,8 @@ type guiWidget struct { force rectType // force widget within these boundries (using this to debug window dragging) startW int // ? startH int // ? + lastW int // used during mouse dragging + lastH int // used during mouse dragging isFake bool // widget types like 'box' are 'false' widths map[int]int // how tall each row in the grid is heights map[int]int // how wide each column in the grid is @@ -189,7 +187,6 @@ type guiWidget struct { color *colorT // what color to use defaultColor *colorT // the default colors // TODO: make a function for this instead isBG bool // means this is the background widget. There is only one of these - // resize bool // the window is currently being resized } // THIS IS GO COMPILER MAGIC |
