Logo Search packages:      
Sourcecode: blender version File versions

GHOST_C-api.h File Reference


Detailed Description

Id
GHOST_C-api.h,v 1.6 2003/12/26 20:12:40 rwenzlaff Exp
***** BEGIN GPL/BL DUAL LICENSE BLOCK *****

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. The Blender Foundation also sells licenses for use in proprietary software under the Blender License. See http://www.blender.org/BL/ for information about this.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

The Original Code is Copyright (C) 2001-2002 by NaN Holding BV. All rights reserved.

The Original Code is: all of this file.

Contributor(s): none yet.

***** END GPL/BL DUAL LICENSE BLOCK *****

GHOST C-API function and type declarations. The C-API wraps the C++ objects with the

Definition in file GHOST_C-api.h.

#include "GHOST_Types.h"

Go to the source code of this file.

Defines

#define GHOST_DECLARE_HANDLE(name)   typedef struct name##__ { int unused; } *name

Typedefs

typedef int(* GHOST_EventCallbackProcPtr )(GHOST_EventHandle event, GHOST_TUserDataPtr userdata)

Functions

GHOST_TSuccess GHOST_ActivateWindowDrawingContext (GHOST_WindowHandle windowhandle)
GHOST_TSuccess GHOST_AddEventConsumer (GHOST_SystemHandle systemhandle, GHOST_EventConsumerHandle consumerhandle)
GHOST_WindowHandle GHOST_BeginFullScreen (GHOST_SystemHandle systemhandle, GHOST_DisplaySetting *setting, const int stereoVisual)
void GHOST_ClientToScreen (GHOST_WindowHandle windowhandle, GHOST_TInt32 inX, GHOST_TInt32 inY, GHOST_TInt32 *outX, GHOST_TInt32 *outY)
GHOST_TSuccess GHOST_ClipRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_RectangleHandle anotherrectanglehandle)
GHOST_EventConsumerHandle GHOST_CreateEventConsumer (GHOST_EventCallbackProcPtr eventCallback, GHOST_TUserDataPtr userdata)
GHOST_SystemHandle GHOST_CreateSystem (void)
GHOST_WindowHandle GHOST_CreateWindow (GHOST_SystemHandle systemhandle, char *title, GHOST_TInt32 left, GHOST_TInt32 top, GHOST_TUns32 width, GHOST_TUns32 height, GHOST_TWindowState state, GHOST_TDrawingContextType type, const int stereoVisual)
 GHOST_DECLARE_HANDLE (GHOST_EventConsumerHandle)
 GHOST_DECLARE_HANDLE (GHOST_RectangleHandle)
 GHOST_DECLARE_HANDLE (GHOST_EventHandle)
 GHOST_DECLARE_HANDLE (GHOST_WindowHandle)
 GHOST_DECLARE_HANDLE (GHOST_TimerTaskHandle)
 GHOST_DECLARE_HANDLE (GHOST_SystemHandle)
int GHOST_DispatchEvents (GHOST_SystemHandle systemhandle)
GHOST_TSuccess GHOST_DisposeEventConsumer (GHOST_EventConsumerHandle consumerhandle)
void GHOST_DisposeRectangle (GHOST_RectangleHandle rectanglehandle)
GHOST_TSuccess GHOST_DisposeSystem (GHOST_SystemHandle systemhandle)
GHOST_TSuccess GHOST_DisposeWindow (GHOST_SystemHandle systemhandle, GHOST_WindowHandle windowhandle)
GHOST_TSuccess GHOST_EndFullScreen (GHOST_SystemHandle systemhandle)
GHOST_TSuccess GHOST_GetButtonState (GHOST_SystemHandle systemhandle, GHOST_TButtonMask mask, int *isDown)
GHOST_RectangleHandle GHOST_GetClientBounds (GHOST_WindowHandle windowhandle)
GHOST_TSuccess GHOST_GetCursorPosition (GHOST_SystemHandle systemhandle, GHOST_TInt32 *x, GHOST_TInt32 *y)
GHOST_TStandardCursor GHOST_GetCursorShape (GHOST_WindowHandle windowhandle)
int GHOST_GetCursorVisibility (GHOST_WindowHandle windowhandle)
GHOST_TDrawingContextType GHOST_GetDrawingContextType (GHOST_WindowHandle windowhandle)
GHOST_TEventDataPtr GHOST_GetEventData (GHOST_EventHandle eventhandle)
GHOST_TUns64 GHOST_GetEventTime (GHOST_EventHandle eventhandle)
GHOST_TEventType GHOST_GetEventType (GHOST_EventHandle eventhandle)
GHOST_WindowHandle GHOST_GetEventWindow (GHOST_EventHandle eventhandle)
int GHOST_GetFullScreen (GHOST_SystemHandle systemhandle)
GHOST_TInt32 GHOST_GetHeightRectangle (GHOST_RectangleHandle rectanglehandle)
void GHOST_GetMainDisplayDimensions (GHOST_SystemHandle systemhandle, GHOST_TUns32 *width, GHOST_TUns32 *height)
GHOST_TUns64 GHOST_GetMilliSeconds (GHOST_SystemHandle systemhandle)
GHOST_TSuccess GHOST_GetModifierKeyState (GHOST_SystemHandle systemhandle, GHOST_TModifierKeyMask mask, int *isDown)
GHOST_TUns8 GHOST_GetNumDisplays (GHOST_SystemHandle systemhandle)
void GHOST_GetRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_TInt32 *l, GHOST_TInt32 *t, GHOST_TInt32 *r, GHOST_TInt32 *b)
GHOST_TVisibility GHOST_GetRectangleVisibility (GHOST_RectangleHandle rectanglehandle, GHOST_RectangleHandle anotherrectanglehandle)
GHOST_TimerProcPtr GHOST_GetTimerProc (GHOST_TimerTaskHandle timertaskhandle)
GHOST_TUserDataPtr GHOST_GetTimerTaskUserData (GHOST_TimerTaskHandle timertaskhandle)
char * GHOST_GetTitle (GHOST_WindowHandle windowhandle)
int GHOST_GetValid (GHOST_WindowHandle windowhandle)
GHOST_TInt32 GHOST_GetWidthRectangle (GHOST_RectangleHandle rectanglehandle)
GHOST_RectangleHandle GHOST_GetWindowBounds (GHOST_WindowHandle windowhandle)
GHOST_TWindowState GHOST_GetWindowState (GHOST_WindowHandle windowhandle)
GHOST_TUserDataPtr GHOST_GetWindowUserData (GHOST_WindowHandle windowhandle)
void GHOST_InsetRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_TInt32 i)
GHOST_TimerTaskHandle GHOST_InstallTimer (GHOST_SystemHandle systemhandle, GHOST_TUns64 delay, GHOST_TUns64 interval, GHOST_TimerProcPtr timerProc, GHOST_TUserDataPtr userData)
GHOST_TSuccess GHOST_InvalidateWindow (GHOST_WindowHandle windowhandle)
GHOST_TSuccess GHOST_IsEmptyRectangle (GHOST_RectangleHandle rectanglehandle)
GHOST_TSuccess GHOST_IsInsideRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_TInt32 x, GHOST_TInt32 y)
GHOST_TSuccess GHOST_IsValidRectangle (GHOST_RectangleHandle rectanglehandle)
int GHOST_ProcessEvents (GHOST_SystemHandle systemhandle, int waitForEvent)
GHOST_TSuccess GHOST_RemoveTimer (GHOST_SystemHandle systemhandle, GHOST_TimerTaskHandle timertaskhandle)
void GHOST_ScreenToClient (GHOST_WindowHandle windowhandle, GHOST_TInt32 inX, GHOST_TInt32 inY, GHOST_TInt32 *outX, GHOST_TInt32 *outY)
void GHOST_SetCenterRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_TInt32 cx, GHOST_TInt32 cy)
GHOST_TSuccess GHOST_SetClientHeight (GHOST_WindowHandle windowhandle, GHOST_TUns32 height)
GHOST_TSuccess GHOST_SetClientSize (GHOST_WindowHandle windowhandle, GHOST_TUns32 width, GHOST_TUns32 height)
GHOST_TSuccess GHOST_SetClientWidth (GHOST_WindowHandle windowhandle, GHOST_TUns32 width)
GHOST_TSuccess GHOST_SetCursorPosition (GHOST_SystemHandle systemhandle, GHOST_TInt32 x, GHOST_TInt32 y)
GHOST_TSuccess GHOST_SetCursorShape (GHOST_WindowHandle windowhandle, GHOST_TStandardCursor cursorshape)
GHOST_TSuccess GHOST_SetCursorVisibility (GHOST_WindowHandle windowhandle, int visible)
GHOST_TSuccess GHOST_SetCustomCursorShape (GHOST_WindowHandle windowhandle, GHOST_TUns8 bitmap[16][2], GHOST_TUns8 mask[16][2], int hotX, int hotY)
GHOST_TSuccess GHOST_SetCustomCursorShapeEx (GHOST_WindowHandle windowhandle, GHOST_TUns8 *bitmap, GHOST_TUns8 *mask, int sizex, int sizey, int hotX, int hotY, int fg_color, int bg_color)
GHOST_TSuccess GHOST_SetDrawingContextType (GHOST_WindowHandle windowhandle, GHOST_TDrawingContextType type)
void GHOST_SetRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_TInt32 l, GHOST_TInt32 t, GHOST_TInt32 r, GHOST_TInt32 b)
void GHOST_SetRectangleCenter (GHOST_RectangleHandle rectanglehandle, GHOST_TInt32 cx, GHOST_TInt32 cy, GHOST_TInt32 w, GHOST_TInt32 h)
void GHOST_SetTimerProc (GHOST_TimerTaskHandle timertaskhandle, GHOST_TimerProcPtr timerProc)
void GHOST_SetTimerTaskUserData (GHOST_TimerTaskHandle timertaskhandle, GHOST_TUserDataPtr userData)
void GHOST_SetTitle (GHOST_WindowHandle windowhandle, char *title)
GHOST_TSuccess GHOST_SetWindowOrder (GHOST_WindowHandle windowhandle, GHOST_TWindowOrder order)
GHOST_TSuccess GHOST_SetWindowState (GHOST_WindowHandle windowhandle, GHOST_TWindowState state)
void GHOST_SetWindowUserData (GHOST_WindowHandle windowhandle, GHOST_TUserDataPtr userdata)
GHOST_TSuccess GHOST_SwapWindowBuffers (GHOST_WindowHandle windowhandle)
void GHOST_UnionPointRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_TInt32 x, GHOST_TInt32 y)
void GHOST_UnionRectangle (GHOST_RectangleHandle rectanglehandle, GHOST_RectangleHandle anotherrectanglehandle)
int GHOST_ValidWindow (GHOST_SystemHandle systemhandle, GHOST_WindowHandle windowhandle)


Generated by  Doxygen 1.6.0   Back to index