mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
MiniQtHelper: add ProgressBar widget
This commit is contained in:
committed by
Baldur Karlsson
parent
d7b9b61201
commit
bae0d1992b
@@ -312,6 +312,46 @@ struct MiniQtInvoker : ObjectForwarder<IMiniQtHelper>
|
||||
{
|
||||
InvokeVoidFunction(&IMiniQtHelper::SelectComboOption, combo, option);
|
||||
}
|
||||
|
||||
QWidget *CreateProgressBar(bool horizontal)
|
||||
{
|
||||
return InvokeRetFunction<QWidget *>(&IMiniQtHelper::CreateProgressBar, horizontal);
|
||||
}
|
||||
|
||||
void ResetProgressBar(QWidget *pbar)
|
||||
{
|
||||
InvokeVoidFunction(&IMiniQtHelper::ResetProgressBar, pbar);
|
||||
}
|
||||
|
||||
void SetProgressBarValue(QWidget *pbar, int32_t value)
|
||||
{
|
||||
InvokeVoidFunction(&IMiniQtHelper::SetProgressBarValue, pbar, value);
|
||||
}
|
||||
|
||||
void UpdateProgressBarValue(QWidget *pbar, int32_t delta)
|
||||
{
|
||||
InvokeVoidFunction(&IMiniQtHelper::UpdateProgressBarValue, pbar, delta);
|
||||
}
|
||||
|
||||
int32_t GetProgressBarValue(QWidget *pbar)
|
||||
{
|
||||
return InvokeRetFunction<int>(&IMiniQtHelper::GetProgressBarValue, pbar);
|
||||
}
|
||||
|
||||
void SetProgressBarRange(QWidget *pbar, int32_t minimum, int32_t maximum)
|
||||
{
|
||||
InvokeVoidFunction(&IMiniQtHelper::SetProgressBarRange, pbar, minimum, maximum);
|
||||
}
|
||||
|
||||
int32_t GetProgressBarMinimum(QWidget *pbar)
|
||||
{
|
||||
return InvokeRetFunction<int>(&IMiniQtHelper::GetProgressBarMinimum, pbar);
|
||||
}
|
||||
|
||||
int32_t GetProgressBarMaximum(QWidget *pbar)
|
||||
{
|
||||
return InvokeRetFunction<int>(&IMiniQtHelper::GetProgressBarMaximum, pbar);
|
||||
}
|
||||
};
|
||||
|
||||
struct ExtensionInvoker : ObjectForwarder<IExtensionManager>
|
||||
|
||||
Reference in New Issue
Block a user