Working on core-text binding

db4
Slava Pestov 2009-01-16 19:11:48 -06:00
parent c0362a57db
commit a25e251329
4 changed files with 21 additions and 0 deletions

View File

@ -56,4 +56,10 @@ FUNCTION: void CGContextSetRGBFillColor (
CGFloat green,
CGFloat blue,
CGFloat alpha
) ;
FUNCTION: void CGContextSetTextPosition (
CGContextRef c,
CGFloat x,
CGFloat y
) ;

View File

@ -0,0 +1 @@
Slava Pestov

View File

@ -0,0 +1,4 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: tools.test core-text ;
IN: core-text.tests

View File

@ -0,0 +1,10 @@
! Copyright (C) 2009 Slava Pestov.
! See http://factorcode.org/license.txt for BSD license.
USING: alien.syntax core-foundation.attributed-strings ;
IN: core-text
TYPEDEF: void* CTLineRef
FUNCTION: CTLineRef CTLineCreateWithAttributedString ( CFAttributedStringRef string ) ;
FUNCTION: void CTLineDraw ( CTLineRef line, CGContextRef context ) ;