Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2005-08-05 02:36:21 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-08-05 02:36:21 +0400
commit3367a030b3391c5dd0f61b615f64f8a0a8bde4f2 (patch)
treee4dce0c813fb5666ece8e083bd6269dbc3d3611c /source/blender/include/BIF_resources.h
parent9102983b5135d6a5c3e76bf9eea5df98269040a9 (diff)
- added UI_EMBOSSR option (rounded emboss)
- added support for vector icons, from user API side is just like using a regular icon... on icon side is defined by a function in resources.c instead of using the blenderbuttons png file. vector icons are much easier to add and scale properly. intent is that vector icons would be drawn in window coordinates which lets icon developers make the most beautiful icons, but this requires some tweaking of the interface drawing that I am not going to do atm. - changed BIF_draw_icon* to take coordinates of where to draw icon instead of using passed in raster position - switch modifier UI to using vector icons, and tweaked some position and style stuff. - replaced most uses of UI_EMBOSSX with UI_EMBOSS (do same thing, just there to confuse people I guess) After the window coordinate stuff is sorted out with vector icons it probably makes sense to move all non-photorealistic icons in blenderbuttons to vector form just so scaling goes better.
Diffstat (limited to 'source/blender/include/BIF_resources.h')
-rw-r--r--source/blender/include/BIF_resources.h20
1 files changed, 15 insertions, 5 deletions
diff --git a/source/blender/include/BIF_resources.h b/source/blender/include/BIF_resources.h
index 70aa35a03d2..dba837b59aa 100644
--- a/source/blender/include/BIF_resources.h
+++ b/source/blender/include/BIF_resources.h
@@ -299,9 +299,19 @@ typedef enum {
ICON_CURSOR,
ICON_ROTATECOLLECTION,
ICON_ROTATECENTER,
- ICON_ROTACTIVE
-
-#define BIFICONID_LAST (ICON_ROTACTIVE)
+ ICON_ROTACTIVE,
+
+ VICON_VIEW3D,
+ VICON_EDIT,
+ VICON_EDITMODE_DEHLT,
+ VICON_EDITMODE_HLT,
+ VICON_DISCLOSURE_TRI_RIGHT,
+ VICON_DISCLOSURE_TRI_DOWN,
+ VICON_MOVE_UP,
+ VICON_MOVE_DOWN,
+ VICON_X
+
+#define BIFICONID_LAST (VICON_X)
#define BIFNICONIDS (BIFICONID_LAST-BIFICONID_FIRST + 1)
} BIFIconID;
@@ -495,8 +505,8 @@ void BIF_load_ui_colors (void);
// icon API
int BIF_get_icon_width (BIFIconID icon);
int BIF_get_icon_height (BIFIconID icon);
-void BIF_draw_icon (BIFIconID icon);
-void BIF_draw_icon_blended (BIFIconID icon, int colorid, int shade);
+void BIF_draw_icon (float x, float y, BIFIconID icon);
+void BIF_draw_icon_blended (float x, float y, BIFIconID icon, int colorid, int shade);
/* only for buttons in theme editor! */
char *BIF_ThemeGetColorPtr(struct bTheme *btheme, int spacetype, int colorid);