From 76e39eac8cee2175ec62a191f7c91ca53857e80c Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Fri, 5 Mar 2021 18:07:48 -0500 Subject: more raleigh, including button and vbox widgets --- src/user/include/cxx/raleigh/util.h | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'src/user/include/cxx/raleigh/util.h') diff --git a/src/user/include/cxx/raleigh/util.h b/src/user/include/cxx/raleigh/util.h index d2ed13d..9142b69 100644 --- a/src/user/include/cxx/raleigh/util.h +++ b/src/user/include/cxx/raleigh/util.h @@ -5,11 +5,15 @@ #define RGB(R, G, B) ((_pixel_t){.r = 0x##R, .g = 0x##G, .b = 0x##B}) -struct coord { - uint32_t x; - uint32_t y; - coord(uint32_t x, uint32_t y); - coord(); -}; +namespace raleigh { + struct coord { + uint32_t x; + uint32_t y; + coord(uint32_t x, uint32_t y); + coord(); + }; + + void show_error_and_quitf(const char *fmt, ...) __attribute__ ((noreturn)); +} #endif \ No newline at end of file -- cgit v1.2.3