Cleaned up some code.
This commit is contained in:
parent
b37759be84
commit
2b95335e6e
|
@ -98,18 +98,6 @@ func (w *window) beginResize() (d *sizing) {
|
||||||
d.xpadding = fromdlgunitsX(paddingDialogUnits, d)
|
d.xpadding = fromdlgunitsX(paddingDialogUnits, d)
|
||||||
d.ypadding = fromdlgunitsY(paddingDialogUnits, d)
|
d.ypadding = fromdlgunitsY(paddingDialogUnits, d)
|
||||||
|
|
||||||
/*TODO
|
|
||||||
if c.isGroup {
|
|
||||||
// note that these values apply regardless of whether or not spaced is set
|
|
||||||
// this is because Windows groupboxes have the client rect spanning the entire size of the control, not just the active work area
|
|
||||||
// the measurements Microsoft give us are for spaced margining; let's just use them
|
|
||||||
d.xmargin = fromdlgunitsX(groupXMargin, d)
|
|
||||||
d.ymargintop = fromdlgunitsY(groupYMarginTop, d)
|
|
||||||
d.ymarginbottom = fromdlgunitsY(groupYMarginBottom, d)
|
|
||||||
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
return d
|
return d
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,10 +5,9 @@ package ui
|
||||||
// Control represents a control.
|
// Control represents a control.
|
||||||
type Control interface {
|
type Control interface {
|
||||||
setParent(p *controlParent) // controlParent defined per-platform
|
setParent(p *controlParent) // controlParent defined per-platform
|
||||||
// nChildren() int // TODO
|
|
||||||
preferredSize(d *sizing) (width, height int)
|
preferredSize(d *sizing) (width, height int)
|
||||||
resize(x int, y int, width int, height int, d *sizing)
|
resize(x int, y int, width int, height int, d *sizing)
|
||||||
nTabStops() int
|
nTabStops() int // used by the Windows backend
|
||||||
}
|
}
|
||||||
|
|
||||||
type controlbase struct {
|
type controlbase struct {
|
||||||
|
|
Loading…
Reference in New Issue