Blender V2.61 - r43446
Defines | Functions | Variables

wm_cursors.c File Reference

#include <stdio.h>
#include <string.h>
#include "GHOST_C-api.h"
#include "BLO_sys_types.h"
#include "DNA_listBase.h"
#include "DNA_userdef_types.h"
#include "BKE_context.h"
#include "BKE_global.h"
#include "BKE_main.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm_cursors.h"

Go to the source code of this file.

Defines

#define BEGIN_CURSOR_BLOCK   {
#define END_CURSOR_BLOCK   }

Functions

static GHOST_TStandardCursor convert_cursor (int curs)
static void window_set_custom_cursor (wmWindow *win, unsigned char mask[16][2], unsigned char bitmap[16][2], int hotx, int hoty)
static void window_set_custom_cursor_ex (wmWindow *win, BCursor *cursor, int useBig)
void WM_cursor_set (wmWindow *win, int curs)
void WM_cursor_modal (wmWindow *win, int val)
void WM_cursor_restore (wmWindow *win)
void WM_cursor_wait (int val)
void WM_cursor_grab (wmWindow *win, int wrap, int hide, int *bounds)
void WM_cursor_ungrab (wmWindow *win)
int wm_cursor_arrow_move (wmWindow *win, wmEvent *event)
void WM_timecursor (wmWindow *win, int nr)
void wm_init_cursor_data (void)

Variables

static BCursorBlenderCursor [BC_NUMCURSORS]

Detailed Description

Definition in file wm_cursors.c.


Define Documentation

#define BEGIN_CURSOR_BLOCK   {

Definition at line 315 of file wm_cursors.c.

Referenced by wm_init_cursor_data().

#define END_CURSOR_BLOCK   }

Definition at line 316 of file wm_cursors.c.

Referenced by wm_init_cursor_data().


Function Documentation

static GHOST_TStandardCursor convert_cursor ( int  curs) [static]
static void window_set_custom_cursor ( wmWindow win,
unsigned char  mask[16][2],
unsigned char  bitmap[16][2],
int  hotx,
int  hoty 
) [static]

Definition at line 77 of file wm_cursors.c.

References GHOST_SetCustomCursorShape(), and wmWindow::ghostwin.

Referenced by WM_timecursor().

static void window_set_custom_cursor_ex ( wmWindow win,
BCursor cursor,
int  useBig 
) [static]
int wm_cursor_arrow_move ( wmWindow win,
wmEvent event 
)
void WM_cursor_grab ( wmWindow win,
int  wrap,
int  hide,
int *  bounds 
)
void WM_cursor_modal ( wmWindow win,
int  val 
)
void WM_cursor_restore ( wmWindow win)
void WM_cursor_set ( wmWindow win,
int  curs 
)
void WM_cursor_ungrab ( wmWindow win)
void WM_cursor_wait ( int  val)
void wm_init_cursor_data ( void  )
void WM_timecursor ( wmWindow win,
int  nr 
)

Variable Documentation

BCursor* BlenderCursor[BC_NUMCURSORS] [static]

Definition at line 102 of file wm_cursors.c.