Renamed display() to areaRepaintAll() and resolved a TODO on the Mac OS X side.

This commit is contained in:
Pietro Gagliardi 2014-08-09 21:27:28 -04:00
parent 9217250d5c
commit eec2f985b0
3 changed files with 5 additions and 5 deletions

View File

@ -31,12 +31,12 @@ func newArea(ab *areabase) Area {
func (a *area) SetSize(width, height int) {
a.width = width
a.height = height
// TODO different?
// set the frame size to set the area's effective size on the Cocoa side
C.moveControl(a._id, 0, 0, C.intptr_t(a.width), C.intptr_t(a.height))
}
func (a *area) RepaintAll() {
C.display(a._id)
C.areaRepaintAll(a._id)
}
//export areaView_drawRect

View File

@ -176,8 +176,8 @@ uintptr_t keyCode(id e)
return (uintptr_t) ([toNSEvent(e) keyCode]);
}
// TODO move to common_darwin.m?
void display(id view)
// TODO is this the best way? see if we can mark a rect for repaint
void areaRepaintAll(id view)
{
[toNSView(view) display];
}

View File

@ -102,6 +102,6 @@ extern intptr_t buttonNumber(id);
extern intptr_t clickCount(id);
extern uintptr_t pressedMouseButtons(void);
extern uintptr_t keyCode(id);
extern void display(id);
extern void areaRepaintAll(id);
#endif