home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / languages / tcl / tk3.3b1 / doc / SetCModel.3 < prev    next >
Encoding:
Text File  |  1993-04-01  |  2.3 KB  |  62 lines

  1. '\"
  2. '\" Copyright (c) 1992 The Regents of the University of California.
  3. '\" All rights reserved.
  4. '\"
  5. '\" Permission is hereby granted, without written agreement and without
  6. '\" license or royalty fees, to use, copy, modify, and distribute this
  7. '\" documentation for any purpose, provided that the above copyright
  8. '\" notice and the following two paragraphs appear in all copies.
  9. '\"
  10. '\" IN NO EVENT SHALL THE UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY
  11. '\" FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
  12. '\" ARISING OUT OF THE USE OF THIS DOCUMENTATION, EVEN IF THE UNIVERSITY OF
  13. '\" CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  14. '\"
  15. '\" THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY WARRANTIES,
  16. '\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  17. '\" AND FITNESS FOR A PARTICULAR PURPOSE.  THE SOFTWARE PROVIDED HEREUNDER IS
  18. '\" ON AN "AS IS" BASIS, AND THE UNIVERSITY OF CALIFORNIA HAS NO OBLIGATION TO
  19. '\" PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
  20. '\" 
  21. '\" $Header: /user6/ouster/wish/man/RCS/SetCModel.3,v 1.3 93/04/01 09:41:56 ouster Exp $ SPRITE (Berkeley)
  22. '\" 
  23. .so man.macros
  24. .HS Tk_SetColorModel tkc
  25. .BS
  26. .SH NAME
  27. Tk_SetColorModel, Tk_GetColorModel \- access color model for screen
  28. .SH SYNOPSIS
  29. .nf
  30. \fB#include <tk.h>\fR
  31. .sp
  32. \fBTk_SetColorModel\fR(\fItkwin\fR, \fImodel\fB)\fR
  33. .sp
  34. Tk_ColorModel
  35. \fBTk_GetColorModel\fR(\fItkwin\fB)\fR
  36. .SH ARGUMENTS
  37. .AS "Tk_ColorModel" model
  38. .AP Tk_Window tkwin in
  39. Token for window.
  40. .AP Tk_ColorModel model in
  41. New model to use for \fIwindow\fR's screen.
  42. .BE
  43.  
  44. .SH DESCRIPTION
  45. .PP
  46. These procedures allow the color model for a screen
  47. to be read and written.
  48. See the documentation for the \fBtk colormodel\fR command for details
  49. on the color model and how it is used.
  50. \fBTk_SetColorModel\fR sets the color model for the screen
  51. associated with \fItkwin\fR to \fImodel\fR.  \fIModel\fR must be
  52. either \fBTK_COLOR\fR or \fBTK_MONO\fR.
  53. In contrast to the \fBtk colormodel\fR command, there are no
  54. restrictions on the value passed to \fBTk_SetColorModel\fR (you can
  55. set the model to \fBTK_COLOR\fR even if the screen only has one
  56. bit plane).
  57. \fBTk_GetColorModel\fR returns the current color model for the
  58. screen associated with \fItkwin\fR.
  59.  
  60. .SH KEYWORDS
  61. color model, screen
  62.