This file is part of the Portable Code::Blocks Launcher.
More...
#include <cstdio>
#include <windows.h>
#include <tlhelp32.h>
#include <wchar.h>
Functions |
bool | isCodeblocksRunning () |
| tests if Code::Blocks is already running
|
bool | setAppData () |
| Modifies the system APPDATA% environment variable to point to subdirectory AppData of Code::Blocks.
|
bool | setToolPath () |
| Add the tool subdirectories of Code::Blocks to the system path. The tool subdirectory and its subdirectories or the bin subdir of its subdirectories.
|
int | addFontsFrom (wchar_t fontsPath[]) |
| Add Code::Blocks fonts to system fonts if they exist in the given directory, or recursively in its subdirectories.
|
bool | addFonts () |
| Add Code::Blocks fonts to system fonts if they exist in the given directory
- Assume fonts (if any) are available in /share/CodeBlocks/fonts directory.
|
int | removeFontsFrom (wchar_t fontsPath[]) |
| Remove Code::Blocks fonts from system fonts if they exist in given directory, or recursively in its subdirectories, assuming they were previously added.
|
int | removeFonts () |
| Remove Code::Blocks fonts from system fonts if they were installed
- Assume fonts were added from the /share/CodeBlocks/fonts subdirectory of CB and its subdirectories.
|
int | main () |
Detailed Description
This file is part of the Portable Code::Blocks Launcher.
- Version:
- 0.1.7
Function Documentation
Add Code::Blocks fonts to system fonts if they exist in the given directory
- Assume fonts (if any) are available in /share/CodeBlocks/fonts directory.
- Returns:
- success (true) or failure (false)
int addFontsFrom |
( |
wchar_t |
fontsPath[] | ) |
|
Add Code::Blocks fonts to system fonts if they exist in the given directory, or recursively in its subdirectories.
- Parameters:
-
fontsPath | directory (potentially) containing .ttf or .otf fonts |
- Returns:
- The number of fonts actually added
bool isCodeblocksRunning |
( |
| ) |
|
tests if Code::Blocks is already running
- Returns:
- true if CB is already running
Remove Code::Blocks fonts from system fonts if they were installed
- Assume fonts were added from the /share/CodeBlocks/fonts subdirectory of CB and its subdirectories.
- Returns:
- The number of fonts actually removed
int removeFontsFrom |
( |
wchar_t |
fontsPath[] | ) |
|
Remove Code::Blocks fonts from system fonts if they exist in given directory, or recursively in its subdirectories, assuming they were previously added.
- Parameters:
-
fontsPath | directory (potentially) containing .ttf or .otf fonts |
- Returns:
- The number of fonts actually removed
Modifies the system APPDATA% environment variable to point to subdirectory AppData of Code::Blocks.
- Returns:
- success (true) or failure (false)
Add the tool subdirectories of Code::Blocks to the system path. The tool subdirectory and its subdirectories or the bin subdir of its subdirectories.
- Returns:
- success (true) or failure (false)