MCPcopy Create free account
hub / github.com/aseprite/laf / create_window

Function create_window

examples/custom_window.cpp:173–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173WindowRef create_window()
174{
175 WindowSpec spec;
176 spec.contentRect(gfx::Rect(32, 32, 400, 300));
177 spec.titled(false);
178 spec.borderless(true);
179
180 WindowRef window = System::instance()->makeWindow(spec);
181 window->setTitle("Custom Window");
182 window->handleHitTest = hit_test;
183
184 return window;
185}
186
187void handle_mouse_move(Window* window, const Hit hit)
188{

Callers 1

app_mainFunction · 0.70

Calls 6

instanceFunction · 0.85
titledMethod · 0.80
borderlessMethod · 0.80
contentRectMethod · 0.45
makeWindowMethod · 0.45
setTitleMethod · 0.45

Tested by

no test coverage detected