glGetFloatv(GL_CURRENT_RASTER_POSITION, rp);
120 if(m_Value < m_MinValue || m_Value >
m_MaxValue)
179 if(m_Value < m_MinValue || m_Value >
m_MaxValue)
278 for(
size_t i=0;
i<
m_Value.size(); ++
i) {
302glGetIntegerv(GL_VIEWPORT, viewport);
305glPushAttrib(GL_ALL_ATTRIB_BITS);
306glMatrixMode(GL_MODELVIEW);
309glMatrixMode(GL_PROJECTION);
312glOrtho(0.0, viewport[2], 0.0, viewport[3], -1.0, 1.0);
313glDisable(GL_DEPTH_TEST);
314glDisable(GL_LIGHTING);
320glMatrixMode(GL_MODELVIEW);
322glMatrixMode(GL_PROJECTION);
331glPushAttrib(GL_ALL_ATTRIB_BITS);
345 floatborder_space = 6.0f;
359quad_pos.
Y() += dim.
Y();
362height += dim.
Y() + 1;
366glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
371glVertex2f(quad_pos.
X(),
372quad_pos.
Y() + border_space);
373glVertex2f(quad_pos.
X(),
374quad_pos.
Y() - height - border_space*3.0f);
375glVertex2f(quad_pos.
X() + width + border_space*2.0f,
376quad_pos.
Y() - height - border_space*3.0f);
377glVertex2f(quad_pos.
X() + width + border_space*2.0f,
378quad_pos.
Y() + border_space);
383glBegin(GL_LINE_LOOP);
384glVertex2f(quad_pos.
X(),
385quad_pos.
Y() + border_space);
386glVertex2f(quad_pos.
X(),
387quad_pos.
Y() - height - border_space*3.0f);
388glVertex2f(quad_pos.
X() + width + border_space*2.0f,
389quad_pos.
Y() - height - border_space*3.0f);
390glVertex2f(quad_pos.
X() + width + border_space*2.0f,
391quad_pos.
Y() + border_space);
396pos.
X() += border_space;
405glVertex2f(quad_pos.
X() + border_space/2,
406pos.
Y() + dim_current.
Y());
407glVertex2f(quad_pos.
X() + border_space/2,
409glVertex2f(quad_pos.
X() + width + border_space,
411glVertex2f(quad_pos.
X() + width + border_space,
412pos.
Y() + dim_current.
Y());
425pos.
Y() + border_space - dim.
Y());
430pos.
Y() -= dim.
Y() + 2;
445std::vector<CAttribMenuItem*>::iterator iter;
461std::vector<CAttribMenuItem*>::iterator iter;
473 boolhandled =
true;
476 if(key_code ==
m_OpenKey|| key_code == 388) {
492 else if(key_code ==
m_CloseKey|| key_code == 390) {
504 else if(key_code ==
m_KeyUp) {
527 boolhandled =
false;
569sprintf(
buf,
"%s %d", name.c_str(), ++v);
602 f->SetValue(initial_value);
603 f->SetStepSize(stepsize);
623 i->SetValue(initial_value);
624 i->SetStepSize(stepsize);
653 f->SetReadOnly(
true);
654 f->SetRange(FLT_MIN, FLT_MAX);
655 f->SetValue(*user_value);
656 f->SetStepSize(0.0f);
672 i->SetReadOnly(
true);
673 i->SetRange(INT_MIN, INT_MAX);
674 i->SetValue(*user_value);
765std::vector<CAttribMenuItem*>::iterator iter;
787std::vector<CAttribMenuItem*>::iterator iter;
801 if(user_value !=
NULL) {
802 if(n2.length() >= n1.length() &&
803n2.substr(0, n1.length()) == n1 &&
836std::vector<CAttribMenuItem*>::iterator iter;
839(*iter)->SynchToUserValue();
845std::vector<CAttribMenuItem*>::iterator iter;
848 if( (*iter)->GetReadOnly() ==
true)
849(*iter)->SynchToUserValue();
The NCBI C++ standard methods for dealing with std::string.
const T * GetData() const
const T * GetData() const
virtual void TextOut(const char *text) const
virtual TModelUnit TextHeight(void) const
compute the height of a string
virtual TModelUnit TextWidth(const char *text) const
compute the length of a null-terminated string
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string & ToLower(string &str)
Convert string to lower case â string& version.
static void text(MDB_val *v)
Standard mechanism to include OpenGL headers for all platforms.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4