X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=vu_common.h;h=c9a62a876c60d65f76cf8dba2f8f88da8e972467;hb=707a1e373756a1989f2094ed8f6fd40253e3b74f;hp=118eed89468ab3ae6b0fa77db6b404a7ebbb29ba;hpb=4f44de2a24cb574bfe318f42f9ce6af5eb2fe4b3;p=nageru diff --git a/vu_common.h b/vu_common.h index 118eed8..c9a62a8 100644 --- a/vu_common.h +++ b/vu_common.h @@ -1,10 +1,10 @@ #ifndef _VU_COMMON_H #define _VU_COMMON_H 1 -#include +class QPainter; -double lufs_to_pos(float level_lu, int height); +double lufs_to_pos(float level_lu, int height, float min_level, float max_level); -void draw_vu_meter(QPainter &painter, int width, int height, int margin, bool is_on); +void draw_vu_meter(QPainter &painter, int width, int height, int horizontal_margin, double segment_margin, bool is_on, float min_level, float max_level, bool flip); #endif // !defined(_VU_COMMON_H)