MCPcopy Create free account
hub / github.com/arrayfire/forge / fg_create_window

Function fg_create_window

src/api/c/window.cpp:23–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21using forge::common::getChart;
22
23fg_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
47fg_err fg_retain_window(fg_window *pOut, fg_window pWindow)
48{

Callers 1

WindowMethod · 0.85

Calls 2

getWindowFunction · 0.85
getHandleFunction · 0.85

Tested by

no test coverage detected