Remove useless whitespaces.
This commit is contained in:
parent
c29f0c525c
commit
65818a08da
9 changed files with 50 additions and 50 deletions
|
@ -44,7 +44,7 @@
|
|||
RECT rc;
|
||||
SetParent(child->widget, widget);
|
||||
GetWindowRect(child->widget, &rc);
|
||||
|
||||
|
||||
og_box_child_t *newChild = malloc(sizeof(og_box_child_t));
|
||||
newChild->hwnd = child->widget;
|
||||
newChild->expand = expand;
|
||||
|
@ -53,7 +53,7 @@
|
|||
newChild->originalSize = (rc.bottom - rc.top);
|
||||
newChild->currentSize = (float)(newChild->originalSize + (newChild->padding << 1));
|
||||
newChild->next = NULL;
|
||||
|
||||
|
||||
if(firstBorn == NULL)
|
||||
firstBorn = newChild;
|
||||
else
|
||||
|
@ -62,7 +62,7 @@
|
|||
while(curr->next != NULL) curr = curr->next;
|
||||
curr->next = newChild;
|
||||
}
|
||||
|
||||
|
||||
[self OG_resizeChildren];
|
||||
}
|
||||
//----------------------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -74,7 +74,7 @@
|
|||
RECT rc;
|
||||
SetParent(child->widget, widget);
|
||||
GetWindowRect(child->widget, &rc);
|
||||
|
||||
|
||||
og_box_child_t *newChild = malloc(sizeof(og_box_child_t));
|
||||
newChild->hwnd = child->widget;
|
||||
newChild->expand = expand;
|
||||
|
@ -83,9 +83,9 @@
|
|||
newChild->originalSize = (rc.bottom - rc.top);
|
||||
newChild->currentSize = (float)(newChild->originalSize + (newChild->padding << 1));
|
||||
newChild->next = firstBorn;
|
||||
|
||||
|
||||
firstBorn = newChild;
|
||||
|
||||
|
||||
SetParent(child->widget, widget);
|
||||
[self OG_resizeChildren];
|
||||
}
|
||||
|
@ -94,12 +94,12 @@
|
|||
{
|
||||
RECT rc;
|
||||
og_box_child_t *curr;
|
||||
|
||||
|
||||
//get our available size
|
||||
GetClientRect(widget, &rc);
|
||||
int width = rc.right;
|
||||
int height = rc.bottom;
|
||||
|
||||
|
||||
//get total of childrens' heights
|
||||
int childOriginal = 0;
|
||||
curr = firstBorn;
|
||||
|
@ -108,11 +108,11 @@
|
|||
childOriginal += (curr->originalSize + (curr->padding << 1));
|
||||
curr = curr->next;
|
||||
}
|
||||
|
||||
|
||||
//how to divide our extra space
|
||||
int extra = height - childOriginal;
|
||||
float evenShare = 0.0f;
|
||||
|
||||
|
||||
if(extra <= 0)
|
||||
{
|
||||
curr = firstBorn;
|
||||
|
@ -152,7 +152,7 @@
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//assign new positions/heights
|
||||
float y = 0;
|
||||
curr = firstBorn;
|
||||
|
@ -175,7 +175,7 @@
|
|||
[self OG_resizeChildren];
|
||||
return DefWindowProc(hwnd, msg, wparam, lparam);
|
||||
break;
|
||||
|
||||
|
||||
case WM_SIZING:
|
||||
[self OG_resizeChildren];
|
||||
return DefWindowProc(hwnd, msg, wparam, lparam);
|
||||
|
|
Reference in a new issue