Commit Graph

10 Commits

Author SHA1 Message Date
Allan Odgaard
65c9594ff6 fixup! Let cf::to_s(NULL) return NULL_STR
Incase of an empty string CFStringGetBytes() returns 0 which we treated as an error. This caused empty strings to be turned into the NULL_STR placeholder.
2012-09-17 11:06:57 +02:00
Allan Odgaard
04272337ae Let cf::to_s(NULL) return NULL_STR
This was previously undefined. We also return NULL_STR when converting the CFString fails.
2012-09-12 18:30:37 +02:00
Allan Odgaard
b2acb02a7f Use std::function with cf::callback_t 2012-09-09 16:22:19 +02:00
Allan Odgaard
a3cedb5c58 Use std::function as callback type for setup_timer
There is a minor functional change in that the custom callback type uses event loop signaling that makes it safe to trigger the callback from a thread. This should however not be necessary for timers (which are all setup on the main thread).
2012-09-09 16:22:19 +02:00
Allan Odgaard
c154751045 Allow cf::color_t to be uninitialized 2012-09-08 01:00:41 +02:00
Allan Odgaard
cbe91ff831 Assume compiler support for explicit keyword
Since we require a fairly recent clang for other features, there is no reason to test for this one.
2012-08-29 14:27:35 +02:00
Jacob Bandes-Storch
e3aa997b06 Use libc++: replace std::tr1 with std 2012-08-28 13:30:20 +02:00
Jacob Bandes-Storch
66650f8190 Store component values in cf::color_t 2012-08-20 19:10:39 +02:00
jtbandes
4cc010c289 Helper function for getting CFError description 2012-08-11 23:04:00 -07:00
Allan Odgaard
9894969e67 Initial commit 2012-08-09 16:25:56 +02:00