| | 1 | = Subviews = |
| | 2 | |
| | 3 | == Subview == |
| | 4 | |
| | 5 | {{{subview (view) [class]}}} |
| | 6 | |
| | 7 | Class of views that appear inside other views. Additional initargs: |
| | 8 | |
| | 9 | '':view-container'' -- initializes the view container, see set-view-container |
| | 10 | |
| | 11 | '':view-position'' -- initializes the view position, see set-view-position |
| | 12 | |
| | 13 | {{{(set-view-container subview new-container-view) [method]}}} |
| | 14 | |
| | 15 | Remove view ''subview'' from its current container and add it to |
| | 16 | ''new-container-view''. The new container can also be ''nil'', to just remove a |
| | 17 | view from its container view. |
| | 18 | |
| | 19 | {{{(view-container subview) [method]}}} |
| | 20 | |
| | 21 | Returns the view containing ''subview'', or ''nil'' if none. |
| | 22 | |
| | 23 | {{{(view-window subview) [method]}}} |
| | 24 | |
| | 25 | Returns the window containing ''subview'', or ''nil'' if view is not |
| | 26 | contained in any window. |
| | 27 | |
| | 28 | {{{(set-view-position subview new-position) [method]}}} |
| | 29 | |
| | 30 | Sets the position of a subview in its container to new-position, which |
| | 31 | must be a point in the container's coordinate system. |
| | 32 | |
| | 33 | {{{(view-position subview) [method]}}} |
| | 34 | |
| | 35 | Returns the position of view in its container, as a point. |
| | 36 | |