Example #1
0
Range::Range( Orientation orientation ) :
    Widget(),
    m_change_connection( 0 ),
    m_orientation( orientation )
{
    SetAdjustment( Adjustment::Create() );
}
Example #2
0
void SynchCorrection::Reset(bool soft)
{
  Log("SynchCorrection::Reset %u", soft);
  m_dBiasCorrection = 0.0001;
  m_iBiasDir = 0;
  //m_dlastAdjustment = 1.0;
  
  if (!soft)
  {
    CAutoLock lock(&m_csSampleQueueLock);
    m_rtStart = 0;
    m_dEVRAudioDelay = 0.0;
    m_dlastAdjustment = 1.0;
    m_iQualityDir = 0;
    m_bQualityCorrectionOn = false;
    m_rtAHwStartSet = false;
    m_rtAHwStart = 0;

    {
      CAutoLock dLock(&m_csDeltaLock);
      m_dDeltaError = 0.0;
    }

    SetBias(1.0);
    SetAdjustment(1.0);
    Flush();
  }
}
Example #3
0
Scrollbar::Scrollbar( Adjustment::Ptr adjustment, Orientation orientation ) :
	Range( orientation ),
	m_elapsed_time( 0.f ),
	m_slider_click_offset( 0.f ),
	m_page_decreasing( 0 ),
	m_page_increasing( 0 ),
	m_dragging( false ),
	m_decrease_pressed( false ),
	m_increase_pressed( false ),
	m_repeat_wait( true )
{
	if( adjustment ) {
		SetAdjustment( adjustment );
	}
}
Example #4
0
Scrollbar::Ptr Scrollbar::Create( Adjustment::Ptr adjustment, Orientation orientation ) {
	auto ptr = Ptr( new Scrollbar( orientation ) );
	ptr->SetAdjustment( adjustment );
	return ptr;
}