Inheritance: TextLayoutBackendHandler
コード例 #1
0
ファイル: ContextBackendHandler.cs プロジェクト: wesreid/xwt
        public override void DrawTextLayout(object backend, TextLayout layout, double x, double y)
        {
            CGContext ctx = ((CGContextBackend)backend).Context;

            SetupContextForDrawing(ctx);
            MacTextLayoutBackendHandler.Draw(ctx, Toolkit.GetBackend(layout), x, y);
        }
コード例 #2
0
        public override void DrawTextLayout(object backend, TextLayout layout, double x, double y)
        {
            CGContext ctx = ((CGContextBackend)backend).Context;

            SetupContextForDrawing(ctx);
            var li = ApplicationContext.Toolkit.GetSafeBackend(layout);

            MacTextLayoutBackendHandler.Draw(ctx, li, x, y);
        }