[qwaq] Make the corner window controls 2x2

This makes them a little easier to grab but exposes a bug in Group
handleEvent when views partially overlap.
This commit is contained in:
Bill Currie 2020-03-23 22:27:08 +09:00
parent 1479880954
commit ba3efca8e5

View file

@ -33,17 +33,17 @@
topDrag = [[Button alloc] initWithRect: {{1, 0}, topDrag = [[Button alloc] initWithRect: {{1, 0},
{xlen - 2, 1}}]; {xlen - 2, 1}}];
topLeftDrag = [[Button alloc] initWithRect: {{0, 0}, topLeftDrag = [[Button alloc] initWithRect: {{0, 0},
{1, 1}}]; {2, 2}}];
topRightDrag = [[Button alloc] initWithRect: {{xlen - 1, 0}, topRightDrag = [[Button alloc] initWithRect: {{xlen - 2, 0},
{1, 1}}]; {2, 2}}];
leftDrag = [[Button alloc] initWithRect: {{0, 1}, leftDrag = [[Button alloc] initWithRect: {{0, 1},
{1, ylen - 2}}]; {1, ylen - 2}}];
rightDrag = [[Button alloc] initWithRect: {{xlen - 1, 1}, rightDrag = [[Button alloc] initWithRect: {{xlen - 1, 1},
{1, ylen - 2}}]; {1, ylen - 2}}];
bottomLeftDrag = [[Button alloc] initWithRect: {{0, ylen - 1}, bottomLeftDrag = [[Button alloc] initWithRect: {{0, ylen - 2},
{1, 1}}]; {2, 2}}];
bottomRightDrag = [[Button alloc] initWithRect: {{xlen - 1, ylen - 1}, bottomRightDrag = [[Button alloc] initWithRect: {{xlen - 2, ylen - 2},
{1, 1}}]; {2, 2}}];
bottomDrag = [[Button alloc] initWithRect: {{1, ylen - 1}, bottomDrag = [[Button alloc] initWithRect: {{1, ylen - 1},
{xlen - 2, 1}}]; {xlen - 2, 1}}];
[self addView: [topDrag setGrowMode: gfGrowHiX]]; [self addView: [topDrag setGrowMode: gfGrowHiX]];