Changeset 37423 in vbox for trunk/src/VBox/Additions/x11/VBoxClient
- Timestamp:
- Jun 12, 2011 6:37:56 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 72222
- Location:
- trunk/src/VBox/Additions/x11/VBoxClient
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/x11/VBoxClient/seamless-x11.cpp
r37173 r37423 453 453 { 454 454 RTRECT *pRect; 455 455 456 456 pRect = RectListPushBack(pRects); 457 457 if (!pRect) -
trunk/src/VBox/Additions/x11/VBoxClient/vector.h
r36805 r37423 33 33 * RTVEC_DECL(TopLevels, Window *) 34 34 * without a semi-colon. This macro will define a structure (struct TopLevels) 35 * which contains a dynamically resizeable array of Window * elements. It 35 * which contains a dynamically resizeable array of Window * elements. It 36 36 * will also define a number of inline methods for manipulating the structure, 37 37 * such as … … 39 39 * which adds a new element to the end of the array and returns it, optionally 40 40 * reallocating the array if there is not enough space for the new element. 41 * (This particular method prototype differs from the STL equivalent - 41 * (This particular method prototype differs from the STL equivalent - 42 42 * push_back - more than most of the other methods). 43 * 43 * 44 44 * To create a vector, one simply needs to declare the structure, in this case 45 45 * struct TopLevels = RTVEC_INITIALIZER; … … 59 59 * compiler makes its own decisions about whether to actually 60 60 * inline a function. 61 * @note since vector structures must be explicitly instanciated unlike the 61 * @note since vector structures must be explicitly instanciated unlike the 62 62 * C++ vector template, care must be taken not to instanciate a 63 63 * particular type twice, e.g. once in a header and once in a code file. … … 138 138 } 139 139 140 /** 140 /** 141 141 * Generic method - return a pointer to one past the last element in the 142 142 * vector. … … 196 196 } 197 197 198 /** 198 /** 199 199 * Generic method - reset a vector to empty. 200 200 * @note This function does not free any memory … … 226 226 } 227 227 228 /** 228 /** 229 229 * Generic method - detach the array contained inside a vector and reset the 230 230 * vector to empty.
Note:
See TracChangeset
for help on using the changeset viewer.