Removed objc_msgSend_rect_bool().
This commit is contained in:
parent
ba2c1d6d20
commit
461b0cc023
|
@ -108,7 +108,7 @@ id _objc_msgSend_rect(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t
|
||||||
return objc_msgSend(obj, sel, OurRect());
|
return objc_msgSend(obj, sel, OurRect());
|
||||||
}
|
}
|
||||||
|
|
||||||
id _objc_msgSend_rect_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, BOOL b)
|
id objc_msgSend_rect_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, BOOL b)
|
||||||
{
|
{
|
||||||
return objc_msgSend(obj, sel, OurRect(), b);
|
return objc_msgSend(obj, sel, OurRect(), b);
|
||||||
}
|
}
|
||||||
|
|
|
@ -66,12 +66,6 @@ func objc_msgSend_rect(obj C.id, sel C.SEL, x int, y int, w int, h int) C.id {
|
||||||
C.int64_t(x), C.int64_t(y), C.int64_t(w), C.int64_t(h))
|
C.int64_t(x), C.int64_t(y), C.int64_t(w), C.int64_t(h))
|
||||||
}
|
}
|
||||||
|
|
||||||
func objc_msgSend_rect_bool(obj C.id, sel C.SEL, x int, y int, w int, h int, b C.BOOL) C.id {
|
|
||||||
return C._objc_msgSend_rect_bool(obj, sel,
|
|
||||||
C.int64_t(x), C.int64_t(y), C.int64_t(w), C.int64_t(h),
|
|
||||||
b)
|
|
||||||
}
|
|
||||||
|
|
||||||
func objc_msgSend_rect_uint_uint_bool(obj C.id, sel C.SEL, x int, y int, w int, h int, b uintptr, c uintptr, d C.BOOL) C.id {
|
func objc_msgSend_rect_uint_uint_bool(obj C.id, sel C.SEL, x int, y int, w int, h int, b uintptr, c uintptr, d C.BOOL) C.id {
|
||||||
return C._objc_msgSend_rect_uint_uint_bool(obj, sel,
|
return C._objc_msgSend_rect_uint_uint_bool(obj, sel,
|
||||||
C.int64_t(x), C.int64_t(y), C.int64_t(w), C.int64_t(h),
|
C.int64_t(x), C.int64_t(y), C.int64_t(w), C.int64_t(h),
|
||||||
|
|
|
@ -93,7 +93,7 @@ extern id objc_msgSend_int(id obj, SEL sel, intptr_t a);
|
||||||
m1(double, double)
|
m1(double, double)
|
||||||
|
|
||||||
m2(id_id, id, id)
|
m2(id_id, id, id)
|
||||||
extern id _objc_msgSend_rect_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, BOOL b);
|
extern id objc_msgSend_rect_bool(id obj, SEL sel, int64_t x, int64_t y, int64_t w, int64_t h, BOOL b);
|
||||||
extern id objc_msgSend_id_int(id obj, SEL sel, id a, intptr_t b);
|
extern id objc_msgSend_id_int(id obj, SEL sel, id a, intptr_t b);
|
||||||
extern id objc_msgSend_id_uint(id obj, SEL sel, id a, uintptr_t b);
|
extern id objc_msgSend_id_uint(id obj, SEL sel, id a, uintptr_t b);
|
||||||
m2(id_bool, id, BOOL)
|
m2(id_bool, id, BOOL)
|
||||||
|
|
|
@ -176,8 +176,8 @@ var classTypes = [nctypes]*classData{
|
||||||
C.objc_msgSend_bool(combobox, _setUsesDataSource, C.BOOL(C.NO))
|
C.objc_msgSend_bool(combobox, _setUsesDataSource, C.BOOL(C.NO))
|
||||||
} else {
|
} else {
|
||||||
combobox = objc_alloc(_NSPopUpButton)
|
combobox = objc_alloc(_NSPopUpButton)
|
||||||
combobox = objc_msgSend_rect_bool(combobox, _initWithFramePullsDown,
|
combobox = C.objc_msgSend_rect_bool(combobox, _initWithFramePullsDown,
|
||||||
0, 0, 100, 100,
|
C.int64_t(0), C.int64_t(0), C.int64_t(100), C.int64_t(100),
|
||||||
C.BOOL(C.NO))
|
C.BOOL(C.NO))
|
||||||
}
|
}
|
||||||
addControl(parentWindow, combobox)
|
addControl(parentWindow, combobox)
|
||||||
|
@ -455,8 +455,8 @@ func (s *sysData) setWindowSize(width int, height int) error {
|
||||||
uitask <- func() {
|
uitask <- func() {
|
||||||
// we need to get the top left point
|
// we need to get the top left point
|
||||||
r := C.objc_msgSend_stret_rect_noargs(s.id, _frame)
|
r := C.objc_msgSend_stret_rect_noargs(s.id, _frame)
|
||||||
objc_msgSend_rect_bool(s.id, _setFrameDisplay,
|
C.objc_msgSend_rect_bool(s.id, _setFrameDisplay,
|
||||||
int(r.x), int(r.y), width, height,
|
C.int64_t(r.x), C.int64_t(r.y), C.int64_t(width), C.int64_t(height),
|
||||||
C.BOOL(C.YES)) // TODO set to NO to prevent subviews from being redrawn before they are resized?
|
C.BOOL(C.YES)) // TODO set to NO to prevent subviews from being redrawn before they are resized?
|
||||||
ret <- struct{}{}
|
ret <- struct{}{}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue