59 if (
p->fElId ==
N)
break;
68 if (
N ==
p->fElId)
break;
146 }
else if (
x >=
pBlock->fRight) {
166 while (
p &&
n >= 0) {
197 if (
p)
p =
p->fPNext;
256 if (pp == 0 || !*pp)
return -1;
259 while (*
cp &&
x < 2) {
269 if (cnt < 0)
return -1;
272 case '+':
if (i == 1)
ccnt[
x] = 1;
else ccnt[
x] = cnt;
break;
273 case '-':
if (i == 1)
ccnt[
x] = -1;
else ccnt[
x] = -cnt;
break;
281 for (i = 0; i <
ccnt[0] && (*pp)->fPNext; ++i) {
283 while ((*pp)->fType ==
Html_Block && (*pp)->fPNext) {
287 }
else if (
ccnt[0] < 0) {
288 for (i = 0;
ccnt[0] < i && (*pp)->fPPrev; --i) {
291 while ((*pp)->fType ==
Html_Block && (*pp)->fPPrev) {
297 for (i = 0; i <
ccnt[1]; ++i) (*
ip)++;
298 }
else if (
ccnt[1] < 0) {
299 for (i = 0; i >
ccnt[1]; --i) (*
ip)--;
351 char buf[200], *base = buf, *
suffix, *
ep;
355 while (
isspace((
unsigned char)*base)) base++;
363 case '1':
case '2':
case '3':
case '4':
case '5':
364 case '6':
case '7':
case '8':
case '9':
case '0':
373 for (i = 1;
isdigit(base[i]); ++i) {}
376 }
else if (
strcmp(&base[i],
".last") == 0) {
378 }
else if (
strcmp(&base[i],
".end") == 0) {
382 if (
n == 1 &&
p &&
p->IsMarkup() && base[i] ==
'.' &&
383 p->MarkupArg(
fZBase + i + 1, 0)) {
393 if (
strcmp(base,
"begin") == 0) {
402 if (
strcmp(base,
"end") == 0) {
411 if (
strcmp(base,
"last") == 0) {
420 if (
strcmp(base,
"sel.first") == 0) {
423 }
else if (
strcmp(base,
"sel.last") == 0) {
426 }
else if (
strcmp(base,
"sel.end") == 0) {
464 switch (
pBlock->fPNext->fType) {
482 if (
pBlock->fLeft -
x < dist) {
486 }
else if (
pBlock->fRight <
x) {
487 if (
x -
pBlock->fRight < dist) {
506 }
else if (
pBlock->fRight <
x) {
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
winID h TVirtualViewer3D TVirtualGLPainter p
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t UChar_t len
Encapsulate fonts used in the GUI system.
Int_t MeasureChars(const char *source, Int_t numChars, Int_t maxLength, Int_t flags, Int_t *length) const
Determine the number of characters from the string that will fit in the given horizontal span.
virtual TGFont * GetFont(int iFont)
The rendering and layout routines should call this routine in order to get a font structure.
void IndexToBlockIndex(SHtmlIndex_t sIndex, TGHtmlBlock **ppBlock, int *piIndex)
Convert an Element-based index into a Block-based index.
void MaxIndex(TGHtmlElement *p, int *pIndex, int isLast)
Find the maximum index for the given token.
int IndexMod(TGHtmlElement **pp, int *ip, char *cp)
Modify an index for both pointer and char +/-/=N.
void FindIndexInBlock(TGHtmlBlock *pBlock, int x, TGHtmlElement **ppToken, int *pIndex)
Given a Block and an x coordinate, find the Index of the character that is closest to the given x coo...
TGHtmlElement * TokenByIndex(int N, int flag)
Return a pointer to the Nth TGHtmlElement in the list.
TGHtmlBlock * fFirstBlock
int TokenNumber(TGHtmlElement *p)
Return the token number for the given TGHtmlElement.
int GetIndex(const char *zIndex, TGHtmlElement **ppToken, int *pIndex)
This routine decodes a complete index specification.
int DecodeBaseIndex(const char *zBase, TGHtmlElement **ppToken, int *pIndex)
Given a base index name (without any modifiers) return a pointer to the token described,...
TGLongPosition fVisible
position of visible region