BoundsPixels returns the outer bounding box rectangle of the WidgetBase, including decorations. The coordinates are relative to the parent of the Widget.
()
| 187 | // |
| 188 | // The coordinates are relative to the parent of the Widget. |
| 189 | func (wb *WidgetBase) BoundsPixels() Rectangle { |
| 190 | b := wb.WindowBase.BoundsPixels() |
| 191 | |
| 192 | if wb.parent != nil { |
| 193 | p := b.Location().toPOINT() |
| 194 | if !win.ScreenToClient(wb.parent.Handle(), &p) { |
| 195 | newError("ScreenToClient failed") |
| 196 | return Rectangle{} |
| 197 | } |
| 198 | b.X = int(p.X) |
| 199 | b.Y = int(p.Y) |
| 200 | } |
| 201 | |
| 202 | return b |
| 203 | } |
| 204 | |
| 205 | // BringToTop moves the WidgetBase to the top of the keyboard focus order. |
| 206 | func (wb *WidgetBase) BringToTop() error { |
no test coverage detected