MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / createGC

Method createGC

source/x11/xserver.cpp:471–476  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471XGCPtr XServer::createGC(XDrawablePtr drawable) {
472 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(gcsMutex);
473 XGCPtr result = std::make_shared<XGC>(drawable);
474 gcs.set(result->id, result);
475 return result;
476}
477
478XGCPtr XServer::getGC(U32 gc) {
479 BOXEDWINE_CRITICAL_SECTION_WITH_MUTEX(gcsMutex);

Callers 1

x11_CreateGCFunction · 0.80

Calls 1

setMethod · 0.45

Tested by

no test coverage detected