MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / Width

Method Width

Service/ScreenXLib.cpp:85–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85int CScreenXLib::Width()
86{
87 int w = 0;
88 Display* dsp = NULL;
89 dsp = XOpenDisplay(NULL);/* Connect to a local display */
90 if(NULL == dsp)
91 {
92 qCritical(LogScreen) << "Cannot connect to local display";
93 return 0;
94 }
95 w = DisplayWidth(dsp, DefaultScreen(dsp));
96 XCloseDisplay(dsp);
97 return w;
98}
99
100int CScreenXLib::Height()
101{

Callers 5

OnInitMethod · 0.45
slotConnectedMethod · 0.45
authSuccessMethod · 0.45
slotConnectedMethod · 0.45
authSuccessMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected