| 21 | using forge::common::getChart; |
| 22 | |
| 23 | fg_err fg_create_window(fg_window *pWindow, |
| 24 | const int pWidth, const int pHeight, |
| 25 | const char* pTitle, |
| 26 | const fg_window pShareWindow, |
| 27 | const bool pInvisible) |
| 28 | { |
| 29 | try { |
| 30 | ARG_ASSERT(1, (pWidth>0)); |
| 31 | ARG_ASSERT(2, (pHeight>0)); |
| 32 | |
| 33 | common::Window* shrdWnd = getWindow(pShareWindow); |
| 34 | common::Window* temp = nullptr; |
| 35 | if (shrdWnd == nullptr) { |
| 36 | temp = new common::Window(pWidth, pHeight, pTitle, nullptr, pInvisible); |
| 37 | } else { |
| 38 | temp = new common::Window(pWidth, pHeight, pTitle, shrdWnd, pInvisible); |
| 39 | } |
| 40 | *pWindow = getHandle(temp); |
| 41 | } |
| 42 | CATCHALL |
| 43 | |
| 44 | return FG_ERR_NONE; |
| 45 | } |
| 46 | |
| 47 | fg_err fg_retain_window(fg_window *pOut, fg_window pWindow) |
| 48 | { |