Blender V2.61 - r43446
Classes | Defines | Typedefs | Functions | Variables

gpencil_undo.c File Reference

#include <stdlib.h>
#include <string.h>
#include "MEM_guardedalloc.h"
#include "DNA_gpencil_types.h"
#include "DNA_listBase.h"
#include "DNA_windowmanager_types.h"
#include "BKE_context.h"
#include "BKE_gpencil.h"
#include "BLI_listbase.h"
#include "ED_gpencil.h"
#include "WM_api.h"
#include "WM_types.h"
#include "gpencil_intern.h"

Go to the source code of this file.

Classes

struct  bGPundonode

Defines

#define MAXUNDONAME   64

Typedefs

typedef struct bGPundonode bGPundonode

Functions

int ED_gpencil_session_active (void)
int ED_undo_gpencil_step (bContext *C, int step, const char *name)
void gpencil_undo_init (bGPdata *gpd)
void gpencil_undo_push (bGPdata *gpd)
void gpencil_undo_finish (void)

Variables

static ListBase undo_nodes = {NULL, NULL}
static bGPundonodecur_node = NULL

Define Documentation

#define MAXUNDONAME   64

Definition at line 49 of file gpencil_undo.c.


Typedef Documentation

typedef struct bGPundonode bGPundonode

Function Documentation

int ED_gpencil_session_active ( void  )

Definition at line 61 of file gpencil_undo.c.

References ListBase::first, and NULL.

Referenced by ed_undo_step(), gp_draw_data(), gp_session_initdata(), and gpencil_draw_poll().

int ED_undo_gpencil_step ( bContext C,
int  step,
const char *  name 
)
void gpencil_undo_finish ( void  )
void gpencil_undo_init ( bGPdata gpd)

Definition at line 116 of file gpencil_undo.c.

References gpencil_undo_push().

Referenced by gp_session_initdata().

void gpencil_undo_push ( bGPdata gpd)

Variable Documentation

bGPundonode* cur_node = NULL [static]

Definition at line 59 of file gpencil_undo.c.

ListBase undo_nodes = {NULL, NULL} [static]

Definition at line 58 of file gpencil_undo.c.