本文整理汇总了C++中recalc函数的典型用法代码示例。如果您正苦于以下问题:C++ recalc函数的具体用法?C++ recalc怎么用?C++ recalc使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了recalc函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: recalc
void ProgressDialog::setCurrent( int subCurrent, bool bRedrawUpdate )
{
if ( m_progressStack.empty() )
return;
ProgressLevelData& pld = m_progressStack.back();
pld.m_current = subCurrent;
recalc( bRedrawUpdate );
}
示例2: spinner
void spinner(void)
{
read();
recalc();
upload();
compute_histogram();
update();
}
示例3: updateTitleIcon
void UIPopupBox::setTitleIcon(const QIcon &icon)
{
/* Remember new title-icon: */
m_titleIcon = icon;
/* Update title-icon: */
updateTitleIcon();
/* Recalculate title-size: */
recalc();
}
示例4: recalc
bool QSplitter::event( QEvent *e )
{
if ( e->type() == QEvent::LayoutHint || ( e->type() == QEvent::Show && data->firstShow ) ) {
recalc( isVisible() );
if ( e->type() == QEvent::Show )
data->firstShow = FALSE;
}
return QWidget::event( e );
}
示例5: updateTitle
void UIPopupBox::setTitle(const QString &strTitle)
{
/* Remember new title: */
m_strTitle = strTitle;
/* Update title: */
updateTitle();
/* Recalculate title-size: */
recalc();
}
示例6: recalc
void GuiTextbox::set_caret_position(int pos) {
int sz = static_cast<int>(text.length());
caret_position = pos;
if (caret_position > sz) {
caret_position = sz;
}
recalc();
}
示例7: recalc
void PictureFlowPrivate::setZoomFactor(int z)
{
if(z <= 0)
return;
zoom = z;
recalc(buffer.width(), buffer.height());
triggerRender();
}
示例8: updateWarningIcon
void UIPopupBox::setWarningIcon(const QIcon &icon)
{
/* Remember new warning-icon: */
m_warningIcon = icon;
/* Update warning-icon: */
updateWarningIcon();
/* Recalculate title-size: */
recalc();
}
示例9: updateHtml
void FOX16_HtmlLabel::setText(const FXString& text) {
m_haveDefaultDims=false;
m_text=text;
updateHtml();
flags|=FLAG_DIRTY;
layout();
recalc();
update();
}
示例10: recalc
void DetunerPlugin::setParameter (int index, float newValue)
{
if (Pars->getParameter(index) != newValue) {Pars->setParameter(index,newValue);}
//calcs here
recalc();
}
示例11: vec3
Camera::Camera() //startwerte der perspective camera
{
proj = glm::perspective(45.0f, 1.0f, 0.1f, 100.0f);
eye = vec3(0,2,-5);
lookAt = vec3(2.5,0,0);
up = vec3(0,1,0);
recalc();
}
示例12: collision_avoided
void collision_avoided(double direction, struct timeval time){
running = 0;
current.timer = time;
free(route.path);
compare_tile();
current.current_destination.angle = direction;
update_position(¤t);
compare_tile();
recalc();
}
示例13: recalc
//-----------------------------------------------------------------------------
// name: next()
// desc: move step towards dest
//-----------------------------------------------------------------------------
void ViewRegionInterp::next()
{
// do nothing
if( m_alpha >= 1.0 ) return;
// compute the alpha
m_alpha = (AudicleWindow::main()->get_current_time() - m_start) / m_dur;
// alpha
recalc();
}
示例14: recalc
void filter_rc_device::filter_rc_set_RC(int type, double R1, double R2, double R3, double C)
{
m_stream->update();
m_type = type;
m_R1 = R1;
m_R2 = R2;
m_R3 = R3;
m_C = C;
recalc();
}
示例15: obrasslamp
void obrasslamp(int i)
{
spelknow[i]++;
Printf("Spell: %s -- %s<br/>", spelname[i], speldescript[i]);
Print("The genie prefers not to be disturbed again.");
forget();
recalc();
UpdateStatus();
}