Blender V2.61 - r43446
Defines | Functions

buttons_header.c File Reference

#include <string.h>
#include <stdio.h>
#include "BLI_blenlib.h"
#include "BLI_utildefines.h"
#include "BLF_translation.h"
#include "BKE_context.h"
#include "ED_screen.h"
#include "ED_types.h"
#include "DNA_object_types.h"
#include "UI_interface.h"
#include "UI_resources.h"
#include "UI_view2d.h"
#include "buttons_intern.h"

Go to the source code of this file.

Defines

#define B_CONTEXT_SWITCH   101
#define B_BUTSPREVIEW   102
#define BUT_UNIT_X   (UI_UNIT_X+2)
#define BUTTON_HEADER_CTX(_ctx, _icon, _tip)

Functions

static void set_texture_context (bContext *C, SpaceButs *sbuts)
static void do_buttons_buttons (bContext *C, void *UNUSED(arg), int event)
void buttons_header_buttons (const bContext *C, ARegion *ar)

Detailed Description

Definition in file buttons_header.c.


Define Documentation

#define B_BUTSPREVIEW   102

Definition at line 55 of file buttons_header.c.

Referenced by do_buttons_buttons().

#define B_CONTEXT_SWITCH   101

Definition at line 54 of file buttons_header.c.

Referenced by do_buttons_buttons().

#define BUT_UNIT_X   (UI_UNIT_X+2)

Definition at line 100 of file buttons_header.c.

Referenced by buttons_header_buttons().

#define BUTTON_HEADER_CTX (   _ctx,
  _icon,
  _tip 
)
Value:
if(sbuts->pathflag & (1<<_ctx)) { \
        but= uiDefIconButS(block, ROW, B_CONTEXT_SWITCH, _icon, xco+=BUT_UNIT_X, yco, BUT_UNIT_X, UI_UNIT_Y, &(sbuts->mainb), 0.0, (float)_ctx, 0, 0, TIP_(_tip)); \
        uiButClearFlag(but, UI_BUT_UNDO); \
    } \

Referenced by buttons_header_buttons().


Function Documentation

void buttons_header_buttons ( const bContext C,
ARegion ar 
)
static void do_buttons_buttons ( bContext C,
void *  UNUSEDarg,
int  event 
) [static]
static void set_texture_context ( bContext C,
SpaceButs sbuts 
) [static]