Blender V2.61 - r43446
Defines | Functions | Variables

wm.c File Reference

#include <string.h>
#include <stddef.h>
#include "BLO_sys_types.h"
#include "DNA_windowmanager_types.h"
#include "GHOST_C-api.h"
#include "MEM_guardedalloc.h"
#include "BLI_utildefines.h"
#include "BLI_blenlib.h"
#include "BLI_ghash.h"
#include "BKE_blender.h"
#include "BKE_context.h"
#include "BKE_idprop.h"
#include "BKE_library.h"
#include "BKE_main.h"
#include "BKE_screen.h"
#include "BKE_report.h"
#include "BKE_global.h"
#include "WM_api.h"
#include "WM_types.h"
#include "wm_window.h"
#include "wm_event_system.h"
#include "wm_event_types.h"
#include "wm_draw.h"
#include "wm.h"
#include "ED_screen.h"

Go to the source code of this file.

Defines

#define MAX_OP_REGISTERED   32

Functions

void WM_operator_free (wmOperator *op)
static void wm_reports_free (wmWindowManager *wm)
void wm_operator_register (bContext *C, wmOperator *op)
void WM_operator_stack_clear (wmWindowManager *wm)
MenuTypeWM_menutype_find (const char *idname, int quiet)
int WM_menutype_add (MenuType *mt)
void WM_menutype_freelink (MenuType *mt)
void WM_menutype_init (void)
void WM_menutype_free (void)
void WM_keymap_init (bContext *C)
void WM_check (bContext *C)
void wm_clear_default_size (bContext *C)
void wm_add_default (bContext *C)
void wm_close_and_free (bContext *C, wmWindowManager *wm)
void wm_close_and_free_all (bContext *C, ListBase *wmlist)
void WM_main (bContext *C)

Variables

static GHashmenutypes_hash = NULL

Detailed Description

Definition in file wm.c.


Define Documentation

#define MAX_OP_REGISTERED   32

Definition at line 72 of file wm.c.

Referenced by wm_operator_register().


Function Documentation

void wm_add_default ( bContext C)
void WM_check ( bContext C)
void wm_clear_default_size ( bContext C)
void wm_close_and_free ( bContext C,
wmWindowManager wm 
)
void wm_close_and_free_all ( bContext C,
ListBase wmlist 
)

Definition at line 347 of file wm.c.

References BLI_remlink(), ListBase::first, MEM_freeN(), and wm_close_and_free().

Referenced by wm_window_match_do().

void WM_keymap_init ( bContext C)
void WM_main ( bContext C)

Definition at line 358 of file wm.c.

References wm_draw_update(), wm_event_do_handlers(), wm_event_do_notifiers(), and wm_window_process_events().

Referenced by main().

int WM_menutype_add ( MenuType mt)

Definition at line 172 of file wm.c.

References BLI_ghash_insert(), and MenuType::idname.

Referenced by node_menus_register(), and recent_files_menu_register().

MenuType* WM_menutype_find ( const char *  idname,
int  quiet 
) [read]

Definition at line 156 of file wm.c.

References BLI_ghash_lookup(), mt, and NULL.

Referenced by uiItemM(), uiPupMenuInvoke(), and wm_block_create_splash().

void WM_menutype_free ( void  )
void WM_menutype_freelink ( MenuType mt)

Definition at line 178 of file wm.c.

References BLI_ghash_remove(), MenuType::idname, MEM_freeN(), and NULL.

void WM_menutype_init ( void  )

Definition at line 184 of file wm.c.

References BLI_ghash_new(), BLI_ghashutil_strcmp(), and BLI_ghashutil_strhash().

Referenced by WM_init().

void WM_operator_free ( wmOperator op)
void wm_operator_register ( bContext C,
wmOperator op 
)
void WM_operator_stack_clear ( wmWindowManager wm)
static void wm_reports_free ( wmWindowManager wm) [static]

Variable Documentation

GHash* menutypes_hash = NULL [static]

Definition at line 154 of file wm.c.