[Previous] [Contents] [Index] [Next]

About This Reference

Al ¦ Ap ¦ mbstr ¦ Pd ¦ Pf ¦ Pg ¦ Ph ¦ Pi ¦ Pm ¦ Pp ¦ Pt ¦ Px ¦ Rt ¦ wc


Note: If you're familiar with earlier versions of Photon, you should read:

to find out how the libraries have changed in this release.


The Photon Library Reference accompanies the Photon Development System and is intended for application developers. It describes the data types, structures, and functions that are defined in the Photon API.

This reference contains the following chapters:


Note:
  • For functions that deal with specific widgets, see the Widget Reference.
  • In general, the Photon libraries aren't thread-safe. For information on using Photon and threads, see "Threads" in the Lengthy Operations chapter of the Photon Programmer's Guide.

To use the datatypes and functions in an application:

What's new in Photon for QNX 6.1

Patch A

New entries:

New content in the docs

Deprecated functions and data types

Other changes

PhWindowQueryVisible()
Ph_QUERY_CONSOLE and Ph_QUERY_WORKSPACE are new bits for the flags argument. Ph_QUERY_CONSOLE is the default value.

What's new in Photon for QNX 6.0

New functionality

Font names

An API for handling font names in an organized, portable way has been added. Previously, we recommended you address a font by the "stem name" supplied by the font manager (e.g. helv12). This approach is no longer recommended, since stem names aren't guaranteed to be static. This is especially true when new font technology is added to the Photon font subsystem. The new API provides an interface that eliminates the need to recode in the future. It includes:

New content in the docs

Al -- PhAB Translation

These new functions support language and message databases:

Ap -- PhAB

New:

These functions have been renamed; you should use the new name, although applications that use the old name will still work:

Deprecated:

The prototype has changed for:

mbstr -- Multibyte-Character

New:

Pd -- Draw Context

New:

Pf -- Font Server

New:

Deprecated:

Pg -- Graphics

New:

Other new features:

PgSetDrawMode()
New drawing modes.

Ph -- Photon

New:

Other changes:

PhEvent_t
Ph_EV_BUT_RELEASE events have a new subtype, Ph_EV_RELEASE_OUTBOUND.
PhInitDrag()
The prototype has changed; the ptrpos and cursor arguments have been added.
PhMakeTransBitmap()
This function now supports all image types currently supported by Photon. The meaning of the trans_color argument depends on the image type.

Pi -- Images

These new functions support image operations:

Pp -- Printing

New functions:

Other changes:

PpPrintWidget()
You no longer need to call PtFlush() after calling this function.

Pt -- Widget toolkit

New:

Deprecated:

These functions have been renamed; you should use the new name, although applications that use the old name will still work:

Other changes:

PtCreateWidget()
The parent argument has changed. It can now be a pointer to the parent widget or one of:
PtFileSelection()
This function can select directories as well as files. Enable directory selection with the Pt_FSDIALOG_SELECT_DIRS flag. Existing directories can be selected with btn1 (the Open button).

PtFileSelection() can create and delete directories and delete files. You can create new directories at any time by pressing the New button. When the PtFileSel widget has focus, two new hotkeys are activated: the Insert key creates a new directory just like the New Directory button, and the Delete key removes the currently selected item.

The info structure has the following new members:

New flags:

PtModalEnd()
The prototype has changed; this function no longer takes as an argument the value returned by PtModalStart().
PtModalStart()
No longer returns anything.
PtRectIntersect()
Replaced by PhRectIntersect() --
PtRectUnion()
Replaced by PhRectUnion() --

Px -- Extended

PxCRC()
Replaced by PtCRC().
PxHelpQuit()
Replaced by PtHelpQuit()
PxHelpSearch()
Replaced by PtHelpSearch()
PxHelpTopic()
Replaced by PtHelpTopic()
PxHelpTopicRoot()
Replaced by PtHelpTopicRoot()
PxHelpTopicTree()
Replaced by PtHelpTopicTree()
PxHelpUrl()
Replaced by PtHelpUrl()
PxHelpUrlRoot()
Replaced by PtHelpUrlRoot()
PxLoadImage()
If PX_TRANSPARENT is set in the flags member of the PxMethods_t structure, PxLoadImage() makes the image transparent, using the detected transparent color and the image's chroma scheme. There's no need to set the transparent member of this structure -- it's deprecated.
PxTranslateUnknown()
Control how unknown encodings are handled

You no longer need to include <photon/PxHelp.h> when using the help functions.

Rt -- Realtime

New:

Corrections

Pg -- Graphics

PgDrawImage(), PgDrawImagemx()
Instead of using this function, we recommend using a PhImage_t structure and calling PgDrawPhImagemx().
PgDrawTImage(), PgDrawTImagemx()
Instead of using this function, we recommend using a PhImage_t structure and calling PgDrawPhImagemx().

Ph -- Photon

PhMakeTransBitmap()
Use PgDrawPhImagemx() to draw a transparent image.

[Previous] [Contents] [Index] [Next]