MCPcopy Create free account
hub / github.com/ProgerXP/Notepad2e / PaintCT

Method PaintCT

scintilla/src/CallTip.cxx:216–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

214}
215
216void CallTip::PaintCT(Surface *surfaceWindow) {
217 if (val.empty())
218 return;
219 PRectangle rcClientPos = wCallTip.GetClientPosition();
220 PRectangle rcClientSize(0, 0, rcClientPos.right - rcClientPos.left,
221 rcClientPos.bottom - rcClientPos.top);
222 PRectangle rcClient(1, 1, rcClientSize.right - 1, rcClientSize.bottom - 1);
223
224 surfaceWindow->FillRectangle(rcClient, colourBG);
225
226 offsetMain = insetX; // initial alignment assuming no arrows
227 PaintContents(surfaceWindow, true);
228
229#ifndef __APPLE__
230 // OSX doesn't put borders on "help tags"
231 // Draw a raised border around the edges of the window
232 surfaceWindow->MoveTo(0, rcClientSize.bottom - 1);
233 surfaceWindow->PenColour(colourShade);
234 surfaceWindow->LineTo(rcClientSize.right - 1, rcClientSize.bottom - 1);
235 surfaceWindow->LineTo(rcClientSize.right - 1, 0);
236 surfaceWindow->PenColour(colourLight);
237 surfaceWindow->LineTo(0, 0);
238 surfaceWindow->LineTo(0, rcClientSize.bottom - 1);
239#endif
240}
241
242void CallTip::MouseClick(Point pt) {
243 clickPlace = 0;

Callers 1

CTWndProcMethod · 0.80

Calls 5

GetClientPositionMethod · 0.80
FillRectangleMethod · 0.80
PenColourMethod · 0.80
MoveToMethod · 0.45
LineToMethod · 0.45

Tested by

no test coverage detected