home *** CD-ROM | disk | FTP | other *** search
/ CD Actual Thematic 7: Programming / CDAT7.iso / Share / Editores / Perl5 / perl / lib / site / Tk / Xrm.pm < prev   
Encoding:
Perl POD Document  |  1997-08-10  |  960 b   |  39 lines

  1. package Tk::Xrm;
  2. use Tk ();
  3. 1;
  4. __END__
  5.  
  6. =head1 NAME
  7.  
  8. Tk::Xrm - X Resource/Defaults/Options routines that obey the rules.
  9.  
  10. =head1 SYNOPSIS
  11.  
  12.    use Tk;
  13.    use Tk::Xrm;  
  14.  
  15. =head1 DESCRIPTION
  16.  
  17. Using this modules causes Tk's Option code to be replaced by versions
  18. which use routines from <X11/Xresource.h> - i.e. same ones every other
  19. X toolkit uses.
  20.  
  21. Result is that "matching" of name/Class with the options database follows
  22. the same rules as other X toolkits. This makes it more predictable, 
  23. and makes it easier to have a single ~/.Xdefaults file which gives sensible
  24. results for both Tk and (say) Motif applications.
  25.  
  26. =head1 BUGS 
  27.  
  28. Currently C<optionAdd('key' => 'value' [, priority])> ignores optional
  29. priority completely and just does XrmPutStringResource().
  30. Perhaps it should be more subtle and do XrmMergeDatabases() or 
  31. XrmCombineDatabase().
  32.  
  33. This version is a little slower than Tk's re-invention but there is 
  34. more optimization that can be done.
  35.  
  36. =cut
  37.  
  38.  
  39.