Layer | AV_Layer |
Object | AVSys |
AVSys provides various system-wide utilities, including setting the cursor shape, getting the current cursor, and beeping.
Enumeration | ||
---|---|---|
AVSysIconType
Icon types for AVSysGetIconFromFilename() and so on.
|
Method | ||
---|---|---|
char* AVSysAllocTimeStringFromTimeRec(ASTimeRecP timeRec)
Given an ASTimeRecP, it gets a string representing the date and time. This routine is locale-friendly.
|
||
Beeps.
|
||
AVCursor AVSysGetCursor()
Gets the current cursor. Use this method when you want to change the cursor temporarily and be able to restore it to its current shape.
|
||
Gets an icon of the specified type from the specified file.
|
||
AVIcon AVSysGetIconFromMimeType(const char* mimeType, AVSysIconType itype)
Gets an icon of the specified type from the specified MIME type.
|
||
Gets an icon of the specified type from the specified type and creator (for Mac OS).
|
||
AVFlagBits32 AVSysGetModifiers()
Gets a flag indicating which modifier keys are currently being pressed.
|
||
AVCursor AVSysGetStandardCursor(ASInt32 cursorID)
Gets the specified cursor. The cursor can subsequently be displayed using AVSysSetCursor().
|
||
ASBool AVSysGetUsePenForInput()
Gets the value of the UsePenForInput user preference attribute (currently unused).
|
||
ASBool AVSysMouseIsStillDown()
Tests whether the mouse button is still being pressed.
|
||
void AVSysSetCursor(AVCursor cursor)
Sets the cursor to the specified AVCursor.
|
||
Turns the wait cursor on or off. Unlike AVSysGetCursor(), AVSysSetWaitCursor() ensures that the wait cursor stays on until another call to AVSysSetWaitCursor() is made to turn it off, or the time limit is reached. When using this call to turn on the wait cursor, you must ensure that another call will be made to turn it back off.
|
||
Given an ASTimeRecP, it sets the ASText object passed in to the string representing the date and time. This routine is locale-friendly.
|
||
Query the state of the mouse buttons in a manner appropriate for click-drag operations. This is similar to AVSysMouseStillDown(), but can be used to query the state of the mouse even while it is up.
|
AVSysIconType |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
enum AVSysIconType {
kAVSysSmallIcon,
kAVSysLargeIcon,
kAVSysHugeIcon
}
File: AVExpT.h |
Line: 9699 |
AVSysAllocTimeStringFromTimeRec | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
char* AVSysAllocTimeStringFromTimeRec(ASTimeRecP timeRec)
Given an ASTimeRecP, it gets a string representing the date and time. This routine is locale-friendly.
The returned string is allocated using ASmalloc() and must be freed by the caller using ASfree().
Parameters
timeRec — | IN/OUT A pointer to an ASTimeRec structure. |
A string representing the date and time. It returns |
Since
File: AVProcs.h |
Line: 4099 |
AVSysBeep | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AVSysBeep(ASInt32 duration)
Beeps.
Parameters
duration — | IN/OUT Always pass 0. |
Since
File: AVProcs.h |
Line: 2503 |
AVSysGetCursor | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
AVCursor AVSysGetCursor()
Gets the current cursor. Use this method when you want to change the cursor temporarily and be able to restore it to its current shape.
ReturnsThe current cursor. |
See Also
Since
File: AVProcs.h |
Line: 2548 |
AVSysGetIconFromFilename | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
AVIcon AVSysGetIconFromFilename(ASText fname, AVSysIconType itype)
Gets an icon of the specified type from the specified file.
Parameters
fname — | ||
itype — | The icon type, kAVSysSmallIcon, or kAVSysLargeIcon. |
The icon object, or |
See Also
Since
File: AVProcs.h |
Line: 7613 |
AVSysGetIconFromMimeType | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
AVIcon AVSysGetIconFromMimeType(const char* mimeType, AVSysIconType itype)
Gets an icon of the specified type from the specified MIME type.
Parameters
mimeType — | The MIME type. |
|
itype — | The icon type, kAVSysSmallIcon, or kAVSysLargeIcon. |
The icon object, or |
See Also
Since
File: AVProcs.h |
Line: 7626 |
AVSysGetIconFromTypeAndCreator | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
AVIcon AVSysGetIconFromTypeAndCreator(ASUns32 type, ASUns32 creator, AVSysIconType itype)
Gets an icon of the specified type from the specified type and creator (for Mac OS).
Parameters
type — | ||
creator — | The creator value (which specifies a creator such as Acrobat or Photoshop). |
|
itype — | The icon type, kAVSysSmallIcon, or kAVSysLargeIcon. |
The icon object, or |
See Also
Since
File: AVProcs.h |
Line: 7642 |
AVSysGetModifiers | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
AVFlagBits32 AVSysGetModifiers()
Gets a flag indicating which modifier keys are currently being pressed.
ReturnsAn OR of the Modifier Keys. |
See Also
Since
File: AVProcs.h |
Line: 2486 |
AVSysGetStandardCursor | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Gets the specified cursor. The cursor can subsequently be displayed using AVSysSetCursor().
Parameters
cursorID — | IN/OUT The cursor to show. It must be one of the Predefined Cursors. |
The specified cursor. |
See Also
Since
File: AVProcs.h |
Line: 2516 |
AVSysGetUsePenForInput | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AVSysGetUsePenForInput()
Gets the value of the UsePenForInput
user preference attribute (currently unused).
Currently, always |
Since
File: AVProcs.h |
Line: 8843 |
AVSysMouseIsStillDown | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
ASBool AVSysMouseIsStillDown()
Tests whether the mouse button is still being pressed.
Returns
|
See Also
Since
File: AVProcs.h |
Line: 2496 |
AVSysSetCursor | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AVSysSetCursor(AVCursor cursor)
Sets the cursor to the specified AVCursor.
Parameters
cursor — | The cursor to display. Predefined platform-independent cursors can be obtained using AVSysGetStandardCursor(). Clients can use their own custom cursors as follows: Mac OS developers: 32/64-bit: Cast
|
File: AVProcs.h |
Line: 2537 |
AVSysSetWaitCursor | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
Turns the wait cursor on or off. Unlike AVSysGetCursor(), AVSysSetWaitCursor() ensures that the wait cursor stays on until another call to AVSysSetWaitCursor() is made to turn it off, or the time limit is reached. When using this call to turn on the wait cursor, you must ensure that another call will be made to turn it back off.
Parameters
turnOn — | IN/OUT |
|
timeLimit — | IN/OUT The time limit in ticks (1/60th of a second). If the time limit is reached, the wait cursor will be turned off as if you called |
See Also
Since
File: AVProcs.h |
Line: 6055 |
AVSysTimeASTextFromTimeRec | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
void AVSysTimeASTextFromTimeRec(ASTimeRecP timeRec, ASText text)
Given an ASTimeRecP, it sets the ASText object passed in to the string representing the date and time. This routine is locale-friendly.
Parameters
timeRec — | IN/OUT A pointer to an ASTimeRec structure. |
|
text — | The allocated ASText object this method will store result in. |
Since
File: AVProcs.h |
Line: 9801 |
AVSysTrackMouse | () |
Product availability: Acrobat, Reader |
Platform availability: Macintosh, Windows, UNIX |
AVFlagBits32 AVSysTrackMouse(ASBool* canceled, ASBool* committed, ASBool removeEvents)
Query the state of the mouse buttons in a manner appropriate for click-drag operations. This is similar to AVSysMouseStillDown(), but can be used to query the state of the mouse even while it is up.
Parameters
canceled — | Set to indicate whether the user cancelled the operation (for example, by pressing ESC). It can be |
|
committed — | Set to indicate whether the use pressed Enter to commit the operation. It can be |
|
removeEvents — | If |
An integer indicates the current state of the mouse buttons:
|
Since
File: AVProcs.h |
Line: 9666 |