Functions related to modal progress. More...
#include "thread/thread.h"
Go to the source code of this file.
Functions | |
static bool | HasModalProgress () |
Check if we are currently in a modal progress state. | |
bool | IsFirstModalProgressLoop () |
Check whether this is the first modal progress loop. | |
void | SetModalProgress (bool state) |
Set the modal progress state. | |
Variables | |
static const uint | MODAL_PROGRESS_REDRAW_TIMEOUT = 200 |
Timeout between redraws. | |
class ThreadMutex * | _modal_progress_work_mutex |
Rights for the performing work. | |
class ThreadMutex * | _modal_progress_paint_mutex |
Rights for the painting. |
Functions related to modal progress.
Definition in file progress.h.
static bool HasModalProgress | ( | ) | [inline, static] |
Check if we are currently in a modal progress state.
Definition at line 23 of file progress.h.
References _in_modal_progress.
Referenced by DrawDirtyBlocks(), GenerateWorld(), HandleAutoscroll(), HandleKeypress(), HandleMouseEvents(), InputLoop(), VideoDriver_SDL::MainLoop(), MayBeShown(), MainWindow::OnKeyPress(), and StateGameLoop().
bool IsFirstModalProgressLoop | ( | ) |
Check whether this is the first modal progress loop.
Definition at line 40 of file progress.cpp.
Referenced by DrawDirtyBlocks().
void SetModalProgress | ( | bool | state | ) |
Set the modal progress state.
state | The new state; are we modal or not? |
Definition at line 29 of file progress.cpp.
References _in_modal_progress.
Referenced by CleanupGeneration(), DoScanNewGRFFiles(), GenerateWorld(), and ScanNewGRFFiles().
Rights for the painting.
Definition at line 22 of file progress.cpp.
Referenced by GRFFileScanner::AddFile(), DoScanNewGRFFiles(), DrawDirtyBlocks(), ScanNewGRFFiles(), and WaitTillGeneratedWorld().
Rights for the performing work.
Definition at line 20 of file progress.cpp.
Referenced by _GenerateWorld(), GRFFileScanner::AddFile(), DoScanNewGRFFiles(), DrawDirtyBlocks(), GenerateWorld(), ScanNewGRFFiles(), and WaitTillGeneratedWorld().