24 #ifndef FXSCROLLAREA_H 25 #include "FXScrollArea.h" 54 virtual void moveContents(FXint x,FXint y);
61 long onPaint(
FXObject*,FXSelector,
void*);
62 long onMotion(
FXObject*,FXSelector,
void*);
63 long onCmdSetHelp(
FXObject*,FXSelector,
void*);
64 long onCmdGetHelp(
FXObject*,FXSelector,
void*);
65 long onCmdSetTip(
FXObject*,FXSelector,
void*);
66 long onCmdGetTip(
FXObject*,FXSelector,
void*);
67 long onQueryHelp(
FXObject*,FXSelector,
void*);
68 long onQueryTip(
FXObject*,FXSelector,
void*);
69 long onDocChanged(
FXObject*,FXSelector,
void*);
72 ID_HRULER=FXScrollArea::ID_LAST,
82 virtual FXint getContentWidth();
85 virtual FXint getContentHeight();
88 virtual FXint getVisibleX()
const;
91 virtual FXint getVisibleY()
const;
94 virtual FXint getVisibleWidth()
const;
97 virtual FXint getVisibleHeight()
const;
100 virtual FXint getDefaultWidth();
103 virtual FXint getDefaultHeight();
106 virtual void layout();
115 FXint getDocumentX()
const;
118 FXint getDocumentY()
const;
121 void setDocumentWidth(FXint w,FXbool notify=
false);
124 FXint getDocumentWidth()
const;
127 void setDocumentHeight(FXint h,FXbool notify=
false);
130 FXint getDocumentHeight()
const;
133 void setDocumentColor(FXColor clr);
139 void setHEdgeSpacing(FXint es,FXbool notify=
false);
140 void setVEdgeSpacing(FXint es,FXbool notify=
false);
143 FXint getHEdgeSpacing()
const;
144 FXint getVEdgeSpacing()
const;
147 void setHMarginLower(FXint marg,FXbool notify=
false);
150 void setHMarginUpper(FXint marg,FXbool notify=
false);
153 FXint getHMarginLower()
const;
156 FXint getHMarginUpper()
const;
159 void setVMarginLower(FXint marg,FXbool notify=
false);
162 void setVMarginUpper(FXint marg,FXbool notify=
false);
165 FXint getVMarginLower()
const;
168 FXint getVMarginUpper()
const;
171 void setHAlignment(FXuint align,FXbool notify=
false);
174 FXuint getHAlignment()
const;
177 void setVAlignment(FXuint align,FXbool notify=
false);
180 FXuint getVAlignment()
const;
183 void setArrowPosX(FXint x);
186 void setArrowPosY(FXint y);
189 FXint getArrowPosX()
const;
192 FXint getArrowPosY()
const;
195 void setHRulerFont(
FXFont *fnt,FXbool notify=
false);
198 FXFont* getHRulerFont()
const;
201 void setVRulerFont(
FXFont *fnt,FXbool notify=
false);
204 FXFont* getVRulerFont()
const;
207 void setHNumberTicks(FXint ticks,FXbool notify=
false);
208 void setVNumberTicks(FXint ticks,FXbool notify=
false);
211 FXint getHNumberTicks()
const;
212 FXint getVNumberTicks()
const;
215 void setHMajorTicks(FXint ticks,FXbool notify=
false);
216 void setVMajorTicks(FXint ticks,FXbool notify=
false);
219 FXint getHMajorTicks()
const;
220 FXint getVMajorTicks()
const;
223 void setHMediumTicks(FXint ticks,FXbool notify=
false);
224 void setVMediumTicks(FXint ticks,FXbool notify=
false);
227 FXint getHMediumTicks()
const;
228 FXint getVMediumTicks()
const;
231 void setHTinyTicks(FXint ticks,FXbool notify=
false);
232 void setVTinyTicks(FXint ticks,FXbool notify=
false);
235 FXint getHTinyTicks()
const;
236 FXint getVTinyTicks()
const;
239 void setHPixelPerTick(FXdouble space,FXbool notify=
false);
240 void setVPixelPerTick(FXdouble space,FXbool notify=
false);
243 FXdouble getHPixelPerTick()
const;
244 FXdouble getVPixelPerTick()
const;
247 void setHRulerStyle(FXuint style);
248 void setVRulerStyle(FXuint style);
251 FXuint getHRulerStyle()
const;
252 FXuint getVRulerStyle()
const;
267 virtual void save(
FXStream& store)
const;
const FXString & getHelpText() const
Get the status line help text for the ruler view.
Definition: FXRulerView.h:258
const FXString & getTipText() const
Get the tool tip message for the ruler view.
Definition: FXRulerView.h:264
FXRuler * horizontalRuler() const
Return a pointer to the horizontal ruler.
Definition: FXRulerView.h:109
The ruler widget is placed alongside a document to measure position and size of entities within the d...
Definition: FXRuler.h:75
The Frame widget provides borders around some contents.
Definition: FXFrame.h:58
FXRuler * verticalRuler() const
Return a pointer to the vertical ruler.
Definition: FXRulerView.h:112
void setHelpText(const FXString &text)
Set the status line help text for the ruler view.
Definition: FXRulerView.h:255
The Ruler View provides viewing of a document with rulers.
Definition: FXRulerView.h:43
FXColor getDocumentColor() const
Get the current document color.
Definition: FXRulerView.h:136
Base composite.
Definition: FXComposite.h:32
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
void setTipText(const FXString &text)
Set the tool tip message for the ruler view.
Definition: FXRulerView.h:261
Object is the base class for all objects in FOX; in order to receive messages from the user interface...
Definition: FXObject.h:134
Window Device Context.
Definition: FXDCWindow.h:48
Font class.
Definition: FXFont.h:137
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42