A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/attrib__menu_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/widgets/gl/attrib_menu.cpp Source File

76

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

) {

302

glGetIntegerv(GL_VIEWPORT, viewport);

305

glPushAttrib(GL_ALL_ATTRIB_BITS);

306

glMatrixMode(GL_MODELVIEW);

309

glMatrixMode(GL_PROJECTION);

312

glOrtho(0.0, viewport[2], 0.0, viewport[3], -1.0, 1.0);

313

glDisable(GL_DEPTH_TEST);

314

glDisable(GL_LIGHTING);

320

glMatrixMode(GL_MODELVIEW);

322

glMatrixMode(GL_PROJECTION);

331

glPushAttrib(GL_ALL_ATTRIB_BITS);

345  float

border_space = 6.0f;

359

quad_pos.

Y

() += dim.

Y

();

362

height += dim.

Y

() + 1;

366

glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);

371

glVertex2f(quad_pos.

X

(),

372

quad_pos.

Y

() + border_space);

373

glVertex2f(quad_pos.

X

(),

374

quad_pos.

Y

() - height - border_space*3.0f);

375

glVertex2f(quad_pos.

X

() + width + border_space*2.0f,

376

quad_pos.

Y

() - height - border_space*3.0f);

377

glVertex2f(quad_pos.

X

() + width + border_space*2.0f,

378

quad_pos.

Y

() + border_space);

383

glBegin(GL_LINE_LOOP);

384

glVertex2f(quad_pos.

X

(),

385

quad_pos.

Y

() + border_space);

386

glVertex2f(quad_pos.

X

(),

387

quad_pos.

Y

() - height - border_space*3.0f);

388

glVertex2f(quad_pos.

X

() + width + border_space*2.0f,

389

quad_pos.

Y

() - height - border_space*3.0f);

390

glVertex2f(quad_pos.

X

() + width + border_space*2.0f,

391

quad_pos.

Y

() + border_space);

396

pos.

X

() += border_space;

405

glVertex2f(quad_pos.

X

() + border_space/2,

406

pos.

Y

() + dim_current.

Y

());

407

glVertex2f(quad_pos.

X

() + border_space/2,

409

glVertex2f(quad_pos.

X

() + width + border_space,

411

glVertex2f(quad_pos.

X

() + width + border_space,

412

pos.

Y

() + dim_current.

Y

());

425

pos.

Y

() + border_space - dim.

Y

());

430

pos.

Y

() -= dim.

Y

() + 2;

445

std::vector<CAttribMenuItem*>::iterator iter;

461

std::vector<CAttribMenuItem*>::iterator iter;

473  bool

handled =

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  bool

handled =

false

;

569

sprintf(

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);

765

std::vector<CAttribMenuItem*>::iterator iter;

787

std::vector<CAttribMenuItem*>::iterator iter;

801  if

(user_value !=

NULL

) {

802  if

(n2.length() >= n1.length() &&

803

n2.substr(0, n1.length()) == n1 &&

836

std::vector<CAttribMenuItem*>::iterator iter;

839

(*iter)->SynchToUserValue();

845

std::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