home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / Tk / X.pm < prev    next >
Encoding:
Perl POD Document  |  1997-08-10  |  11.2 KB  |  769 lines

  1. package Tk::X;
  2.  
  3. use strict;
  4. use Carp;
  5. use vars qw($VERSION @ISA @EXPORT $AUTOLOAD);
  6.  
  7. require Exporter;
  8. require DynaLoader;
  9. require AutoLoader;
  10.  
  11. @ISA = qw(Exporter DynaLoader);
  12. # Items to export into callers namespace by default. Note: do not export
  13. # names by default without a very good reason. Use EXPORT_OK instead.
  14. # Do not simply export all your public functions/methods/constants.
  15. @EXPORT = qw(
  16.     Above
  17.     AllTemporary
  18.     AllocAll
  19.     AllocNone
  20.     AllowExposures
  21.     AlreadyGrabbed
  22.     Always
  23.     AnyButton
  24.     AnyKey
  25.     AnyModifier
  26.     AnyPropertyType
  27.     ArcChord
  28.     ArcPieSlice
  29.     AsyncBoth
  30.     AsyncKeyboard
  31.     AsyncPointer
  32.     AutoRepeatModeDefault
  33.     AutoRepeatModeOff
  34.     AutoRepeatModeOn
  35.     BadAccess
  36.     BadAlloc
  37.     BadAtom
  38.     BadColor
  39.     BadCursor
  40.     BadDrawable
  41.     BadFont
  42.     BadGC
  43.     BadIDChoice
  44.     BadImplementation
  45.     BadLength
  46.     BadMatch
  47.     BadName
  48.     BadPixmap
  49.     BadRequest
  50.     BadValue
  51.     BadWindow
  52.     Below
  53.     BottomIf
  54.     Button1
  55.     Button1Mask
  56.     Button1MotionMask
  57.     Button2
  58.     Button2Mask
  59.     Button2MotionMask
  60.     Button3
  61.     Button3Mask
  62.     Button3MotionMask
  63.     Button4
  64.     Button4Mask
  65.     Button4MotionMask
  66.     Button5
  67.     Button5Mask
  68.     Button5MotionMask
  69.     ButtonMotionMask
  70.     ButtonPress
  71.     ButtonPressMask
  72.     ButtonRelease
  73.     ButtonReleaseMask
  74.     CWBackPixel
  75.     CWBackPixmap
  76.     CWBackingPixel
  77.     CWBackingPlanes
  78.     CWBackingStore
  79.     CWBitGravity
  80.     CWBorderPixel
  81.     CWBorderPixmap
  82.     CWBorderWidth
  83.     CWColormap
  84.     CWCursor
  85.     CWDontPropagate
  86.     CWEventMask
  87.     CWHeight
  88.     CWOverrideRedirect
  89.     CWSaveUnder
  90.     CWSibling
  91.     CWStackMode
  92.     CWWidth
  93.     CWWinGravity
  94.     CWX
  95.     CWY
  96.     CapButt
  97.     CapNotLast
  98.     CapProjecting
  99.     CapRound
  100.     CenterGravity
  101.     CirculateNotify
  102.     CirculateRequest
  103.     ClientMessage
  104.     ClipByChildren
  105.     ColormapChangeMask
  106.     ColormapInstalled
  107.     ColormapNotify
  108.     ColormapUninstalled
  109.     Complex
  110.     ConfigureNotify
  111.     ConfigureRequest
  112.     ControlMapIndex
  113.     ControlMask
  114.     Convex
  115.     CoordModeOrigin
  116.     CoordModePrevious
  117.     CopyFromParent
  118.     CreateNotify
  119.     CurrentTime
  120.     CursorShape
  121.     DefaultBlanking
  122.     DefaultExposures
  123.     DestroyAll
  124.     DestroyNotify
  125.     DirectColor
  126.     DisableAccess
  127.     DisableScreenInterval
  128.     DisableScreenSaver
  129.     DoBlue
  130.     DoGreen
  131.     DoRed
  132.     DontAllowExposures
  133.     DontPreferBlanking
  134.     EastGravity
  135.     EnableAccess
  136.     EnterNotify
  137.     EnterWindowMask
  138.     EvenOddRule
  139.     Expose
  140.     ExposureMask
  141.     FamilyChaos
  142.     FamilyDECnet
  143.     FamilyInternet
  144.     FillOpaqueStippled
  145.     FillSolid
  146.     FillStippled
  147.     FillTiled
  148.     FirstExtensionError
  149.     FocusChangeMask
  150.     FocusIn
  151.     FocusOut
  152.     FontChange
  153.     FontLeftToRight
  154.     FontRightToLeft
  155.     ForgetGravity
  156.     GCArcMode
  157.     GCBackground
  158.     GCCapStyle
  159.     GCClipMask
  160.     GCClipXOrigin
  161.     GCClipYOrigin
  162.     GCDashList
  163.     GCDashOffset
  164.     GCFillRule
  165.     GCFillStyle
  166.     GCFont
  167.     GCForeground
  168.     GCFunction
  169.     GCGraphicsExposures
  170.     GCJoinStyle
  171.     GCLastBit
  172.     GCLineStyle
  173.     GCLineWidth
  174.     GCPlaneMask
  175.     GCStipple
  176.     GCSubwindowMode
  177.     GCTile
  178.     GCTileStipXOrigin
  179.     GCTileStipYOrigin
  180.     GXand
  181.     GXandInverted
  182.     GXandReverse
  183.     GXclear
  184.     GXcopy
  185.     GXcopyInverted
  186.     GXequiv
  187.     GXinvert
  188.     GXnand
  189.     GXnoop
  190.     GXnor
  191.     GXor
  192.     GXorInverted
  193.     GXorReverse
  194.     GXset
  195.     GXxor
  196.     GrabFrozen
  197.     GrabInvalidTime
  198.     GrabModeAsync
  199.     GrabModeSync
  200.     GrabNotViewable
  201.     GrabSuccess
  202.     GraphicsExpose
  203.     GravityNotify
  204.     GrayScale
  205.     HostDelete
  206.     HostInsert
  207.     IncludeInferiors
  208.     InputFocus
  209.     InputOnly
  210.     InputOutput
  211.     IsUnmapped
  212.     IsUnviewable
  213.     IsViewable
  214.     JoinBevel
  215.     JoinMiter
  216.     JoinRound
  217.     KBAutoRepeatMode
  218.     KBBellDuration
  219.     KBBellPercent
  220.     KBBellPitch
  221.     KBKey
  222.     KBKeyClickPercent
  223.     KBLed
  224.     KBLedMode
  225.     KeyPress
  226.     KeyPressMask
  227.     KeyRelease
  228.     KeyReleaseMask
  229.     KeymapNotify
  230.     KeymapStateMask
  231.     LASTEvent
  232.     LSBFirst
  233.     LastExtensionError
  234.     LeaveNotify
  235.     LeaveWindowMask
  236.     LedModeOff
  237.     LedModeOn
  238.     LineDoubleDash
  239.     LineOnOffDash
  240.     LineSolid
  241.     LockMapIndex
  242.     LockMask
  243.     LowerHighest
  244.     MSBFirst
  245.     MapNotify
  246.     MapRequest
  247.     MappingBusy
  248.     MappingFailed
  249.     MappingKeyboard
  250.     MappingModifier
  251.     MappingNotify
  252.     MappingPointer
  253.     MappingSuccess
  254.     Mod1MapIndex
  255.     Mod1Mask
  256.     Mod2MapIndex
  257.     Mod2Mask
  258.     Mod3MapIndex
  259.     Mod3Mask
  260.     Mod4MapIndex
  261.     Mod4Mask
  262.     Mod5MapIndex
  263.     Mod5Mask
  264.     MotionNotify
  265.     NoEventMask
  266.     NoExpose
  267.     NoSymbol
  268.     Nonconvex
  269.     None
  270.     NorthEastGravity
  271.     NorthGravity
  272.     NorthWestGravity
  273.     NotUseful
  274.     NotifyAncestor
  275.     NotifyDetailNone
  276.     NotifyGrab
  277.     NotifyHint
  278.     NotifyInferior
  279.     NotifyNonlinear
  280.     NotifyNonlinearVirtual
  281.     NotifyNormal
  282.     NotifyPointer
  283.     NotifyPointerRoot
  284.     NotifyUngrab
  285.     NotifyVirtual
  286.     NotifyWhileGrabbed
  287.     Opposite
  288.     OwnerGrabButtonMask
  289.     ParentRelative
  290.     PlaceOnBottom
  291.     PlaceOnTop
  292.     PointerMotionHintMask
  293.     PointerMotionMask
  294.     PointerRoot
  295.     PointerWindow
  296.     PreferBlanking
  297.     PropModeAppend
  298.     PropModePrepend
  299.     PropModeReplace
  300.     PropertyChangeMask
  301.     PropertyDelete
  302.     PropertyNewValue
  303.     PropertyNotify
  304.     PseudoColor
  305.     RaiseLowest
  306.     ReparentNotify
  307.     ReplayKeyboard
  308.     ReplayPointer
  309.     ResizeRedirectMask
  310.     ResizeRequest
  311.     RetainPermanent
  312.     RetainTemporary
  313.     RevertToNone
  314.     RevertToParent
  315.     RevertToPointerRoot
  316.     ScreenSaverActive
  317.     ScreenSaverReset
  318.     SelectionClear
  319.     SelectionNotify
  320.     SelectionRequest
  321.     SetModeDelete
  322.     SetModeInsert
  323.     ShiftMapIndex
  324.     ShiftMask
  325.     SouthEastGravity
  326.     SouthGravity
  327.     SouthWestGravity
  328.     StaticColor
  329.     StaticGravity
  330.     StaticGray
  331.     StippleShape
  332.     StructureNotifyMask
  333.     SubstructureNotifyMask
  334.     SubstructureRedirectMask
  335.     Success
  336.     SyncBoth
  337.     SyncKeyboard
  338.     SyncPointer
  339.     TileShape
  340.     TopIf
  341.     TrueColor
  342.     UnmapGravity
  343.     UnmapNotify
  344.     Unsorted
  345.     VisibilityChangeMask
  346.     VisibilityFullyObscured
  347.     VisibilityNotify
  348.     VisibilityPartiallyObscured
  349.     VisibilityUnobscured
  350.     WestGravity
  351.     WhenMapped
  352.     WindingRule
  353.     XYBitmap
  354.     XYPixmap
  355.     X_H
  356.     X_PROTOCOL
  357.     X_PROTOCOL_REVISION
  358.     YSorted
  359.     YXBanded
  360.     YXSorted
  361.     ZPixmap
  362. );
  363. $VERSION = '0.01';
  364.  
  365. sub AUTOLOAD {
  366.     # This AUTOLOAD is used to 'autoload' constants from the constant()
  367.     # XS function.  If a constant is not found then control is passed
  368.     # to the AUTOLOAD in AutoLoader.
  369.  
  370.     my $constname;
  371.     ($constname = $AUTOLOAD) =~ s/.*:://;
  372.     my $val = constant($constname, @_ ? $_[0] : 0);
  373.     if ($! != 0) {
  374.     if ($! =~ /Invalid/) {
  375.         $AutoLoader::AUTOLOAD = $AUTOLOAD;
  376.         goto &AutoLoader::AUTOLOAD;
  377.     }
  378.     else {
  379.         croak "Your vendor has not defined X macro $constname";
  380.     }
  381.     }
  382.     eval "sub $AUTOLOAD { $val }";
  383.     goto &$AUTOLOAD;
  384. }
  385.  
  386. bootstrap Tk::X $Tk::VERSION;
  387.  
  388. # Preloaded methods go here.
  389.  
  390. # Autoload methods go after =cut, and are processed by the autosplit program.
  391.  
  392. 1;
  393. __END__
  394. # Below is the stub of documentation for your module. You better edit it!
  395.  
  396. =head1 NAME
  397.  
  398. Tk::X - Perl extension for Xlib constants.
  399.  
  400. =head1 SYNOPSIS
  401.  
  402.   use Tk::X;
  403.   
  404.  
  405. =head1 DESCRIPTION
  406.  
  407. A module generated by h2xs. It exists to export Xlib #define type
  408. constants for possible use with Tk::Xlib.
  409.  
  410. =head1 Exported constants
  411.  
  412.   Above
  413.   AllTemporary
  414.   AllocAll
  415.   AllocNone
  416.   AllowExposures
  417.   AlreadyGrabbed
  418.   Always
  419.   AnyButton
  420.   AnyKey
  421.   AnyModifier
  422.   AnyPropertyType
  423.   ArcChord
  424.   ArcPieSlice
  425.   AsyncBoth
  426.   AsyncKeyboard
  427.   AsyncPointer
  428.   AutoRepeatModeDefault
  429.   AutoRepeatModeOff
  430.   AutoRepeatModeOn
  431.   BadAccess
  432.   BadAlloc
  433.   BadAtom
  434.   BadColor
  435.   BadCursor
  436.   BadDrawable
  437.   BadFont
  438.   BadGC
  439.   BadIDChoice
  440.   BadImplementation
  441.   BadLength
  442.   BadMatch
  443.   BadName
  444.   BadPixmap
  445.   BadRequest
  446.   BadValue
  447.   BadWindow
  448.   Below
  449.   BottomIf
  450.   Button1
  451.   Button1Mask
  452.   Button1MotionMask
  453.   Button2
  454.   Button2Mask
  455.   Button2MotionMask
  456.   Button3
  457.   Button3Mask
  458.   Button3MotionMask
  459.   Button4
  460.   Button4Mask
  461.   Button4MotionMask
  462.   Button5
  463.   Button5Mask
  464.   Button5MotionMask
  465.   ButtonMotionMask
  466.   ButtonPress
  467.   ButtonPressMask
  468.   ButtonRelease
  469.   ButtonReleaseMask
  470.   CWBackPixel
  471.   CWBackPixmap
  472.   CWBackingPixel
  473.   CWBackingPlanes
  474.   CWBackingStore
  475.   CWBitGravity
  476.   CWBorderPixel
  477.   CWBorderPixmap
  478.   CWBorderWidth
  479.   CWColormap
  480.   CWCursor
  481.   CWDontPropagate
  482.   CWEventMask
  483.   CWHeight
  484.   CWOverrideRedirect
  485.   CWSaveUnder
  486.   CWSibling
  487.   CWStackMode
  488.   CWWidth
  489.   CWWinGravity
  490.   CWX
  491.   CWY
  492.   CapButt
  493.   CapNotLast
  494.   CapProjecting
  495.   CapRound
  496.   CenterGravity
  497.   CirculateNotify
  498.   CirculateRequest
  499.   ClientMessage
  500.   ClipByChildren
  501.   ColormapChangeMask
  502.   ColormapInstalled
  503.   ColormapNotify
  504.   ColormapUninstalled
  505.   Complex
  506.   ConfigureNotify
  507.   ConfigureRequest
  508.   ControlMapIndex
  509.   ControlMask
  510.   Convex
  511.   CoordModeOrigin
  512.   CoordModePrevious
  513.   CopyFromParent
  514.   CreateNotify
  515.   CurrentTime
  516.   CursorShape
  517.   DefaultBlanking
  518.   DefaultExposures
  519.   DestroyAll
  520.   DestroyNotify
  521.   DirectColor
  522.   DisableAccess
  523.   DisableScreenInterval
  524.   DisableScreenSaver
  525.   DoBlue
  526.   DoGreen
  527.   DoRed
  528.   DontAllowExposures
  529.   DontPreferBlanking
  530.   EastGravity
  531.   EnableAccess
  532.   EnterNotify
  533.   EnterWindowMask
  534.   EvenOddRule
  535.   Expose
  536.   ExposureMask
  537.   FamilyChaos
  538.   FamilyDECnet
  539.   FamilyInternet
  540.   FillOpaqueStippled
  541.   FillSolid
  542.   FillStippled
  543.   FillTiled
  544.   FirstExtensionError
  545.   FocusChangeMask
  546.   FocusIn
  547.   FocusOut
  548.   FontChange
  549.   FontLeftToRight
  550.   FontRightToLeft
  551.   ForgetGravity
  552.   GCArcMode
  553.   GCBackground
  554.   GCCapStyle
  555.   GCClipMask
  556.   GCClipXOrigin
  557.   GCClipYOrigin
  558.   GCDashList
  559.   GCDashOffset
  560.   GCFillRule
  561.   GCFillStyle
  562.   GCFont
  563.   GCForeground
  564.   GCFunction
  565.   GCGraphicsExposures
  566.   GCJoinStyle
  567.   GCLastBit
  568.   GCLineStyle
  569.   GCLineWidth
  570.   GCPlaneMask
  571.   GCStipple
  572.   GCSubwindowMode
  573.   GCTile
  574.   GCTileStipXOrigin
  575.   GCTileStipYOrigin
  576.   GXand
  577.   GXandInverted
  578.   GXandReverse
  579.   GXclear
  580.   GXcopy
  581.   GXcopyInverted
  582.   GXequiv
  583.   GXinvert
  584.   GXnand
  585.   GXnoop
  586.   GXnor
  587.   GXor
  588.   GXorInverted
  589.   GXorReverse
  590.   GXset
  591.   GXxor
  592.   GrabFrozen
  593.   GrabInvalidTime
  594.   GrabModeAsync
  595.   GrabModeSync
  596.   GrabNotViewable
  597.   GrabSuccess
  598.   GraphicsExpose
  599.   GravityNotify
  600.   GrayScale
  601.   HostDelete
  602.   HostInsert
  603.   IncludeInferiors
  604.   InputFocus
  605.   InputOnly
  606.   InputOutput
  607.   IsUnmapped
  608.   IsUnviewable
  609.   IsViewable
  610.   JoinBevel
  611.   JoinMiter
  612.   JoinRound
  613.   KBAutoRepeatMode
  614.   KBBellDuration
  615.   KBBellPercent
  616.   KBBellPitch
  617.   KBKey
  618.   KBKeyClickPercent
  619.   KBLed
  620.   KBLedMode
  621.   KeyPress
  622.   KeyPressMask
  623.   KeyRelease
  624.   KeyReleaseMask
  625.   KeymapNotify
  626.   KeymapStateMask
  627.   LASTEvent
  628.   LSBFirst
  629.   LastExtensionError
  630.   LeaveNotify
  631.   LeaveWindowMask
  632.   LedModeOff
  633.   LedModeOn
  634.   LineDoubleDash
  635.   LineOnOffDash
  636.   LineSolid
  637.   LockMapIndex
  638.   LockMask
  639.   LowerHighest
  640.   MSBFirst
  641.   MapNotify
  642.   MapRequest
  643.   MappingBusy
  644.   MappingFailed
  645.   MappingKeyboard
  646.   MappingModifier
  647.   MappingNotify
  648.   MappingPointer
  649.   MappingSuccess
  650.   Mod1MapIndex
  651.   Mod1Mask
  652.   Mod2MapIndex
  653.   Mod2Mask
  654.   Mod3MapIndex
  655.   Mod3Mask
  656.   Mod4MapIndex
  657.   Mod4Mask
  658.   Mod5MapIndex
  659.   Mod5Mask
  660.   MotionNotify
  661.   NoEventMask
  662.   NoExpose
  663.   NoSymbol
  664.   Nonconvex
  665.   None
  666.   NorthEastGravity
  667.   NorthGravity
  668.   NorthWestGravity
  669.   NotUseful
  670.   NotifyAncestor
  671.   NotifyDetailNone
  672.   NotifyGrab
  673.   NotifyHint
  674.   NotifyInferior
  675.   NotifyNonlinear
  676.   NotifyNonlinearVirtual
  677.   NotifyNormal
  678.   NotifyPointer
  679.   NotifyPointerRoot
  680.   NotifyUngrab
  681.   NotifyVirtual
  682.   NotifyWhileGrabbed
  683.   Opposite
  684.   OwnerGrabButtonMask
  685.   ParentRelative
  686.   PlaceOnBottom
  687.   PlaceOnTop
  688.   PointerMotionHintMask
  689.   PointerMotionMask
  690.   PointerRoot
  691.   PointerWindow
  692.   PreferBlanking
  693.   PropModeAppend
  694.   PropModePrepend
  695.   PropModeReplace
  696.   PropertyChangeMask
  697.   PropertyDelete
  698.   PropertyNewValue
  699.   PropertyNotify
  700.   PseudoColor
  701.   RaiseLowest
  702.   ReparentNotify
  703.   ReplayKeyboard
  704.   ReplayPointer
  705.   ResizeRedirectMask
  706.   ResizeRequest
  707.   RetainPermanent
  708.   RetainTemporary
  709.   RevertToNone
  710.   RevertToParent
  711.   RevertToPointerRoot
  712.   ScreenSaverActive
  713.   ScreenSaverReset
  714.   SelectionClear
  715.   SelectionNotify
  716.   SelectionRequest
  717.   SetModeDelete
  718.   SetModeInsert
  719.   ShiftMapIndex
  720.   ShiftMask
  721.   SouthEastGravity
  722.   SouthGravity
  723.   SouthWestGravity
  724.   StaticColor
  725.   StaticGravity
  726.   StaticGray
  727.   StippleShape
  728.   StructureNotifyMask
  729.   SubstructureNotifyMask
  730.   SubstructureRedirectMask
  731.   Success
  732.   SyncBoth
  733.   SyncKeyboard
  734.   SyncPointer
  735.   TileShape
  736.   TopIf
  737.   TrueColor
  738.   UnmapGravity
  739.   UnmapNotify
  740.   Unsorted
  741.   VisibilityChangeMask
  742.   VisibilityFullyObscured
  743.   VisibilityNotify
  744.   VisibilityPartiallyObscured
  745.   VisibilityUnobscured
  746.   WestGravity
  747.   WhenMapped
  748.   WindingRule
  749.   XYBitmap
  750.   XYPixmap
  751.   X_H
  752.   X_PROTOCOL
  753.   X_PROTOCOL_REVISION
  754.   YSorted
  755.   YXBanded
  756.   YXSorted
  757.   ZPixmap
  758.  
  759.  
  760. =head1 AUTHOR
  761.  
  762. Nick Ing-Simmons ran h2xs ...
  763.  
  764. =head1 SEE ALSO
  765.  
  766. Tk::Xlib(3).
  767.  
  768. =cut
  769.