![]() |
cpp-project-template 0.0.1.0
C++ Project Template
|
Namespace for this application. More...
Classes | |
class | App |
This class is the entry point for this wxWidgets app. More... | |
class | MainFrame |
This class represents the main window. More... |
Functions | |
void | printHelp () |
Print the usage of the application. | |
void | printVersion () |
Print the version of the application. | |
void | printHelpAndExit () |
Calls cpp_proj::printHelp and exits with success. | |
void | printVersionAndExit () |
Calls cpp_proj::printVersion and exits with success. | |
void | parseUserOptions (const std::span< char * > &args) |
Gets the user options from the command line. | |
void | showSplashScreen (const wxString &fileName, const unsigned long durationMs, const wxBitmapType bitmapType=wxBITMAP_TYPE_ANY) |
Shows the splashscreen. | |
void | showSplashScreen (const wxImage &img, const unsigned long durationMs) |
Shows the splashscreen. | |
wxImage | alphaToBlackAndWhiteMask (const wxImage &img) |
Creates a black & white mask for the alpha channel. | |
std::string | wordWrap (const std::string &str, size_t width) |
Breaks a string into multiple lines, each not exceeding the specified width. |
Variables | |
std::string_view | progName |
This application's executable name, to be set at the start of the main function. |
Namespace for this application.
wxImage cpp_proj::alphaToBlackAndWhiteMask | ( | const wxImage & | img | ) |
Creates a black & white mask for the alpha channel.
[in] | img | The image to create the mask for. |
void cpp_proj::parseUserOptions | ( | const std::span< char * > & | args | ) |
Gets the user options from the command line.
args | The command line arguments. |
void cpp_proj::printHelp | ( | ) |
Print the usage of the application.
void cpp_proj::printHelpAndExit | ( | ) |
Calls cpp_proj::printHelp and exits with success.
void cpp_proj::printVersion | ( | ) |
Print the version of the application.
void cpp_proj::printVersionAndExit | ( | ) |
Calls cpp_proj::printVersion and exits with success.
void cpp_proj::showSplashScreen | ( | const wxImage & | img, |
const unsigned long | durationMs ) |
Shows the splashscreen.
[in] | img | The splashscreen image. |
[in] | durationMs | The duration of the splashscreen. |
void cpp_proj::showSplashScreen | ( | const wxString & | fileName, |
const unsigned long | durationMs, | ||
const wxBitmapType | bitmapType = wxBITMAP_TYPE_ANY ) |
Shows the splashscreen.
[in] | fileName | The splashscreen image file path. |
[in] | durationMs | The duration of the splashscreen. |
[in] | bitmapType | The image file type of the splashscreen. |
std::string cpp_proj::wordWrap | ( | const std::string & | str, |
size_t | width ) |
Breaks a string into multiple lines, each not exceeding the specified width.
[in] | str | The string to break into multiple lines |
[in] | width | The maximum number of characters each line can have. |
|
inline |
This application's executable name, to be set at the start of the main function.