190 for (
j = 0;
index > 0 &&
j <
sizeof(values)/
sizeof(values[0]);
j++) {
193 for (k = 0; values[
j].name[k]; k++) {
194 zBuf[i++] = values[
j].name[k];
201 for (i = 0;
zBuf[i]; i++) {
202 zBuf[i] +=
'A' -
'a';
230 if (font == 0)
return;
241 if (font == 0)
return;
296 for (i = 0; i <
depth && i <
h/2; i++) {
332 if (
src == 0)
return;
349 if (font == 0)
return;
379 constexpr std::size_t
zBufSize = 30;
383 switch (
src->fType) {
388 switch (
li->fLtype) {
410 switch (
li->fLtype) {
436 if (font == 0)
return;
503 if (
cell->fBgImage) {
514 if (
image->fPImage) {
518 }
else if (
image->fZAlt) {
521 if (font == 0)
return;
583 image->fRedrawNeeded = 0;
626 if (
p->fN)
p->fN = 0;
628 if (
p->fZ)
delete[]
p->fZ;
644 if (
pElem == 0)
return 0;
649 switch (
pElem->fType) {
652 p->fTop =
hr->fY -
hr->fH;
655 p->fRight =
hr->fX +
hr->fW;
661 p->fTop =
li->fY -
li->fAscent;
662 p->fBottom =
li->fY +
li->fDescent;
663 p->fLeft =
li->fX - 10;
664 p->fRight =
li->fX + 10;
681 p->fBottom = table->
fY + table->
fH;
682 p->fLeft = table->
fX;
683 p->fRight = table->
fX + table->
fW;
698 return pElem->fPNext;
707 p->fTop =
y -
text->fAscent;
708 p->fBottom =
y +
text->fDescent;
714 switch (
pElem->fType) {
720 if (
txt->fSpaceWidth <= 0) {
731 int sw =
txt->fSpaceWidth;
737 for (i = 0; i <
nSpace && (
n+1) < (
int)
sizeof(
zBuf); ++i) {
745 for (i = 0; i <
nSpace && (
n+1) < (
int)
sizeof(
zBuf); ++i) {
787 while (
n > 0 &&
zBuf[
n-1] ==
' ')
n--;
788 p->fZ =
new char[
n+1];
860 int dl,
dt,
dr,
db, left, top, right, bottom;
870 right = left +
w - 1;
871 bottom = top +
h - 1;
872 if (
dr == 0 &&
db == 0) {
dr = right;
db = bottom; }
878 if (
iw < 4 &&
ih < 4)
return;
886 if (sh >
hd) sh =
hd;
894 if (!
image->GetPixmap())
return;
Handle_t Pixmap_t
Pixmap handle.
Handle_t GContext_t
Graphics context handle.
Handle_t Drawable_t
Drawable handle.
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
static void GetLetterIndex(char(&zBuf)[30], int index, int isUpper)
Print an ordered list index into the given buffer.
static void GetRomanIndex(char(&zBuf)[30], int index, int isUpper)
Print an ordered list index into the given buffer.
#define HTML_RELIEF_SUNKEN
#define HTML_RELIEF_RAISED
#define LI_TYPE_Undefined
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 index
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t src
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void gc
Option_t Option_t TPoint TPoint const char text
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 mx
Encapsulate fonts used in the GUI system.
void UnderlineChars(Drawable_t dst, GContext_t gc, const char *string, Int_t x, Int_t y, Int_t firstChar, Int_t lastChar) const
This procedure draws an underline for a given range of characters in a given string.
Int_t TextWidth(const char *string, Int_t numChars=-1) const
A wrapper function for the more complicated interface of MeasureChars.
void DrawChars(Drawable_t dst, GContext_t gc, const char *source, Int_t numChars, Int_t x, Int_t y) const
Perform a quick sanity check to ensure we won't overflow the X coordinate space.
~TGHtmlBlock() override
dtor.
int GetLightShadowColor(int iBgColor)
Given that the background color is iBgColor, figure out an appropriate color for the bright part of t...
TGHtmlBlock * fPSelStartBlock
virtual TGFont * GetFont(int iFont)
The rendering and layout routines should call this routine in order to get a font structure.
void BlockDraw(TGHtmlBlock *pBlock, Drawable_t wid, int left, int top, int width, int height, Pixmap_t pixmap)
Display a single HtmlBlock. This is where all the drawing happens.
void AppendBlock(TGHtmlElement *pToken, TGHtmlBlock *pBlock)
Append a block to the block list and insert the block into the element list immediately prior to the ...
void DrawImage(TGHtmlImageMarkup *image, Drawable_t wid, int left, int top, int right, int bottom)
Draw all or part of an image.
void AnimateImage(TGHtmlImage *image)
TGImage *img = image->image;.
TGHtmlBlock * fPSelEndBlock
void FormBlocks()
Add additional blocks to the block list in order to cover all elements on the element list.
TGHtmlElement * FillOutBlock(TGHtmlBlock *p)
Recompute the following fields of the given block structure:
void DrawRect(Drawable_t drawable, TGHtmlElement *src, int x, int y, int w, int h, int depth, int relief)
Draw a rectangle.
GContext_t GetAnyGC()
Retrieve any valid GC.
TGHtmlElement * FindStartOfNextBlock(TGHtmlElement *p, int *pCnt)
Scan ahead looking for a place to put a block.
TGHtmlBlock * fFirstBlock
void DrawTableBgnd(int x, int y, int w, int h, Drawable_t d, TImage *image)
Draw table background.
void DrawSelectionBackground(TGHtmlBlock *pBlock, Drawable_t Drawable_t, int x, int y)
Draw the selection background for the given block.
GContext_t GetGC(int color, int font)
Return a GC from the cache.
int GetDarkShadowColor(int iBgColor)
Given that the background color is iBgColor, figure out an appropriate color for the dark part of a 3...
void UnlinkAndFreeBlock(TGHtmlBlock *pBlock)
Destroy the given Block after first unlinking it from the element list.
TGLongPosition fVisible
position of visible region
An abstract interface to image processing library.
Graphics context structure.