#include <textwin.h>
Inheritance diagram for TextWin:
Public Methods | |
TextWin (int minxdim, int addy, int bc, int bkc, char **txt, int txtc) | |
TextWin (int minxdim, int addy, int bc, int bkc, char *t, int tc, char **txt, int txtc) | |
virtual | ~TextWin () |
virtual void | Draw () |
Protected Methods | |
void | CalcDim (void) |
Private Attributes | |
int | TextColor |
char ** | Text |
int | THeight |
int | MinXDim |
int | AddY |
|
Definition at line 16 of file textwin.c. References AddY, Window::BkColor, Window::BorderColor, CalcDim(), MinXDim, Text, and TextColor.
|
|
Definition at line 28 of file textwin.c. References AddY, Window::BkColor, Window::BorderColor, CalcDim(), MinXDim, Text, TextColor, Window::Title, and Window::TitleColor.
|
|
Definition at line 32 of file textwin.h.
00032 { } |
|
Definition at line 44 of file textwin.c. References AddY, BorderWidth, max(), MinXDim, Viewport::SetTextStyle(), Text, Viewport::TextHeight(), Viewport::TextWidth(), TextWinFont, TextWinFontSize, THeight, TitleWidth, Window::XDim, and Window::YDim. Referenced by TextWin().
00045 { 00046 Viewport temp; 00047 temp.SetTextStyle (TextWinFont, HORIZ_DIR, TextWinFontSize); 00048 THeight = temp.TextHeight ("My") + 4; 00049 int nlines; 00050 00051 XDim = MinXDim; 00052 for (nlines=0; strlen (Text [nlines]); nlines++) 00053 { 00054 XDim = max (XDim, temp.TextWidth (Text [nlines]) + 10); 00055 YDim += THeight; 00056 } 00057 if (Title) 00058 YDim += TitleWidth + 1; 00059 YDim += AddY + THeight + (BorderWidth*2) + 2; 00060 XDim += (BorderWidth*2) + 10; 00061 } |
|
|
|
|
|
|
|
|
|
|
|