diff options
author | Campbell Barton <ideasman42@gmail.com> | 2012-08-13 01:46:35 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2012-08-13 01:46:35 +0400 |
commit | cfb160c764b2bc65755b73ca42a60f7a5572e4f3 (patch) | |
tree | e2e3b77c1c25cede3568e8c97c1e08814fa248ad /source/blender/windowmanager | |
parent | 3c2b4107dee8efe3888bf7d03d64e2970db72676 (diff) |
style cleanup
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r-- | source/blender/windowmanager/WM_api.h | 13 | ||||
-rw-r--r-- | source/blender/windowmanager/WM_types.h | 28 |
2 files changed, 20 insertions, 21 deletions
diff --git a/source/blender/windowmanager/WM_api.h b/source/blender/windowmanager/WM_api.h index 55783c3b980..584790b4cda 100644 --- a/source/blender/windowmanager/WM_api.h +++ b/source/blender/windowmanager/WM_api.h @@ -37,7 +37,6 @@ * \todo document */ - /* dna-savable wmStructs here */ #include "DNA_windowmanager_types.h" #include "WM_keymap.h" @@ -83,7 +82,7 @@ void WM_check (struct bContext *C); struct wmWindow *WM_window_open (struct bContext *C, struct rcti *rect); - /* defines for 'type' WM_window_open_temp */ + /* defines for 'type' WM_window_open_temp */ #define WM_WINDOW_RENDER 0 #define WM_WINDOW_USERPREFS 1 #define WM_WINDOW_FILESEL 2 @@ -183,7 +182,7 @@ void WM_operator_free (struct wmOperator *op); void WM_operator_stack_clear(struct wmWindowManager *wm); struct wmOperatorType *WM_operatortype_find(const char *idnamem, int quiet); -struct GHashIterator *WM_operatortype_iter(void); +struct GHashIterator *WM_operatortype_iter(void); void WM_operatortype_append (void (*opfunc)(struct wmOperatorType*)); void WM_operatortype_append_ptr (void (*opfunc)(struct wmOperatorType*, void *), void *userdata); void WM_operatortype_append_macro_ptr (void (*opfunc)(struct wmOperatorType*, void *), void *userdata); @@ -311,10 +310,10 @@ struct wmJob *WM_jobs_get(struct wmWindowManager *wm, struct wmWindow *win, void int WM_jobs_test(struct wmWindowManager *wm, void *owner); float WM_jobs_progress(struct wmWindowManager *wm, void *owner); -char *WM_jobs_name(struct wmWindowManager *wm, void *owner); +char *WM_jobs_name(struct wmWindowManager *wm, void *owner); int WM_jobs_is_running(struct wmJob *); -void * WM_jobs_customdata_get(struct wmJob *); +void *WM_jobs_customdata_get(struct wmJob *); void WM_jobs_customdata_set(struct wmJob *, void *customdata, void (*free)(void *)); void WM_jobs_timer(struct wmJob *, double timestep, unsigned int note, unsigned int endnote); void WM_jobs_callbacks(struct wmJob *, @@ -331,8 +330,8 @@ void WM_jobs_stop_all(struct wmWindowManager *wm); int WM_jobs_has_running(struct wmWindowManager *wm); /* clipboard */ -char *WM_clipboard_text_get(int selection); -void WM_clipboard_text_set(char *buf, int selection); +char *WM_clipboard_text_get(int selection); +void WM_clipboard_text_set(char *buf, int selection); /* progress */ void WM_progress_set(struct wmWindow *win, float progress); diff --git a/source/blender/windowmanager/WM_types.h b/source/blender/windowmanager/WM_types.h index 8d7dc21d95b..91f93828235 100644 --- a/source/blender/windowmanager/WM_types.h +++ b/source/blender/windowmanager/WM_types.h @@ -454,28 +454,28 @@ typedef struct wmTabletData { typedef enum { /* motion progress, for modal handlers */ P_NOT_STARTED, - P_STARTING, // <-- - P_IN_PROGRESS, // <-- only these are sent for NDOF motion - P_FINISHING, // <-- + P_STARTING, /* <-- */ + P_IN_PROGRESS, /* <-- only these are sent for NDOF motion*/ + P_FINISHING, /* <-- */ P_FINISHED - } wmProgress; +} wmProgress; typedef struct wmNDOFMotionData { /* awfully similar to GHOST_TEventNDOFMotionData... */ - // Each component normally ranges from -1 to +1, but can exceed that. - // These use blender standard view coordinates, with positive rotations being CCW about the axis. + /* Each component normally ranges from -1 to +1, but can exceed that. + * These use blender standard view coordinates, with positive rotations being CCW about the axis. */ union { - float tvec[3]; // translation + float tvec[3]; /* translation */ struct { float tx, ty, tz; }; - }; + }; union { - float rvec[3]; // rotation: + float rvec[3]; /* rotation: */ struct { float rx, ry, rz; }; - }; - // axis = (rx,ry,rz).normalized - // amount = (rx,ry,rz).magnitude [in revolutions, 1.0 = 360 deg] - float dt; // time since previous NDOF Motion event - wmProgress progress; // is this the first event, the last, or one of many in between? + }; + /* axis = (rx,ry,rz).normalized */ + /* amount = (rx,ry,rz).magnitude [in revolutions, 1.0 = 360 deg] */ + float dt; /* time since previous NDOF Motion event */ + wmProgress progress; /* is this the first event, the last, or one of many in between? */ } wmNDOFMotionData; typedef struct wmTimer { |