diff options
Diffstat (limited to 'declarative/linklabel.go')
-rw-r--r-- | declarative/linklabel.go | 71 |
1 files changed, 0 insertions, 71 deletions
diff --git a/declarative/linklabel.go b/declarative/linklabel.go deleted file mode 100644 index 7ba20991..00000000 --- a/declarative/linklabel.go +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright 2017 The Walk Authors. All rights reserved. -// Use of this source code is governed by a BSD-style -// license that can be found in the LICENSE file. - -// +build windows - -package declarative - -import ( - "github.com/lxn/walk" -) - -type LinkLabel struct { - // Window - - Background Brush - ContextMenuItems []MenuItem - Enabled Property - Font Font - MaxSize Size - MinSize Size - Name string - OnBoundsChanged walk.EventHandler - OnKeyDown walk.KeyEventHandler - OnKeyPress walk.KeyEventHandler - OnKeyUp walk.KeyEventHandler - OnMouseDown walk.MouseEventHandler - OnMouseMove walk.MouseEventHandler - OnMouseUp walk.MouseEventHandler - OnSizeChanged walk.EventHandler - Persistent bool - RightToLeftReading bool - ToolTipText Property - Visible Property - - // Widget - - Alignment Alignment2D - AlwaysConsumeSpace bool - Column int - ColumnSpan int - GraphicsEffects []walk.WidgetGraphicsEffect - Row int - RowSpan int - StretchFactor int - - // LinkLabel - - AssignTo **walk.LinkLabel - OnLinkActivated walk.LinkLabelLinkEventHandler - Text Property -} - -func (ll LinkLabel) Create(builder *Builder) error { - w, err := walk.NewLinkLabel(builder.Parent()) - if err != nil { - return err - } - - if ll.AssignTo != nil { - *ll.AssignTo = w - } - - return builder.InitWidget(ll, w, func() error { - if ll.OnLinkActivated != nil { - w.LinkActivated().Attach(ll.OnLinkActivated) - } - - return nil - }) -} |