e115c51452
* qt ui boilerplate * this kinda works * cleanup * render inside other widget * cleanup * more cleanup * Not needed * Handle click * Draw at 20Hz * create paint.hpp * move stuff around * update sidebar * Draw vision * this works again * add clickable settings button * Only collapse sidebar when started * always use qt on linux * fix width * scrollable area * talk to NetworkManager * code to add a connection * params toggles * small cleanup * add qt5 to dockerfile * Qt on mac * Add qt to release files * fix macos build * nore more ifdefs needed * add icons * make a bit nicer * Hide scrollbar Co-authored-by: Comma Device <device@comma.ai>
12 lines
566 B
C++
12 lines
566 B
C++
#pragma once
|
|
#include "ui.hpp"
|
|
|
|
|
|
void ui_draw_vision_alert(UIState *s, cereal::ControlsState::AlertSize va_size, int va_color,
|
|
const char* va_text1, const char* va_text2);
|
|
void ui_draw(UIState *s);
|
|
void ui_draw_image(NVGcontext *vg, float x, float y, float w, float h, int image, float alpha);
|
|
void ui_draw_rect(NVGcontext *vg, float x, float y, float w, float h, NVGcolor color, float r = 0, int width = 0);
|
|
void ui_draw_rect(NVGcontext *vg, float x, float y, float w, float h, NVGpaint &paint, float r = 0);
|
|
void ui_nvg_init(UIState *s);
|