24 #ifndef FXSCROLLAREA_H 25 #include "FXScrollArea.h" 40 CONSOLE_WRAPLINES = 0x00100000
45 typedef FXArray<FXString> FXStringBuffer;
76 FXint charWidth(FXwchar ch,FXint col)
const;
77 FXuint styleOf(FXint line,FXint index,FXint p,FXint c)
const;
78 virtual void moveContents(FXint x,FXint y);
79 void drawTextFragment(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h,
const FXchar *text,FXint n,FXuint sty)
const;
80 void drawTextLine(
FXDCWindow& dc,FXint line,FXint left,FXint right)
const;
81 void drawContents(
FXDCWindow& dc,FXint x,FXint y,FXint w,FXint h)
const;
86 STYLE_SELECTED = 0x0200,
87 STYLE_CONTROL = 0x0400,
88 STYLE_HILITE = 0x0800,
95 long onPaint(
FXObject*,FXSelector,
void*);
96 long onXXX(
FXObject*,FXSelector,
void*);
99 ID_XXX=FXScrollArea::ID_LAST,
105 FXConsole(
FXComposite *p,
FXObject* tgt=
nullptr,FXSelector sel=0,FXuint opts=0,FXint x=0,FXint y=0,FXint w=0,FXint h=0,FXint pl=3,FXint pr=3,FXint pt=2,FXint pb=2);
108 virtual void create();
111 virtual void detach();
114 virtual void layout();
117 virtual FXint getDefaultWidth();
120 virtual FXint getDefaultHeight();
123 virtual FXbool canFocus()
const;
126 virtual FXint getContentWidth();
129 virtual FXint getContentHeight();
132 void setFont(
FXFont* fnt);
138 void setMarginTop(FXint pt);
144 void setMarginBottom(FXint pb);
150 void setMarginLeft(FXint pl);
156 void setMarginRight(FXint pr);
162 void setHistoryLines(FXint hl);
168 void setVisibleRows(FXint rows);
174 void setVisibleColumns(FXint cols);
192 virtual void save(
FXStream& store)
const;
FXint getHistoryLines() const
Return history lines.
Definition: FXConsole.h:165
FXint getMarginTop() const
Return top margin.
Definition: FXConsole.h:141
Base composite.
Definition: FXComposite.h:32
FXString getHelpText() const
Return help text.
Definition: FXConsole.h:183
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
FXint getMarginRight() const
Return right margin.
Definition: FXConsole.h:159
Definition: FX4Splitter.h:28
FXint getVisibleColumns() const
Return number of visible columns.
Definition: FXConsole.h:177
FXint getVisibleRows() const
Return number of visible rows.
Definition: FXConsole.h:171
FXint getMarginLeft() const
Return left margin.
Definition: FXConsole.h:153
FXint getMarginBottom() const
Return bottom margin.
Definition: FXConsole.h:147
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:138
Window Device Context.
Definition: FXDCWindow.h:48
void setTipText(const FXString &text)
Set the tool tip message for this widget.
Definition: FXConsole.h:186
void setHelpText(const FXString &text)
Set help text.
Definition: FXConsole.h:180
The console widget is a scrolling text widget used primarily for logging purposes and "terminals" It ...
Definition: FXConsole.h:53
FXFont * getFont() const
Return text font.
Definition: FXConsole.h:135
FXString getTipText() const
Get the tool tip message for this widget.
Definition: FXConsole.h:189
Font class.
Definition: FXFont.h:137
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42