Lines Matching refs:pos
34 bar->pos ++; in Increment()
35 bar->pos = (int)(bar->pos + 10000000 + 0.5) - 10000000; in Increment()
37 if (bar->pos > bar->max) in Increment()
38 bar->pos = bar->max; in Increment()
40 (*bar->target) = (int)(bar->pos + 10000000 + 0.5) - 10000000; in Increment()
49 bar->pos --; in Decrement()
50 bar->pos = (int)(bar->pos + 10000000 + 0.5) - 10000000; in Decrement()
52 if (bar->pos < bar->min) in Decrement()
53 bar->pos = bar->min; in Decrement()
55 (*bar->target) = (int)(bar->pos + 10000000 + 0.5) - 10000000; in Decrement()
64 float diff = this->pos - *this->target; in Update()
66 this->pos = *this->target; in Update()
78 this->pos = (t + 0.5) * (max - min) + min; in Update()
81 if (this->pos < min) in Update()
82 this->pos = min; in Update()
84 if (this->pos > max) in Update()
85 this->pos = max; in Update()
87 (*this->target) = (this->pos + 0.5); in Update()
103 float t = (float)(this->pos - min) / (max - min) - 0.5; in Update()
127 if (this->pos <= min) in Draw()
129 this->pos = min; in Draw()
135 if (this->pos >= max) in Draw()
137 this->pos = max; in Draw()
153 float t = (float)(this->pos - min) / (max - min) - 0.5; in Draw()
163 sprintf(buffer, "%i", (int)(this->pos + 0.5)); in Draw()
179 float diff = this->pos - *this->target; in Reset()
181 this->pos = *this->target; in Reset()