Skip to content

Commit c1801ad

Browse files
committed
Updated ui.h and the OS X and Linux binaries for Alpha 4.1. Need to wait for AppVeyor before we can add the Windows ones.
1 parent 9e7ee0d commit c1801ad

File tree

4 files changed

+8
-5
lines changed

4 files changed

+8
-5
lines changed

libui_darwin_amd64.a

-1.18 KB
Binary file not shown.

libui_linux_386.a

364 Bytes
Binary file not shown.

libui_linux_amd64.a

440 Bytes
Binary file not shown.

ui.h

+8-5
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ struct tm;
252252
typedef struct uiDateTimePicker uiDateTimePicker;
253253
#define uiDateTimePicker(this) ((uiDateTimePicker *) (this))
254254
// TODO document that tm_wday and tm_yday are undefined, and tm_isdst should be -1
255+
// TODO document that for both sides
256+
// TODO document time zone conversions or lack thereof
257+
// TODO for Time: define what values are returned when a part is missing
255258
_UI_EXTERN void uiDateTimePickerTime(uiDateTimePicker *d, struct tm *time);
256259
_UI_EXTERN void uiDateTimePickerSetTime(uiDateTimePicker *d, const struct tm *time);
257260
_UI_EXTERN void uiDateTimePickerOnChanged(uiDateTimePicker *d, void (*f)(uiDateTimePicker *, void *), void *data);
@@ -560,12 +563,12 @@ _UI_EXTERN uiAttribute *uiNewSizeAttribute(double size);
560563
_UI_EXTERN double uiAttributeSize(const uiAttribute *a);
561564

562565
// uiTextWeight represents possible text weights. These roughly
563-
// map to the OSx2 text weight field of TrueType and OpenType
566+
// map to the OS/2 text weight field of TrueType and OpenType
564567
// fonts, or to CSS weight numbers. The named constants are
565568
// nominal values; the actual values may vary by font and by OS,
566569
// though this isn't particularly likely. Any value between
567-
// uiTextWeightMinimum and uiDrawTextWeightMaximum,
568-
// inclusive, is allowed.
570+
// uiTextWeightMinimum and uiTextWeightMaximum, inclusive,
571+
// is allowed.
569572
//
570573
// Note that due to restrictions in early versions of Windows, some
571574
// fonts have "special" weights be exposed in many programs as
@@ -1141,7 +1144,7 @@ _UI_EXTERN uiGrid *uiNewGrid(void);
11411144
// resolution; this matches the current expectations of some
11421145
// desktop systems at the time of writing (mid-2018)
11431146
//
1144-
// uiImage is very simple: it only supports non-premultiplied 32-bit
1147+
// uiImage is very simple: it only supports premultiplied 32-bit
11451148
// RGBA images, and libui does not provide any image file loading
11461149
// or image format conversion utilities on top of that.
11471150
typedef struct uiImage uiImage;
@@ -1158,7 +1161,7 @@ _UI_EXTERN uiImage *uiNewImage(double width, double height);
11581161
_UI_EXTERN void uiFreeImage(uiImage *i);
11591162

11601163
// uiImageAppend adds a representation to the uiImage.
1161-
// pixels should point to a byte array of non-premultiplied pixels
1164+
// pixels should point to a byte array of premultiplied pixels
11621165
// stored in [R G B A] order (so ((uint8_t *) pixels)[0] is the R of the
11631166
// first pixel and [3] is the A of the first pixel). pixelWidth and
11641167
// pixelHeight is the size *in pixels* of the image, and pixelStride is

0 commit comments

Comments
 (0)