SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

BotDetect - Real-Time Bot Detection API
 
 

MAN page from Mandrake Other XITE-3.3-3.i386.rpm

Section: Free Widget Foundation (3)
Updated:
Index 

NAME

XfwfButton 

DESCRIPTION

The XfwfButton widget is a simple button with asingle callback activate_callback. Except for thatcallback, all resources are inherited from theXfwfLabel widget. Subclasses provide buttons ofother, more specialized types. XfwfButton inheritsits 3D frame from XfwfFrame, the locationspecification resources from XfwfBoard and themulti-line label from XfwfLabel.

The implementation is also very simple, since nearlyall code is inherited from XfwfLabel. There are nonew or redefined methods. In fact, just six lines ofactual code suffice to implement the widget: ObjectOriented Programming at its best!

 

Public variables

XfwfButton
NameClassTypeDefault
XtNactivateXtCActivateCallbackNULL
XtNenterXtCEnterCallbackNULL
XtNleaveXtCLeaveCallbackNULL

XtNactivate
The activate is invoked from the activateaction, which is normally bound to a mouse click. Thecall_data argument of the callbacks routines isfilled with a pointer to the event that triggered theaction.

        

<Callback> XtCallbackList activate = NULL

XtNenter
The enter callback is invoked on an EnterNotify event.

        

<Callback> XtCallbackList enter = NULL

XtNleave
The leave callback is invoked on an LeaveNotify event.

        

<Callback> XtCallbackList leave = NULL

XtNframeWidth
The default frameWidth is set to 2 pixels.

        

Dimension frameWidth = 2

XtNtraversalOn
In contrast to its superclass XfwfLabel, a buttonusually takes part in keyboard traversal.

        


 traversalOn = True 

XfwfLabel
NameClassTypeDefault
XtNlabelXtCLabelString NULL
XtNtablistXtCTablistString NULL
XtNfontXtCFontFontStructXtDefaultFont
XtNforegroundXtCForegroundPixel XtDefaultForeground
XtNhlForegroundXtCHlForegroundPixel XtDefaultForeground
XtNalignmentXtCAlignmentAlignment 0
XtNtopMarginXtCTopMarginDimension 2
XtNbottomMarginXtCBottomMarginDimension 2
XtNleftMarginXtCLeftMarginDimension 2
XtNrightMarginXtCRightMarginDimension 2
XtNshrinkToFitXtCShrinkToFitBoolean False
XtNrvStartXtCRvStartInt 0
XtNrvLengthXtCRvLengthInt 0
XtNhlStartXtCHlStartInt 0
XtNhlLengthXtCHlLengthInt 0

XfwfBoard
NameClassTypeDefault
XtNabs_xXtCAbs_xPosition 0
XtNrel_xXtCRel_xFloat "0.0"
XtNabs_yXtCAbs_yPosition 0
XtNrel_yXtCRel_yFloat "0.0"
XtNabs_widthXtCAbs_widthPosition 0
XtNrel_widthXtCRel_widthFloat "1.0"
XtNabs_heightXtCAbs_heightPosition 0
XtNrel_heightXtCRel_heightFloat "1.0"
XtNhunitXtCHunitFloat "1.0"
XtNvunitXtCVunitFloat "1.0"
XtNlocationXtCLocationString NULL

XfwfFrame
NameClassTypeDefault
XtNcursorXtCCursorCursor None
XtNframeTypeXtCFrameTypeFrameType XfwfRaised
XtNframeWidthXtCFrameWidthDimension 0
XtNouterOffsetXtCOuterOffsetDimension 0
XtNinnerOffsetXtCInnerOffsetDimension 0
XtNshadowSchemeXtCShadowSchemeShadowScheme XfwfAuto
XtNtopShadowColorXtCTopShadowColorPixel compute_topcolor
XtNbottomShadowColorXtCBottomShadowColorPixel compute_bottomcolor
XtNtopShadowStippleXtCTopShadowStippleBitmap NULL
XtNbottomShadowStippleXtCBottomShadowStippleBitmap NULL

XfwfCommon
NameClassTypeDefault
XtNtraversalOnXtCTraversalOnBoolean True
XtNhighlightThicknessXtCHighlightThicknessDimension 2
XtNhighlightColorXtCHighlightColorPixel XtDefaultForeground
XtNhighlightPixmapXtCHighlightPixmapPixmap None
XtNnextTopXtCNextTopCallbackNULL
XtNuserDataXtCUserDataPointerNULL

Composite
NameClassTypeDefault
XtNchildrenXtCChildrenWidgetList NULL
insertPositionXtCInsertPositionXTOrderProc NULL
numChildrenXtCNumChildrenCardinal 0

Core
NameClassTypeDefault
XtNxXtCXPosition 0
XtNyXtCYPosition 0
XtNwidthXtCWidthDimension 0
XtNheightXtCHeightDimension 0
borderWidthXtCBorderWidthDimension 0
XtNcolormapXtCColormapColormap NULL
XtNdepthXtCDepthInt 0
destroyCallbackXtCDestroyCallbackXTCallbackList NULL
XtNsensitiveXtCSensitiveBoolean True
XtNtmXtCTmXTTMRec NULL
ancestorSensitiveXtCAncestorSensitiveBoolean False
acceleratorsXtCAcceleratorsXTTranslations NULL
borderColorXtCBorderColorPixel 0
borderPixmapXtCBorderPixmapPixmap NULL
backgroundXtCBackgroundPixel 0
backgroundPixmapXtCBackgroundPixmapPixmap NULL
mappedWhenManagedXtCMappedWhenManagedBoolean True
XtNscreenXtCScreenScreen *NULL

 

Translations

By default, the activate action is bound to amouse click and to the Enter key.

        

<Btn1Down>: set_shadow(sunken) 

<Btn1Down>,<Btn1Up>: activate() set_shadow() 

Button1<Leave>: set_shadow() leave() 

<Key>Return: set_shadow(sunken) activate() set_shadow() 

<EnterNotify>: enter() 

<LeaveNotify>: leave() 

 

Actions

activate

The activate action just calls the activatecallback functions, passing the XEvent pointer inthe call_data argument.

void activate($, XEvent* event, String* params, Cardinal* num_params){    XtCallCallbackList($, $activate, event);}

enter

void enter($, XEvent* event, String* params, Cardinal* num_params){    XtCallCallbackList($, $enter, event);}

leave

void leave($, XEvent* event, String* params, Cardinal* num_params){    XtCallCallbackList($, $leave, event);}


 

Index

NAME
DESCRIPTION
Public variables
Translations
Actions

This document was created byman2html,using the manual pages.
 
ICM Bot detect detector