Skip to content

Commit

Permalink
Export needsWmSize for external widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
lxn committed Jul 31, 2019
1 parent b3e7885 commit baeae78
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion combobox.go
Original file line number Diff line number Diff line change
Expand Up @@ -682,7 +682,7 @@ func (cb *ComboBox) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) u
return cb.WidgetBase.WndProc(hwnd, msg, wParam, lParam)
}

func (*ComboBox) needsWmSize() bool {
func (*ComboBox) NeedsWmSize() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion dateedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ func (de *DateEdit) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) u
return de.WidgetBase.WndProc(hwnd, msg, wParam, lParam)
}

func (*DateEdit) needsWmSize() bool {
func (*DateEdit) NeedsWmSize() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion lineedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ func (le *LineEdit) SetTextColor(c Color) {
le.Invalidate()
}

func (*LineEdit) needsWmSize() bool {
func (*LineEdit) NeedsWmSize() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion numberedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ func (ne *NumberEdit) SetTextColor(c Color) {
ne.edit.SetTextColor(c)
}

func (*NumberEdit) needsWmSize() bool {
func (*NumberEdit) NeedsWmSize() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion slider.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (sl *Slider) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) uin
return sl.WidgetBase.WndProc(hwnd, msg, wParam, lParam)
}

func (*Slider) needsWmSize() bool {
func (*Slider) NeedsWmSize() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion textedit.go
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ func (te *TextEdit) SetTextColor(c Color) {
te.Invalidate()
}

func (*TextEdit) needsWmSize() bool {
func (*TextEdit) NeedsWmSize() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion treeview.go
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ func (tv *TreeView) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr) u
return tv.WidgetBase.WndProc(hwnd, msg, wParam, lParam)
}

func (*TreeView) needsWmSize() bool {
func (*TreeView) NeedsWmSize() bool {
return true
}

Expand Down
2 changes: 1 addition & 1 deletion window.go
Original file line number Diff line number Diff line change
Expand Up @@ -2269,7 +2269,7 @@ func (wb *WindowBase) WndProc(hwnd win.HWND, msg uint32, wParam, lParam uintptr)

wb.boundsChangedPublisher.Publish()

if nws, ok := wb.window.(interface{ needsWmSize() bool }); !ok || !nws.needsWmSize() {
if nws, ok := wb.window.(interface{ NeedsWmSize() bool }); !ok || !nws.NeedsWmSize() {
return 0
}

Expand Down

0 comments on commit baeae78

Please sign in to comment.