-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0ec1bb
commit e842777
Showing
5 changed files
with
62 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# GuiSymbolRefreshCurrent | ||
|
||
Function description. | ||
Refreshes the symbol view list of symbols and exports. | ||
|
||
```c++ | ||
Function definition. | ||
void GuiSymbolRefreshCurrent(); | ||
``` | ||
|
||
## Parameters | ||
|
||
`param1` Parameter description. | ||
This function has no parameters. | ||
|
||
## Return Value | ||
|
||
Return value description. | ||
This function does not return a value. | ||
|
||
## Example | ||
|
||
```c++ | ||
Example code. | ||
GuiSymbolRefreshCurrent(); | ||
``` | ||
|
||
## Related functions | ||
|
||
- List of related functions | ||
- [GuiSymbolLogAdd](./GuiSymbolLogAdd.md) | ||
- [GuiSymbolLogClear](./GuiSymbolLogClear.md) | ||
- [GuiSymbolSetProgress](./GuiSymbolSetProgress.md) | ||
- [GuiSymbolUpdateModuleList](./GuiSymbolUpdateModuleList.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,28 @@ | ||
# GuiSymbolSetProgress | ||
|
||
Function description. | ||
Sets the progress bar in the symbol view based on the integer value supplied. This can be used to convey to the user an operation and how close it is to completion, for example with searches. | ||
|
||
```c++ | ||
Function definition. | ||
void GuiSymbolSetProgress(int percent); | ||
``` | ||
## Parameters | ||
`param1` Parameter description. | ||
`percent` an integer representing the percentage to set for the progress bar. | ||
## Return Value | ||
Return value description. | ||
This function does not return a value. | ||
## Example | ||
```c++ | ||
Example code. | ||
GuiSymbolSetProgress(50); | ||
``` | ||
|
||
## Related functions | ||
|
||
- List of related functions | ||
- [GuiSymbolLogAdd](./GuiSymbolLogAdd.md) | ||
- [GuiSymbolLogClear](./GuiSymbolLogClear.md) | ||
- [GuiSymbolRefreshCurrent](./GuiSymbolRefreshCurrent.md) | ||
- [GuiSymbolUpdateModuleList](./GuiSymbolUpdateModuleList.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,47 @@ | ||
# GuiSymbolUpdateModuleList | ||
|
||
Function description. | ||
Refreshes the symbol view modules list. | ||
|
||
```c++ | ||
Function definition. | ||
void GuiSymbolUpdateModuleList(int count, SYMBOLMODULEINFO* modules) | ||
``` | ||
## Parameters | ||
`param1` Parameter description. | ||
`count` An integer representing the number of symbol module's to update. | ||
`modules` A SYMBOLMODULEINFO variable that will hold the symbol module information. | ||
## Return Value | ||
Return value description. | ||
This function does not return a value. | ||
## Example | ||
```c++ | ||
Example code. | ||
// Build the vector of modules | ||
std::vector<SYMBOLMODULEINFO> modList; | ||
if(!SymGetModuleList(&modList)) | ||
{ | ||
GuiSymbolUpdateModuleList(0, nullptr); | ||
return; | ||
} | ||
// Create a new array to be sent to the GUI thread | ||
size_t moduleCount = modList.size(); | ||
SYMBOLMODULEINFO* data = (SYMBOLMODULEINFO*)BridgeAlloc(moduleCount * sizeof(SYMBOLMODULEINFO)); | ||
// Direct copy from std::vector data | ||
memcpy(data, modList.data(), moduleCount * sizeof(SYMBOLMODULEINFO)); | ||
// Send the module data to the GUI for updating | ||
GuiSymbolUpdateModuleList((int)moduleCount, data); | ||
``` | ||
|
||
## Related functions | ||
|
||
- List of related functions | ||
- [GuiSymbolLogAdd](./GuiSymbolLogAdd.md) | ||
- [GuiSymbolLogClear](./GuiSymbolLogClear.md) | ||
- [GuiSymbolRefreshCurrent](./GuiSymbolRefreshCurrent.md) | ||
- [GuiSymbolSetProgress](./GuiSymbolSetProgress.md) |