\class Window \brief Window is where other objects such as Images, Plots etc. are rendered. */
| 298 | \brief Window is where other objects such as Images, Plots etc. are rendered. |
| 299 | */ |
| 300 | class Window { |
| 301 | private: |
| 302 | fg_window mValue; |
| 303 | |
| 304 | Window() {} |
| 305 | |
| 306 | public: |
| 307 | /** |
| 308 | Creates a Window object. |
| 309 | |
| 310 | \param[in] pWidth Width of the display window |
| 311 | \param[in] pHeight Height of the display window |
| 312 | \param[in] pTitle window Title |
| 313 | \param[in] pWindow An already existing window with which the window to |
| 314 | be created should share the rendering context. |
| 315 | \param[in] invisible window is created in invisible mode. |
| 316 | User has to call Window::show() when they decide |
| 317 | to actually display the window |
| 318 | */ |
| 319 | FGAPI Window(const int pWidth, const int pHeight, const char* pTitle, |
| 320 | const Window* pWindow=0, const bool invisible = false); |
| 321 | |
| 322 | /** |
| 323 | Copy constructor for Window |
| 324 | |
| 325 | \param[in] other is the Window of which we make a copy of. |
| 326 | */ |
| 327 | FGAPI Window(const Window& other); |
| 328 | |
| 329 | /** |
| 330 | Window Destructor |
| 331 | |
| 332 | Decrements the reference count to the shared window object. |
| 333 | */ |
| 334 | FGAPI ~Window(); |
| 335 | |
| 336 | /** |
| 337 | Set font to be used by the window to draw text |
| 338 | |
| 339 | \param[in] pFont Font object pointer |
| 340 | */ |
| 341 | FGAPI void setFont(Font* pFont); |
| 342 | |
| 343 | /** |
| 344 | Set the window title |
| 345 | |
| 346 | \param[in] pTitle is the window title |
| 347 | */ |
| 348 | FGAPI void setTitle(const char* pTitle); |
| 349 | |
| 350 | /** |
| 351 | Set the start position where the window will appear |
| 352 | |
| 353 | \param[in] pX is horizontal coordinate |
| 354 | \param[in] pY is vertical coordinate |
| 355 | */ |
| 356 | FGAPI void setPos(const int pX, const int pY); |
| 357 |
nothing calls this directly
no outgoing calls
no test coverage detected