summaryrefslogtreecommitdiffstatshomepage
path: root/declarative/tabpage.go
diff options
context:
space:
mode:
Diffstat (limited to 'declarative/tabpage.go')
-rw-r--r--declarative/tabpage.go79
1 files changed, 0 insertions, 79 deletions
diff --git a/declarative/tabpage.go b/declarative/tabpage.go
deleted file mode 100644
index f00008ef..00000000
--- a/declarative/tabpage.go
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright 2012 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 TabPage 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
-
- AlwaysConsumeSpace bool
- Column int
- ColumnSpan int
- GraphicsEffects []walk.WidgetGraphicsEffect
- Row int
- RowSpan int
- StretchFactor int
-
- // Container
-
- Children []Widget
- DataBinder DataBinder
- Layout Layout
-
- // TabPage
-
- AssignTo **walk.TabPage
- Content Widget
- Image Property
- Title Property
-}
-
-func (tp TabPage) Create(builder *Builder) error {
- w, err := walk.NewTabPage()
- if err != nil {
- return err
- }
-
- if tp.AssignTo != nil {
- *tp.AssignTo = w
- }
-
- return builder.InitWidget(tp, w, func() error {
- if tp.Content != nil && len(tp.Children) == 0 {
- if err := tp.Content.Create(builder); err != nil {
- return err
- }
- }
-
- return nil
- })
-}