What's New in QuickTime 4.1

| Previous | Chapter Contents | Chapter Top |

The window class

A QuickTime movie is displayed in a window. You use the window class to set the location of the window in which a movie is displayed. Many operations that can be performed on a movie can also be performed on a window, such as save and close.

Class window: A window

Plural form:

windows

Elements:

movie by numeric index, by name

Properties:

class type class [r/o]

-- the class

name international text [r/o]

-- the title of the window

bounds bounding rectangle [r/o]

-- the boundary rectangle for the window

position point

-- the upper left coordinates of the window

index integer [r/o]

-- the number of the window

Here are some examples of how you'd use various properties of the window class:

-- set window position --

set the position of the front window to {200, 222}

-- get the windows bounds --

get the bounds of the front window

-- get window index --

get the index of the second window

-- get name window (all windows) --

get the name of the first window

get the name of every window

-- count all open movies --

count every movie


© 1999 Apple Computer, Inc.

| Previous | Chapter Contents | Chapter Top |