MCPcopy Create free account
hub / github.com/SSARCandy/Coherent-Line-Drawing / addlog

Method addlog

src/gui.cpp:392–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390}
391
392void MyFrame::addlog(wxString info, const wxColour &color)
393{
394 time_t currentTime; // for logging current time
395 struct tm *localTime; // for logging current time
396 time(&currentTime); // Get the current time
397 localTime = localtime(&currentTime); // Convert the current time to the local time
398 wxString s;
399 s.Printf("\n%02d : %02d : %02d | %s", localTime->tm_hour, localTime->tm_min, localTime->tm_sec, info);
400 log->SetDefaultStyle(wxTextAttr(color));
401 log->AppendText(s);
402}
403
404void MyFrame::SetRenderingState(bool on)
405{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected