From 2688fdf385efafdb165ae02bcd6aa98ab05fc366 Mon Sep 17 00:00:00 2001 From: prospero78su Date: Tue, 7 May 2019 10:23:12 +0300 Subject: [PATCH] =?UTF-8?q?278=20=D0=92=D0=BD=D0=B5=D1=81=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=BF=D1=80=D0=B0=D0=B2=D0=BE=D0=BA=20=D0=BF?= =?UTF-8?q?=D1=80=D0=B8=20=D1=80=D0=B5=D1=84=D0=B0=D0=BA=D1=82=D0=BE=D1=80?= =?UTF-8?q?=D0=B8=D0=BD=D0=B3=D0=B5,=20=D0=B8=D1=81=D0=BF=D1=80=D0=B0?= =?UTF-8?q?=D0=B2=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=80=D1=83=D0=B3=D0=B0?= =?UTF-8?q?=D0=BD=D0=B8=20=D0=BB=D0=B8=D0=BD=D1=82=D0=B5=D1=80=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consts.go => пакКонстанты/модКонстанты.go | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) rename consts.go => пакКонстанты/модКонстанты.go (96%) diff --git a/consts.go b/пакКонстанты/модКонстанты.go similarity index 96% rename from consts.go rename to пакКонстанты/модКонстанты.go index 972aef5..e797686 100644 --- a/consts.go +++ b/пакКонстанты/модКонстанты.go @@ -1,7 +1,8 @@ -package clui +package пакКонстанты import ( term "github.com/nsf/termbox-go" + мВид "../пакВиджеты" ) const ( @@ -11,7 +12,7 @@ const ( // should either calculate the size of an object, e.g. for Label it is its text // length, or use default intial values AutoSize int = -1 - // KeepSize is used as a placeholder when you want to change only one + //KeepValue -- is used as a placeholder when you want to change only one // value and keep other ones untouched. Used in SetSize and SetConstraints // methods only // Example: control.SetConstraint(10, KeepValue) changes only minimal width @@ -46,18 +47,28 @@ type ( TableAction int // SortOrder is a way of sorting rows in TableView SortOrder int + //DragType -- DragType int ) const ( + //DragNone -- DragNone DragType = iota + //DragMove -- DragMove + //DragResizeLeft -- DragResizeLeft + //DragResizeRight -- DragResizeRight + //DragResizeBottom -- DragResizeBottom + //DragResizeBottomLeft -- DragResizeBottomLeft + //DragResizeBottomRight -- DragResizeBottomRight + //DragResizeTopLeft -- DragResizeTopLeft + //DragResizeTopRight -- DragResizeTopRight ) @@ -85,7 +96,7 @@ type Event struct { // For resize event - new terminal size Width int Height int - Target Control + Target мВид.ИВиджет } // BorderStyle constants