![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXRulerView.h>
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 FX::FXRulerView::~FXRulerView | ( | ) | [virtual] |
Destroy.
virtual FXint FX::FXRulerView::getViewportHeight | ( | ) | [virtual] |
virtual FXint FX::FXRulerView::getViewportWidth | ( | ) | [virtual] |
virtual FXint FX::FXRulerView::getContentWidth | ( | ) | [virtual] |
virtual FXint FX::FXRulerView::getContentHeight | ( | ) | [virtual] |
virtual void FX::FXRulerView::layout | ( | ) | [virtual] |
FXRuler* FX::FXRulerView::horizontalRuler | ( | ) | const [inline] |
Return a pointer to the horizontal ruler.
FXRuler* FX::FXRulerView::verticalRuler | ( | ) | const [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.
FXColor FX::FXRulerView::getDocumentColor | ( | ) | const [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 |
void FX::FXRulerView::setHelpText | ( | const FXString & | text | ) | [inline] |
Set the status line help text for the ruler view.
const FXString& FX::FXRulerView::getHelpText | ( | ) | const [inline] |
Get the status line help text for the ruler view.
void FX::FXRulerView::setTipText | ( | const FXString & | text | ) | [inline] |
Set the tool tip message for the ruler view.
const FXString& FX::FXRulerView::getTipText | ( | ) | const [inline] |
Get the tool tip message for the ruler view.
virtual void FX::FXRulerView::save | ( | FXStream & | store | ) | const [virtual] |
virtual void FX::FXRulerView::load | ( | FXStream & | store | ) | [virtual] |
![]() |