Migrated label.c and separator.c.

This commit is contained in:
Pietro Gagliardi 2016-04-22 20:03:10 -04:00
parent 1ada1b346c
commit b49091b897
2 changed files with 4 additions and 4 deletions

View File

@ -1,5 +1,5 @@
// 11 april 2015 // 11 april 2015
#include "uipriv_windows.h" #include "uipriv_windows.hpp"
struct uiLabel { struct uiLabel {
uiWindowsControl c; uiWindowsControl c;
@ -24,12 +24,12 @@ static void minimumSize(uiWindowsControl *c, uiWindowsSizing *d, intmax_t *width
char *uiLabelText(uiLabel *l) char *uiLabelText(uiLabel *l)
{ {
return uiWindowsUtilText(l->hwnd); return uiWindowsWindowText(l->hwnd);
} }
void uiLabelSetText(uiLabel *l, const char *text) void uiLabelSetText(uiLabel *l, const char *text)
{ {
uiWindowsUtilSetText(l->hwnd, text); uiWindowsWindowSetText(l->hwnd, text);
// changing the text might necessitate a change in the label's size // changing the text might necessitate a change in the label's size
uiWindowsControlQueueRelayout(uiWindowsControl(l)); uiWindowsControlQueueRelayout(uiWindowsControl(l));
} }

View File

@ -1,5 +1,5 @@
// 20 may 2015 // 20 may 2015
#include "uipriv_windows.h" #include "uipriv_windows.hpp"
// references: // references:
// - http://stackoverflow.com/questions/2892703/how-do-i-draw-separators // - http://stackoverflow.com/questions/2892703/how-do-i-draw-separators