NextPrevTopIndex

Contents

Preface

1 Introduction to the CAPI

1.1 What is the CAPI?

1.2 The history of the CAPI

1.3 The CAPI model

1.3.1 CAPI Classes

2 Getting Started

2.1 Using the CAPI package

2.2 Ensure the Motif libraries are loaded

2.3 Creating a window

2.4 Linking code into CAPI elements

3 Creating Common Windows

3.1 Generic properties

3.1.1 Scroll bars

3.1.2 Background and foreground colors

3.1.3 Fonts

3.2 Specifying titles

3.2.1 Title panes

3.2.2 Specifying titles directly

3.2.3 Display panes

3.3 Displaying and entering text

3.3.1 Text input panes

3.3.2 Editor panes

3.4 Stream panes

3.4.1 Collector panes

3.4.2 Interactive streams

3.4.3 Listener panes

3.5 Miscellaneous button elements

3.5.1 Push buttons

3.5.2 Check buttons

3.5.3 Radio buttons

4 Choices

4.1 Choice classes

4.1.1 Push button panels

4.1.2 Radio button panels

4.1.3 Check button panels

4.2 List panels

4.2.1 List interaction

4.2.2 Extended selection

4.2.3 Deselection, retraction, and actions

4.2.4 Selections

4.3 Graph panes

4.4 Option panes

4.5 Text input choice

4.6 Menu components

4.7 General properties of choices

4.7.1 Interaction

4.7.2 Selections

4.7.3 Callbacks

5 Laying Out CAPI Panes

5.1 Organizing panes in columns and rows

5.2 Other types of layout

5.2.1 Grid layouts

5.2.2 Simple layouts

5.2.3 Pinboard layouts

5.3 Combining different layouts

5.4 Constraining the size of layouts

5.4.1 Default Constraints

5.4.2 Width and Height Constraints

5.4.3 Constraint Formats

5.4.4 Changing the constraints

5.5 Advanced pane layouts

5.5.1 Switchable layouts

5.5.2 Tab layouts

5.5.3 Dividers

5.5.4 Multiple-Document Interface (MDI)

6 Modifying CAPI Windows

6.1 Initialization

6.2 Resizing

6.3 Scrolling

6.4 Swapping panes and layouts

6.5 Setting the data in a pane

6.6 Iconifying and restoring windows

6.7 Destroying

7 Creating Menus

7.1 Creating a menu

7.2 Grouping menu items together

7.3 Creating individual menu items

7.4 The CAPI menu hierarchy

7.5 Disabling menu items

7.6 Popup menus for panes

8 Defining Interface Classes

8.1 The define-interface macro

8.2 An example interface

8.2.1 How the example works

8.3 Adapting the example

8.3.1 Adding menus

8.4 Connecting an interface to an application

9 Prompting for Input

9.1 Some simple dialogs

9.2 Prompting for values

9.2.1 Prompting for strings

9.2.2 Prompting for numbers

9.2.3 Prompting for an item in a list

9.2.4 Prompting for files

9.2.5 Prompting for fonts

9.2.6 Prompting for colors

9.2.7 Prompting for Lisp objects

9.3 Dialog Owners

9.3.1 The default owner

9.3.2 Specifying the owner

9.4 Creating your own dialogs

9.4.1 Using display-dialog

9.4.2 Using popup-confirmer

10 Creating Your Own Panes

10.1 Displaying graphics

10.2 Receiving input from the user

10.3 Creating graphical objects

10.3.1 The implementation of graph panes

10.3.2 An example pinboard object

11 Graphics Ports

11.1 Introduction

11.1.1 The package

11.1.2 The system

11.1.3 Creating instances

11.2 Features

11.3 Graphics state

11.3.1 Setting the graphics state

11.4 Graphics state transforms

11.4.1 Generalized points

11.4.2 Drawing functions

11.5 Graphics state operation

11.6 Pixmap graphics ports

11.6.1 Relative drawing in pixmap graphics ports

11.7 Portable font descriptions

11.7.1 Font attributes and font descriptions

11.7.2 Fonts

11.8 Working with images

11.8.1 Supported image types

11.8.2 External images

11.8.2.1 Transparency

11.8.2.2 Converting an external image

11.8.3 Registering images

11.8.4 Loading images

11.8.5 Drawing images

11.8.6 Image access

12 The Color System

12.1 Introduction

12.2 Reading the color database

12.3 Color specs

12.4 Color aliases

12.5 Color models

12.6 Loading the color database

12.7 Defining new color models

13 Printing from the CAPI--the Hardcopy API

13.1 Printers

13.2 Printer definition files

13.3 PPD files

13.4 Print jobs

13.5 Handling pages--page on demand printing

13.6 Handling pages--page sequential printing

13.7 Printing a page

13.7.1 Establishing a page transform

13.8 Other printing functions

Index


LispWorks CAPI User Guide (Unix version) - 8 Apr 2005

NextPrevTopIndex