SPH
|
Random utility functions for drawing stuff to DC. More...
#include "common/Globals.h"
#include "gui/renderers/IRenderer.h"
#include "objects/Object.h"
#include "objects/wrappers/Flags.h"
#include "run/VirtualSettings.h"
#include <wx/window.h>
Go to the source code of this file.
Classes | |
class | BusyCursor |
Typedefs | |
using | FileFormat = IVirtualEntry::FileFormat |
Functions | |
Optional< Path > | doSaveFileDialog (const std::string &title, Array< FileFormat > &&formats) |
Optional< Path > | doOpenFileDialog (const std::string &title, Array< FileFormat > &&formats) |
void | drawTextWithSubscripts (wxDC &dc, const std::wstring &text, const wxPoint point) |
void | drawTextWithSubscripts (wxDC &dc, const std::string &text, const wxPoint point) |
std::wstring | toPrintableString (const Float value, const Size precision=5, const Float decimalThreshold=1000._f) |
Converts the value to a printable string. More... | |
void | printLabels (wxDC &dc, ArrayView< const IRenderOutput::Label > labels) |
using FileFormat = IVirtualEntry::FileFormat |
Optional<Path> doOpenFileDialog | ( | const std::string & | title, |
Array< FileFormat > && | formats | ||
) |
Optional<Path> doSaveFileDialog | ( | const std::string & | title, |
Array< FileFormat > && | formats | ||
) |
void drawTextWithSubscripts | ( | wxDC & | dc, |
const std::string & | text, | ||
const wxPoint | point | ||
) |
void drawTextWithSubscripts | ( | wxDC & | dc, |
const std::wstring & | text, | ||
const wxPoint | point | ||
) |
void printLabels | ( | wxDC & | dc, |
ArrayView< const IRenderOutput::Label > | labels | ||
) |