Window is an interface that provides operations common to all windows.
| 27 | |
| 28 | // Window is an interface that provides operations common to all windows. |
| 29 | type Window interface { |
| 30 | // AddDisposable adds a Disposable resource that should be disposed of |
| 31 | // together with this Window. |
| 32 | AddDisposable(d Disposable) |
| 33 | |
| 34 | // AsWindowBase returns a *WindowBase, a pointer to an instance of the |
| 35 | // struct that implements most operations common to all windows. |
| 36 | AsWindowBase() *WindowBase |
| 37 | |
| 38 | // Accessibility returns the accessibility object used to set Dynamic Annotation properties of the |
| 39 | // window. |
| 40 | Accessibility() *Accessibility |
| 41 | |
| 42 | // Background returns the background Brush of the Window. |
| 43 | // |
| 44 | // By default this is nil. |
| 45 | Background() Brush |
| 46 | |
| 47 | // Bounds returns the outer bounding box rectangle of the Window, including |
| 48 | // decorations. |
| 49 | // |
| 50 | // For a Form, like *MainWindow or *Dialog, the rectangle is in screen |
| 51 | // coordinates, for a child Window the coordinates are relative to its |
| 52 | // parent. |
| 53 | Bounds() Rectangle |
| 54 | |
| 55 | // BoundsPixels returns the outer bounding box rectangle of the Window, including |
| 56 | // decorations. |
| 57 | // |
| 58 | // For a Form, like *MainWindow or *Dialog, the rectangle is in screen |
| 59 | // coordinates, for a child Window the coordinates are relative to its |
| 60 | // parent. |
| 61 | BoundsPixels() Rectangle |
| 62 | |
| 63 | // BoundsChanged returns an *Event that you can attach to for handling bounds |
| 64 | // changed events for the Window. |
| 65 | BoundsChanged() *Event |
| 66 | |
| 67 | // BringToTop moves the Window to the top of the keyboard focus order. |
| 68 | BringToTop() error |
| 69 | |
| 70 | // ClientBounds returns the inner bounding box rectangle of the Window, |
| 71 | // excluding decorations. |
| 72 | ClientBounds() Rectangle |
| 73 | |
| 74 | // ClientBoundsPixels returns the inner bounding box rectangle of the Window, |
| 75 | // excluding decorations. |
| 76 | ClientBoundsPixels() Rectangle |
| 77 | |
| 78 | // ContextMenu returns the context menu of the Window. |
| 79 | // |
| 80 | // By default this is nil. |
| 81 | ContextMenu() *Menu |
| 82 | |
| 83 | // ContextMenuLocation returns the context menu suggested location in screen coordinates in |
| 84 | // native pixels. This method is called when context menu is invoked using keyboard and mouse |
| 85 | // coordinates are not available. |
| 86 | ContextMenuLocation() Point |
no outgoing calls
no test coverage detected
searching dependent graphs…