Blender V2.61 - r43446
Functions | Variables

screen.c File Reference

#include "BLI_winstuff.h"
#include <string.h>
#include <stdio.h>
#include <math.h>
#include "MEM_guardedalloc.h"
#include "DNA_scene_types.h"
#include "DNA_screen_types.h"
#include "DNA_space_types.h"
#include "DNA_view3d_types.h"
#include "BLI_blenlib.h"
#include "BKE_screen.h"

Go to the source code of this file.

Functions

static void spacetype_free (SpaceType *st)
void BKE_spacetypes_free (void)
SpaceTypeBKE_spacetype_from_id (int spaceid)
ARegionTypeBKE_regiontype_from_id (SpaceType *st, int regionid)
const ListBaseBKE_spacetypes_list (void)
void BKE_spacetype_register (SpaceType *st)
void BKE_spacedata_freelist (ListBase *lb)
ARegionBKE_area_region_copy (SpaceType *st, ARegion *ar)
static void region_copylist (SpaceType *st, ListBase *lb1, ListBase *lb2)
void BKE_spacedata_copylist (ListBase *lb1, ListBase *lb2)
void BKE_spacedata_draw_locks (int set)
void BKE_area_region_free (SpaceType *st, ARegion *ar)
void BKE_screen_area_free (ScrArea *sa)
void free_screen (bScreen *sc)
unsigned int BKE_screen_visible_layers (bScreen *screen, Scene *scene)
ARegionBKE_area_find_region_type (ScrArea *sa, int type)
struct ScrAreaBKE_screen_find_big_area (struct bScreen *sc, const int spacetype, const short min)
void BKE_screen_view3d_sync (struct View3D *v3d, struct Scene *scene)
void BKE_screen_view3d_scene_sync (bScreen *sc)
void BKE_screen_view3d_main_sync (ListBase *screen_lb, Scene *scene)
float BKE_screen_view3d_zoom_to_fac (float camzoom)
float BKE_screen_view3d_zoom_from_fac (float zoomfac)

Variables

static ListBase spacetypes = {NULL, NULL}

Detailed Description

Definition in file screen.c.


Function Documentation

ARegion* BKE_area_find_region_type ( ScrArea sa,
int  type 
) [read]
ARegion* BKE_area_region_copy ( SpaceType st,
ARegion ar 
) [read]
void BKE_area_region_free ( SpaceType st,
ARegion ar 
)
ARegionType* BKE_regiontype_from_id ( SpaceType st,
int  regionid 
) [read]
void BKE_screen_area_free ( ScrArea sa)
struct ScrArea* BKE_screen_find_big_area ( struct bScreen sc,
const int  spacetype,
const short  min 
) [read]
void BKE_screen_view3d_main_sync ( ListBase screen_lb,
Scene scene 
)
void BKE_screen_view3d_scene_sync ( bScreen sc)
void BKE_screen_view3d_sync ( struct View3D v3d,
struct Scene scene 
)
float BKE_screen_view3d_zoom_from_fac ( float  zoomfac)

Definition at line 454 of file screen.c.

References M_SQRT2, and sqrtf.

Referenced by view3d_center_camera_exec(), and view3d_set_1_to_1_viewborder().

float BKE_screen_view3d_zoom_to_fac ( float  camzoom)

Definition at line 449 of file screen.c.

References M_SQRT2, and powf.

Referenced by camera_params_from_view3d(), StartKetsjiShell(), and viewmove_apply().

unsigned int BKE_screen_visible_layers ( bScreen screen,
Scene scene 
)
void BKE_spacedata_copylist ( ListBase lb1,
ListBase lb2 
)
void BKE_spacedata_draw_locks ( int  set)
void BKE_spacedata_freelist ( ListBase lb)
SpaceType* BKE_spacetype_from_id ( int  spaceid) [read]
void BKE_spacetype_register ( SpaceType st)
void BKE_spacetypes_free ( void  )

Definition at line 82 of file screen.c.

References BLI_freelistN(), ListBase::first, SpaceType::next, and spacetype_free().

Referenced by free_blender().

const ListBase* BKE_spacetypes_list ( void  ) [read]

Definition at line 117 of file screen.c.

References spacetypes.

Referenced by ED_spacetypes_init(), ED_spacetypes_keymap(), and screen_refresh_headersizes().

void free_screen ( bScreen sc)
static void region_copylist ( SpaceType st,
ListBase lb1,
ListBase lb2 
) [static]
static void spacetype_free ( SpaceType st) [static]

Variable Documentation

ListBase spacetypes = {NULL, NULL} [static]

Definition at line 53 of file screen.c.

Referenced by BKE_spacetypes_list(), ED_spacetypes_init(), and ED_spacetypes_keymap().