salnativewidgets.cxx (bde8a4bd) | salnativewidgets.cxx (24a22e85) |
---|---|
1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 696 unchanged lines hidden (view full) --- 705 { 706 // FIXME: a value of kThemeDisclosureLeft 707 // should draw a theme compliant left disclosure triangle 708 // sadly this does not seem to work, so we'll draw a left 709 // grey equilateral triangle here ourselves. 710 // Perhaps some other HIThemeButtonDrawInfo setting would do the trick ? 711 712 CGContextSetShouldAntialias( mrContext, true ); | 1/************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance --- 696 unchanged lines hidden (view full) --- 705 { 706 // FIXME: a value of kThemeDisclosureLeft 707 // should draw a theme compliant left disclosure triangle 708 // sadly this does not seem to work, so we'll draw a left 709 // grey equilateral triangle here ourselves. 710 // Perhaps some other HIThemeButtonDrawInfo setting would do the trick ? 711 712 CGContextSetShouldAntialias( mrContext, true ); |
713 float aGrey[] = { 0.45, 0.45, 0.45, 1.0 }; | 713 CGFloat aGrey[] = { 0.45, 0.45, 0.45, 1.0 }; |
714 CGContextSetFillColor( mrContext, aGrey ); 715 CGContextBeginPath( mrContext ); | 714 CGContextSetFillColor( mrContext, aGrey ); 715 CGContextBeginPath( mrContext ); |
716 float x = rc.origin.x + rc.size.width; 717 float y = rc.origin.y; | 716 CGFloat x = rc.origin.x + rc.size.width; 717 CGFloat y = rc.origin.y; |
718 CGContextMoveToPoint( mrContext, x, y ); 719 y += rc.size.height; 720 CGContextAddLineToPoint( mrContext, x, y ); 721 x -= rc.size.height * 0.866; // cos( 30 degree ) is approx. 0.866 722 y -= rc.size.height/2; 723 CGContextAddLineToPoint( mrContext, x, y ); 724 CGContextDrawPath( mrContext, kCGPathEOFill ); 725 } --- 797 unchanged lines hidden --- | 718 CGContextMoveToPoint( mrContext, x, y ); 719 y += rc.size.height; 720 CGContextAddLineToPoint( mrContext, x, y ); 721 x -= rc.size.height * 0.866; // cos( 30 degree ) is approx. 0.866 722 y -= rc.size.height/2; 723 CGContextAddLineToPoint( mrContext, x, y ); 724 CGContextDrawPath( mrContext, kCGPathEOFill ); 725 } --- 797 unchanged lines hidden --- |