stlab.adobe.com Adobe Systems Incorporated

cursor.hpp

Go to the documentation of this file.
00001 /*
00002     Copyright 2005-2007 Adobe Systems Incorporated
00003     Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
00004     or a copy at http://stlab.adobe.com/licenses.html)
00005 */
00006 
00007 /****************************************************************************************************/
00008 
00009 #ifndef ADOBE_CURSOR_HPP
00010 #define ADOBE_CURSOR_HPP
00011 
00012 /****************************************************************************************************/
00013 
00014 typedef struct _opaque_adobe_cursor_t* adobe_cursor_t;
00015 
00016 /****************************************************************************************************/
00017 
00018 // Allocation and deallocation of cursors. Cursor will be loaded relative to the resource root path.
00019 adobe_cursor_t make_cursor(const char* cursor_path, float hot_spot_x, float hot_spot_y);
00020 void           delete_cursor(adobe_cursor_t cursor);
00021 
00022 // Stack-based cursor manipulation; you are still responsible for deleting the cursors you 
00023 // push and pop here; these functions do no memory management.
00024 void           push_cursor(adobe_cursor_t cursor);
00025 adobe_cursor_t pop_cursor();
00026 
00027 // Flushes any stack and sets the cursor to the arrow cursor-- be sure you still have
00028 // references to all your cursors so you can delete them from memory!
00029 void           reset_cursor();
00030 
00031 /****************************************************************************************************/
00032 
00033 // ADOBE_CURSOR_HPP
00034 #endif
00035 
00036 /****************************************************************************************************/

Copyright © 2006-2007 Adobe Systems Incorporated.

Use of this website signifies your agreement to the Terms of Use and Online Privacy Policy.

Search powered by Google