![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXRulerView.h>
The Ruler View provides viewing of a document with rulers.
It is intended to be subclassed in order to draw actual contents and provide editing behavior for the document. The ruler view itself simply manages the geometry of the document being edited, and coordinates the movement of the ruler displays as the document is being scrolled.
FX::FXRulerView::FXRulerView | ( | FXComposite * | p, |
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = 0 , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 |
||
) |
Construct a rulerview window.
|
virtual |
Destroy.
|
virtual |
Return viewport height.
Reimplemented from FX::FXScrollArea.
|
virtual |
Return viewport width.
Reimplemented from FX::FXScrollArea.
|
virtual |
Return content width.
Reimplemented from FX::FXScrollArea.
|
virtual |
Return content height.
Reimplemented from FX::FXScrollArea.
|
virtual |
Perform layout.
Reimplemented from FX::FXScrollArea.
|
inline |
Return a pointer to the horizontal ruler.
|
inline |
Return a pointer to the vertical ruler.
FXint FX::FXRulerView::getDocumentX | ( | ) | const |
Get document position X.
FXint FX::FXRulerView::getDocumentY | ( | ) | const |
Get document position Y.
FXint FX::FXRulerView::getDocumentWidth | ( | ) | const |
Get document width.
FXint FX::FXRulerView::getDocumentHeight | ( | ) | const |
Get document height.
void FX::FXRulerView::setDocumentColor | ( | FXColor | clr | ) |
Set the current document color.
|
inline |
Get the current document color.
Change edge spacing around document.
FXint FX::FXRulerView::getHEdgeSpacing | ( | ) | const |
Return edge spacing.
FXint FX::FXRulerView::getVEdgeSpacing | ( | ) | const |
Change horizontal lower margin.
Change horizontal upper margin.
FXint FX::FXRulerView::getHMarginLower | ( | ) | const |
Get horizontal lower margin.
FXint FX::FXRulerView::getHMarginUpper | ( | ) | const |
Get horizontal upper margin.
Change vertical lower margin.
Change vertical upper margin.
FXint FX::FXRulerView::getVMarginLower | ( | ) | const |
Get vertical lower margin.
FXint FX::FXRulerView::getVMarginUpper | ( | ) | const |
Get vertical upper margin.
Set horizontal alignment; the default is RULER_ALIGN_NORMAL.
FXuint FX::FXRulerView::getHAlignment | ( | ) | const |
Return horizontal alignment.
Set vertical alignment; the default is RULER_ALIGN_NORMAL.
FXuint FX::FXRulerView::getVAlignment | ( | ) | const |
Return vertical alignment.
void FX::FXRulerView::setArrowPosX | ( | FXint | x | ) |
Set X arrow position, relative to document position.
void FX::FXRulerView::setArrowPosY | ( | FXint | y | ) |
Set X arrow position, relative to document position.
FXint FX::FXRulerView::getArrowPosX | ( | ) | const |
Get X arrow position in document.
FXint FX::FXRulerView::getArrowPosY | ( | ) | const |
Get Y arrow position in document.
Set the horizontal ruler font.
FXFont* FX::FXRulerView::getHRulerFont | ( | ) | const |
Get the horizontal ruler font.
Set the vertical ruler font.
FXFont* FX::FXRulerView::getVRulerFont | ( | ) | const |
Get the vertical ruler font.
Change document number placement.
FXint FX::FXRulerView::getHNumberTicks | ( | ) | const |
Return document number placement.
FXint FX::FXRulerView::getVNumberTicks | ( | ) | const |
Change document major ticks.
FXint FX::FXRulerView::getHMajorTicks | ( | ) | const |
Return document major ticks.
FXint FX::FXRulerView::getVMajorTicks | ( | ) | const |
Change document medium ticks.
FXint FX::FXRulerView::getHMediumTicks | ( | ) | const |
Return document medium ticks.
FXint FX::FXRulerView::getVMediumTicks | ( | ) | const |
Change document tiny ticks.
FXint FX::FXRulerView::getHTinyTicks | ( | ) | const |
Return document tiny ticks.
FXint FX::FXRulerView::getVTinyTicks | ( | ) | const |
Change pixel per tick spacing.
FXdouble FX::FXRulerView::getHPixelPerTick | ( | ) | const |
Return pixel per tick spacing.
FXdouble FX::FXRulerView::getVPixelPerTick | ( | ) | const |
void FX::FXRulerView::setHRulerStyle | ( | FXuint | style | ) |
Set ruler style.
void FX::FXRulerView::setVRulerStyle | ( | FXuint | style | ) |
FXuint FX::FXRulerView::getHRulerStyle | ( | ) | const |
Get ruler style.
FXuint FX::FXRulerView::getVRulerStyle | ( | ) | const |
|
inline |
Set the status line help text for the ruler view.
|
inline |
Get the status line help text for the ruler view.
|
inline |
Set the tool tip message for the ruler view.
|
inline |
Get the tool tip message for the ruler view.
|
virtual |
Save list to a stream.
Reimplemented from FX::FXWindow.
|
virtual |
Load list from a stream.
Reimplemented from FX::FXWindow.
![]() |