Athena Widget Set - C Language Interface X Consortium Standard

Athena Widget Set - C Language Interface X Consortium Standard

Athena Widget Set - C Language Interface X Consortium Standard Chris Peterson Athena Widget Set - C Language Interface: X Consortium Standard by Chris Peterson X Version 11, Release 6.4 libXaw 1.0.7 Copyright © 1985 X Consortium Copyright © 1986 X Consortium Copyright © 1987 X Consortium Copyright © 1988 X Consortium Copyright © 1989 X Consortium Copyright © 1991 X Consortium Copyright © 1994 X Consortium Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated docu- mentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. Permission to use, copy, modify and distribute this documentation for any purpose and without fee is hereby granted, provided that the above copyright notice appears in all copies and that both that copyright notice and this permission notice appear in supporting documentation, and that the name of Digital not be used in in advertising or publicity pertaining to distribution of the software without specific, written prior permission. Digital makes no representations about the suitability of the software described herein for any purpose. It is provided ``as is'' without express or implied warranty. Except as contained in this notice, the name of the X Consortium shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from the X Consortium. Table of Contents 1. Athena Widgets and The Intrinsics ................................................................... 1 Introduction to the X Toolkit ......................................................................... 1 Terminology .................................................................................................... 2 Underlying Model .......................................................................................... 3 Conventions Used in this Manual .................................................................. 4 Format of the Widget Reference Chapters .................................................... 4 Input Focus .................................................................................................... 6 2. Using Widgets ................................................................................................... 7 Using Widgets ................................................................................................ 7 Setting the Locale .................................................................................. 7 Initializing the Toolkit ............................................................................ 7 Creating a Widget .................................................................................. 8 Common Resources ................................................................................ 9 Resource Conversions .......................................................................... 10 Realizing a Widget ............................................................................... 11 Processing Events ................................................................................ 11 Standard Widget Manipulation Functions ............................................ 12 Using the Client Callback Interface ..................................................... 14 Programming Considerations ............................................................... 15 Example Programs ............................................................................... 20 3. Simple Widgets ............................................................................................... 21 Command Widget ......................................................................................... 21 Resources ............................................................................................. 22 Command Actions ................................................................................. 23 Grip Widget .................................................................................................. 25 Resources ............................................................................................. 25 Grip Actions .......................................................................................... 26 Label Widget ................................................................................................ 27 Resources ............................................................................................. 28 List Widget ................................................................................................... 29 Resources ............................................................................................. 30 List Actions ........................................................................................... 32 List Callbacks ....................................................................................... 33 Changing the List ................................................................................. 33 Highlighting an Item ............................................................................ 34 Unhighlighting an Item ........................................................................ 34 Retrieving the Currently Selected Item ............................................... 34 Restrictions ........................................................................................... 34 Panner Widget .............................................................................................. 35 Resources ............................................................................................. 35 Panner Actions ...................................................................................... 38 Panner Callbacks .................................................................................. 39 Repeater Widget .......................................................................................... 39 Resources ............................................................................................. 39 Repeater Actions .................................................................................. 42 Scrollbar Widget .......................................................................................... 42 Resources ............................................................................................. 43 Scrollbar Actions .................................................................................. 45 Scrollbar Callbacks ............................................................................... 46 Convenience Routines .......................................................................... 47 Setting Float Resources ....................................................................... 47 iii Athena Widget Set - C Language Interface Simple Widget .............................................................................................. 48 Resources ............................................................................................. 48 StripChart Widget ........................................................................................ 49 Resources ............................................................................................. 50 Getting the StripChart Value ............................................................... 51 Toggle Widget .............................................................................................. 52 Resources ............................................................................................. 52 Toggle Actions ...................................................................................... 55 Toggle Actions_b ................................................................................... 55 Radio Groups ........................................................................................ 56 Convenience Routines .......................................................................... 56 4. Menus .............................................................................................................. 58 Using the Menus .......................................................................................... 58 Sme Object ................................................................................................... 59 Resources ............................................................................................. 59 Subclassing the Sme Object ................................................................

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    141 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us