![]() |
Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
![]() |
#include <FXRuler.h>
Public Types | |
enum | { ID_ARROW =FXFrame::ID_LAST, ID_LAST } |
![]() | |
enum | { ID_NONE, ID_HIDE, ID_SHOW, ID_TOGGLESHOWN, ID_LOWER, ID_RAISE, ID_DELETE, ID_DISABLE, ID_ENABLE, ID_TOGGLEENABLED, ID_UNCHECK, ID_CHECK, ID_UNKNOWN, ID_UPDATE, ID_AUTOSCROLL, ID_TIPTIMER, ID_HSCROLLED, ID_VSCROLLED, ID_SETVALUE, ID_SETINTVALUE, ID_SETREALVALUE, ID_SETSTRINGVALUE, ID_SETICONVALUE, ID_SETINTRANGE, ID_SETREALRANGE, ID_GETINTVALUE, ID_GETREALVALUE, ID_GETSTRINGVALUE, ID_GETICONVALUE, ID_GETINTRANGE, ID_GETREALRANGE, ID_SETHELPSTRING, ID_GETHELPSTRING, ID_SETTIPSTRING, ID_GETTIPSTRING, ID_QUERY_MENU, ID_HOTKEY, ID_ACCEL, ID_UNPOST, ID_POST, ID_MDI_TILEHORIZONTAL, ID_MDI_TILEVERTICAL, ID_MDI_CASCADE, ID_MDI_MAXIMIZE, ID_MDI_MINIMIZE, ID_MDI_RESTORE, ID_MDI_CLOSE, ID_MDI_WINDOW, ID_MDI_MENUWINDOW, ID_MDI_MENUMINIMIZE, ID_MDI_MENURESTORE, ID_MDI_MENUCLOSE, ID_MDI_NEXT, ID_MDI_PREV, ID_LAST } |
Additional Inherited Members | |
![]() | |
static FXWindow * | commonAncestor (FXWindow *a, FXWindow *b) |
static bool | before (const FXWindow *a, const FXWindow *b) |
static bool | after (const FXWindow *a, const FXWindow *b) |
![]() | |
static FXDragType | octetType |
static FXDragType | deleteType |
static FXDragType | textType |
static FXDragType | utf8Type |
static FXDragType | utf16Type |
static FXDragType | colorType |
static FXDragType | urilistType |
static const FXDragType | stringType |
static const FXDragType | imageType |
static const FXchar | octetTypeName [] |
static const FXchar | deleteTypeName [] |
static const FXchar | textTypeName [] |
static const FXchar | colorTypeName [] |
static const FXchar | urilistTypeName [] |
static const FXchar | utf8TypeName [] |
static const FXchar | utf16TypeName [] |
The ruler widget is placed alongside a document to measure position and size of entities within the document, such as margins, paragraph indents, and tickmarks.
The ruler widget sends a SEL_CHANGED when the indentation or margins are interactively changed by the user. If the document size exceeds the available space, it is possible to scroll the document using setPosition(). When the document size is less than the available space, the alignment options can be used to center, left-adjust, or right-adjust the document. Finally, a special option exists to stretch the document to the available space, that is to say, the document will always be fitten with given left and right edges substracted from the available space.
See also:
FX::FXRuler::FXRuler | ( | FXComposite * | p, |
FXObject * | tgt = NULL , |
||
FXSelector | sel = 0 , |
||
FXuint | opts = RULER_NORMAL , |
||
FXint | x = 0 , |
||
FXint | y = 0 , |
||
FXint | w = 0 , |
||
FXint | h = 0 , |
||
FXint | pl = DEFAULT_PAD , |
||
FXint | pr = DEFAULT_PAD , |
||
FXint | pt = DEFAULT_PAD , |
||
FXint | pb = DEFAULT_PAD |
||
) |
Construct label with given text and icon.
|
virtual |
Destructor.
|
virtual |
Perform layout.
Reimplemented from FX::FXWindow.
|
virtual |
Create server-side resources.
Reimplemented from FX::FXWindow.
|
virtual |
Detach server-side resources.
Reimplemented from FX::FXWindow.
|
virtual |
Return default width.
Reimplemented from FX::FXFrame.
|
virtual |
Return default height.
Reimplemented from FX::FXFrame.
|
inline |
Return the current position.
FXint FX::FXRuler::getContentSize | ( | ) | const |
FXint FX::FXRuler::getDocumentLower | ( | ) | const |
Get lower edge of document.
FXint FX::FXRuler::getDocumentUpper | ( | ) | const |
Get upper edge of document.
Change/return document size.
|
inline |
Change/return document edge spacing.
|
inline |
Change/return lower document margin.
|
inline |
Change/return upper document margin.
|
inline |
Change/return first line indent.
|
inline |
|
inline |
|
inline |
Change/return document number placement.
|
inline |
Change/return document major ticks.
|
inline |
Change/return document medium ticks.
|
inline |
Change/return document tiny ticks.
|
inline |
Change/return pixel per tick spacing.
|
inline |
|
inline |
Get the text font.
void FX::FXRuler::setValue | ( | FXint | value | ) |
Change arrow value, relative to document position.
|
inline |
Return arrow value in document.
void FX::FXRuler::setRulerStyle | ( | FXuint | style | ) |
Set ruler style.
FXuint FX::FXRuler::getRulerStyle | ( | ) | const |
Get ruler style.
Set ruler alignment.
FXuint FX::FXRuler::getRulerAlignment | ( | ) | const |
Get ruler alignment.
|
inline |
Get the current text color.
void FX::FXRuler::setTextColor | ( | FXColor | clr | ) |
Set the current text color.
|
inline |
Set the status line help text for the ruler.
|
inline |
Get the status line help text for the ruler.
|
inline |
Set the tool tip message for the ruler.
|
inline |
Get the tool tip message for the ruler.
|
virtual |
Save label to a stream.
Reimplemented from FX::FXFrame.
|
virtual |
Load label from a stream.
Reimplemented from FX::FXFrame.
![]() |