Imlib2-Ruby 0.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/AUTHORS +41 -0
- data/COPYING +20 -0
- data/ChangeLog +280 -0
- data/MANIFEST +25 -0
- data/README +65 -0
- data/TODO +12 -0
- data/depend +1 -0
- data/doc/classes/Imlib2.html +151 -0
- data/doc/classes/Imlib2/Border.html +526 -0
- data/doc/classes/Imlib2/Border.src/M000094.html +34 -0
- data/doc/classes/Imlib2/Border.src/M000095.html +21 -0
- data/doc/classes/Imlib2/Border.src/M000098.html +23 -0
- data/doc/classes/Imlib2/Border.src/M000099.html +23 -0
- data/doc/classes/Imlib2/Border.src/M000100.html +23 -0
- data/doc/classes/Imlib2/Border.src/M000101.html +23 -0
- data/doc/classes/Imlib2/Border.src/M000102.html +23 -0
- data/doc/classes/Imlib2/Border.src/M000103.html +23 -0
- data/doc/classes/Imlib2/Border.src/M000104.html +23 -0
- data/doc/classes/Imlib2/Border.src/M000105.html +23 -0
- data/doc/classes/Imlib2/Cache.html +475 -0
- data/doc/classes/Imlib2/Cache.src/M000081.html +24 -0
- data/doc/classes/Imlib2/Cache.src/M000082.html +29 -0
- data/doc/classes/Imlib2/Cache.src/M000083.html +24 -0
- data/doc/classes/Imlib2/Cache.src/M000084.html +29 -0
- data/doc/classes/Imlib2/Cache.src/M000085.html +24 -0
- data/doc/classes/Imlib2/Cache.src/M000086.html +29 -0
- data/doc/classes/Imlib2/Cache.src/M000087.html +24 -0
- data/doc/classes/Imlib2/Cache.src/M000088.html +28 -0
- data/doc/classes/Imlib2/Cache.src/M000089.html +24 -0
- data/doc/classes/Imlib2/Cache.src/M000090.html +28 -0
- data/doc/classes/Imlib2/Cache.src/M000091.html +24 -0
- data/doc/classes/Imlib2/Cache.src/M000092.html +28 -0
- data/doc/classes/Imlib2/Cache.src/M000093.html +23 -0
- data/doc/classes/Imlib2/Color.html +115 -0
- data/doc/classes/Imlib2/Color/CmyaColor.html +598 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000001.html +27 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000002.html +21 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000005.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000006.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000007.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000008.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000009.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000010.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000011.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000012.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000013.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000014.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000015.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000016.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000017.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000018.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000019.html +23 -0
- data/doc/classes/Imlib2/Color/CmyaColor.src/M000020.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.html +606 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000061.html +27 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000062.html +21 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000065.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000066.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000067.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000068.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000069.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000070.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000071.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000072.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000073.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000074.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000075.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000076.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000077.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000078.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000079.html +23 -0
- data/doc/classes/Imlib2/Color/HlsaColor.src/M000080.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.html +602 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000021.html +27 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000022.html +21 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000025.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000026.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000027.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000028.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000029.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000030.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000031.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000032.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000033.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000034.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000035.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000036.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000037.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000038.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000039.html +23 -0
- data/doc/classes/Imlib2/Color/HsvaColor.src/M000040.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.html +598 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000041.html +27 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000042.html +21 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000045.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000046.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000047.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000048.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000049.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000050.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000051.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000052.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000053.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000054.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000055.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000056.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000057.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000058.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000059.html +23 -0
- data/doc/classes/Imlib2/Color/RgbaColor.src/M000060.html +23 -0
- data/doc/classes/Imlib2/ColorModifier.html +266 -0
- data/doc/classes/Imlib2/ColorModifier.src/M000414.html +23 -0
- data/doc/classes/Imlib2/ColorModifier.src/M000415.html +22 -0
- data/doc/classes/Imlib2/ColorModifier.src/M000416.html +23 -0
- data/doc/classes/Imlib2/ColorModifier.src/M000417.html +23 -0
- data/doc/classes/Imlib2/ColorModifier.src/M000418.html +23 -0
- data/doc/classes/Imlib2/ColorModifier.src/M000419.html +23 -0
- data/doc/classes/Imlib2/Context.html +2764 -0
- data/doc/classes/Imlib2/Context.src/M000121.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000122.html +22 -0
- data/doc/classes/Imlib2/Context.src/M000123.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000124.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000125.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000126.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000127.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000128.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000129.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000130.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000131.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000132.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000133.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000134.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000135.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000136.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000137.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000138.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000139.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000140.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000141.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000142.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000143.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000144.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000145.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000146.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000147.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000148.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000149.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000150.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000151.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000152.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000153.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000154.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000155.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000156.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000157.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000158.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000159.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000160.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000161.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000162.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000163.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000164.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000165.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000166.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000167.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000168.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000169.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000170.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000171.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000172.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000173.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000174.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000175.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000176.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000177.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000178.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000179.html +26 -0
- data/doc/classes/Imlib2/Context.src/M000180.html +26 -0
- data/doc/classes/Imlib2/Context.src/M000181.html +26 -0
- data/doc/classes/Imlib2/Context.src/M000182.html +26 -0
- data/doc/classes/Imlib2/Context.src/M000183.html +27 -0
- data/doc/classes/Imlib2/Context.src/M000184.html +27 -0
- data/doc/classes/Imlib2/Context.src/M000185.html +27 -0
- data/doc/classes/Imlib2/Context.src/M000186.html +27 -0
- data/doc/classes/Imlib2/Context.src/M000187.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000188.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000189.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000190.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000191.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000192.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000193.html +23 -0
- data/doc/classes/Imlib2/Context.src/M000194.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000195.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000196.html +25 -0
- data/doc/classes/Imlib2/Context.src/M000197.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000198.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000199.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000200.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000201.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000202.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000203.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000204.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000213.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000214.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000215.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000216.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000217.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000218.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000219.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000220.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000221.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000222.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000223.html +28 -0
- data/doc/classes/Imlib2/Context.src/M000224.html +28 -0
- data/doc/classes/Imlib2/Dir.html +106 -0
- data/doc/classes/Imlib2/Direction.html +164 -0
- data/doc/classes/Imlib2/Encoding.html +139 -0
- data/doc/classes/Imlib2/Error.html +112 -0
- data/doc/classes/Imlib2/Error/DeletedError.html +112 -0
- data/doc/classes/Imlib2/FileError.html +112 -0
- data/doc/classes/Imlib2/Filter.html +410 -0
- data/doc/classes/Imlib2/Filter.src/M000366.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000367.html +22 -0
- data/doc/classes/Imlib2/Filter.src/M000368.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000371.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000372.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000373.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000374.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000375.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000376.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000377.html +23 -0
- data/doc/classes/Imlib2/Filter.src/M000378.html +23 -0
- data/doc/classes/Imlib2/Font.html +1008 -0
- data/doc/classes/Imlib2/Font.src/M000379.html +28 -0
- data/doc/classes/Imlib2/Font.src/M000380.html +28 -0
- data/doc/classes/Imlib2/Font.src/M000381.html +22 -0
- data/doc/classes/Imlib2/Font.src/M000382.html +27 -0
- data/doc/classes/Imlib2/Font.src/M000383.html +27 -0
- data/doc/classes/Imlib2/Font.src/M000384.html +27 -0
- data/doc/classes/Imlib2/Font.src/M000385.html +28 -0
- data/doc/classes/Imlib2/Font.src/M000386.html +28 -0
- data/doc/classes/Imlib2/Font.src/M000387.html +28 -0
- data/doc/classes/Imlib2/Font.src/M000388.html +24 -0
- data/doc/classes/Imlib2/Font.src/M000389.html +24 -0
- data/doc/classes/Imlib2/Font.src/M000390.html +24 -0
- data/doc/classes/Imlib2/Font.src/M000391.html +24 -0
- data/doc/classes/Imlib2/Font.src/M000392.html +24 -0
- data/doc/classes/Imlib2/Font.src/M000393.html +24 -0
- data/doc/classes/Imlib2/Font.src/M000394.html +24 -0
- data/doc/classes/Imlib2/Font.src/M000395.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000396.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000397.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000398.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000399.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000400.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000401.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000402.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000403.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000404.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000405.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000406.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000407.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000408.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000409.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000410.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000411.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000412.html +23 -0
- data/doc/classes/Imlib2/Font.src/M000413.html +23 -0
- data/doc/classes/Imlib2/Gradient.html +208 -0
- data/doc/classes/Imlib2/Gradient.src/M000420.html +32 -0
- data/doc/classes/Imlib2/Gradient.src/M000421.html +23 -0
- data/doc/classes/Imlib2/Gradient.src/M000422.html +27 -0
- data/doc/classes/Imlib2/Image.html +4005 -0
- data/doc/classes/Imlib2/Image.src/M000225.html +26 -0
- data/doc/classes/Imlib2/Image.src/M000226.html +20 -0
- data/doc/classes/Imlib2/Image.src/M000227.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000228.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000229.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000230.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000231.html +26 -0
- data/doc/classes/Imlib2/Image.src/M000232.html +26 -0
- data/doc/classes/Imlib2/Image.src/M000233.html +26 -0
- data/doc/classes/Imlib2/Image.src/M000234.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000235.html +27 -0
- data/doc/classes/Imlib2/Image.src/M000236.html +27 -0
- data/doc/classes/Imlib2/Image.src/M000237.html +27 -0
- data/doc/classes/Imlib2/Image.src/M000238.html +28 -0
- data/doc/classes/Imlib2/Image.src/M000239.html +31 -0
- data/doc/classes/Imlib2/Image.src/M000240.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000241.html +26 -0
- data/doc/classes/Imlib2/Image.src/M000242.html +27 -0
- data/doc/classes/Imlib2/Image.src/M000243.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000244.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000245.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000246.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000247.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000248.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000249.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000250.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000251.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000252.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000253.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000254.html +25 -0
- data/doc/classes/Imlib2/Image.src/M000255.html +25 -0
- data/doc/classes/Imlib2/Image.src/M000256.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000257.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000258.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000259.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000260.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000261.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000262.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000263.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000264.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000265.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000266.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000267.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000268.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000269.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000270.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000271.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000272.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000273.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000274.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000275.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000276.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000277.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000278.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000279.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000280.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000281.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000282.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000283.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000284.html +33 -0
- data/doc/classes/Imlib2/Image.src/M000285.html +33 -0
- data/doc/classes/Imlib2/Image.src/M000286.html +33 -0
- data/doc/classes/Imlib2/Image.src/M000287.html +33 -0
- data/doc/classes/Imlib2/Image.src/M000288.html +41 -0
- data/doc/classes/Imlib2/Image.src/M000289.html +41 -0
- data/doc/classes/Imlib2/Image.src/M000290.html +41 -0
- data/doc/classes/Imlib2/Image.src/M000291.html +41 -0
- data/doc/classes/Imlib2/Image.src/M000292.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000293.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000294.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000295.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000296.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000297.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000298.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000299.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000300.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000301.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000302.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000303.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000304.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000305.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000306.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000307.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000308.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000309.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000310.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000311.html +34 -0
- data/doc/classes/Imlib2/Image.src/M000313.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000314.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000315.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000316.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000317.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000318.html +33 -0
- data/doc/classes/Imlib2/Image.src/M000319.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000320.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000321.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000322.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000323.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000324.html +30 -0
- data/doc/classes/Imlib2/Image.src/M000325.html +48 -0
- data/doc/classes/Imlib2/Image.src/M000326.html +28 -0
- data/doc/classes/Imlib2/Image.src/M000327.html +28 -0
- data/doc/classes/Imlib2/Image.src/M000328.html +28 -0
- data/doc/classes/Imlib2/Image.src/M000329.html +28 -0
- data/doc/classes/Imlib2/Image.src/M000330.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000331.html +29 -0
- data/doc/classes/Imlib2/Image.src/M000332.html +25 -0
- data/doc/classes/Imlib2/Image.src/M000333.html +25 -0
- data/doc/classes/Imlib2/Image.src/M000334.html +43 -0
- data/doc/classes/Imlib2/Image.src/M000335.html +43 -0
- data/doc/classes/Imlib2/Image.src/M000336.html +44 -0
- data/doc/classes/Imlib2/Image.src/M000337.html +44 -0
- data/doc/classes/Imlib2/Image.src/M000338.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000339.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000340.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000341.html +24 -0
- data/doc/classes/Imlib2/Image.src/M000342.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000343.html +21 -0
- data/doc/classes/Imlib2/Image.src/M000344.html +21 -0
- data/doc/classes/Imlib2/Image.src/M000345.html +31 -0
- data/doc/classes/Imlib2/Image.src/M000346.html +31 -0
- data/doc/classes/Imlib2/Image.src/M000347.html +28 -0
- data/doc/classes/Imlib2/Image.src/M000348.html +28 -0
- data/doc/classes/Imlib2/Image.src/M000349.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000350.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000351.html +32 -0
- data/doc/classes/Imlib2/Image.src/M000352.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000353.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000354.html +22 -0
- data/doc/classes/Imlib2/Image.src/M000355.html +23 -0
- data/doc/classes/Imlib2/Image.src/M000356.html +23 -0
- data/doc/classes/Imlib2/Op.html +134 -0
- data/doc/classes/Imlib2/Operation.html +134 -0
- data/doc/classes/Imlib2/Polygon.html +304 -0
- data/doc/classes/Imlib2/Polygon.src/M000114.html +26 -0
- data/doc/classes/Imlib2/Polygon.src/M000115.html +22 -0
- data/doc/classes/Imlib2/Polygon.src/M000116.html +23 -0
- data/doc/classes/Imlib2/Polygon.src/M000117.html +24 -0
- data/doc/classes/Imlib2/Polygon.src/M000118.html +24 -0
- data/doc/classes/Imlib2/Polygon.src/M000119.html +27 -0
- data/doc/classes/Imlib2/Polygon.src/M000120.html +27 -0
- data/doc/created.rid +1 -0
- data/doc/files/AUTHORS.html +213 -0
- data/doc/files/COPYING.html +132 -0
- data/doc/files/ChangeLog.html +844 -0
- data/doc/files/README.html +201 -0
- data/doc/files/TODO.html +141 -0
- data/doc/files/imlib2_c.html +102 -0
- data/doc/fr_class_index.html +49 -0
- data/doc/fr_file_index.html +32 -0
- data/doc/fr_method_index.html +448 -0
- data/doc/index.html +24 -0
- data/doc/rdoc-style.css +208 -0
- data/examples/checkerboard.rb +66 -0
- data/examples/fonts/yudit.ttf +0 -0
- data/examples/images/bill_gates.jpg +0 -0
- data/examples/images/clown.jpg +0 -0
- data/examples/oo-board.rb +90 -0
- data/examples/test_attach.rb +23 -0
- data/examples/test_font.rb +77 -0
- data/examples/test_imlib2.rb +121 -0
- data/examples/test_poly.rb +29 -0
- data/extconf.rb +22 -0
- data/imlib2.c +8183 -0
- data/imlib2.gemspec +39 -0
- metadata +494 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>new (Imlib2::ColorModifier)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre>/*
|
|
14
|
+
* Returns a new Imlib2::ColorModifier
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
* cmod = Imlib2::ColorModifier.new
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
VALUE cmod_new(VALUE klass) {
|
|
21
|
+
</pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>new (Imlib2::ColorModifier)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre>/*
|
|
14
|
+
* Imlib2::ColorModifier constructor
|
|
15
|
+
*
|
|
16
|
+
* This method takes no arguments.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
static VALUE cmod_init(VALUE self) {
|
|
20
|
+
</pre>
|
|
21
|
+
</body>
|
|
22
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>gamma= (Imlib2::ColorModifier)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre>/*
|
|
14
|
+
* Set the gamma value.
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
* cmod.gamma = 0.5
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
static VALUE cmod_gamma(VALUE self, VALUE gamma) {
|
|
21
|
+
</pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>brightness= (Imlib2::ColorModifier)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre>/*
|
|
14
|
+
* Set the brightness value.
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
* cmod.brightness = 2.0
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
static VALUE cmod_brightness(VALUE self, VALUE brightness) {
|
|
21
|
+
</pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>contrast= (Imlib2::ColorModifier)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre>/*
|
|
14
|
+
* Set the contrast value.
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
* cmod.contrast = 0.8
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
static VALUE cmod_contrast(VALUE self, VALUE contrast) {
|
|
21
|
+
</pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html>
|
|
7
|
+
<head>
|
|
8
|
+
<title>reset (Imlib2::ColorModifier)</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
|
|
11
|
+
</head>
|
|
12
|
+
<body class="standalone-code">
|
|
13
|
+
<pre>/*
|
|
14
|
+
* Reset the Imlib2::ColorModifier
|
|
15
|
+
*
|
|
16
|
+
* Example:
|
|
17
|
+
* cmod.reset
|
|
18
|
+
*
|
|
19
|
+
*/
|
|
20
|
+
static VALUE cmod_reset(VALUE self) {
|
|
21
|
+
</pre>
|
|
22
|
+
</body>
|
|
23
|
+
</html>
|
|
@@ -0,0 +1,2764 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
2
|
+
<!DOCTYPE html
|
|
3
|
+
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
4
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
5
|
+
|
|
6
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
7
|
+
<head>
|
|
8
|
+
<title>Class: Imlib2::Context</title>
|
|
9
|
+
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
|
10
|
+
<meta http-equiv="Content-Script-Type" content="text/javascript" />
|
|
11
|
+
<link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
|
|
12
|
+
<script type="text/javascript">
|
|
13
|
+
// <![CDATA[
|
|
14
|
+
|
|
15
|
+
function popupCode( url ) {
|
|
16
|
+
window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function toggleCode( id ) {
|
|
20
|
+
if ( document.getElementById )
|
|
21
|
+
elem = document.getElementById( id );
|
|
22
|
+
else if ( document.all )
|
|
23
|
+
elem = eval( "document.all." + id );
|
|
24
|
+
else
|
|
25
|
+
return false;
|
|
26
|
+
|
|
27
|
+
elemStyle = elem.style;
|
|
28
|
+
|
|
29
|
+
if ( elemStyle.display != "block" ) {
|
|
30
|
+
elemStyle.display = "block"
|
|
31
|
+
} else {
|
|
32
|
+
elemStyle.display = "none"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
return true;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
// Make codeblocks hidden by default
|
|
39
|
+
document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
|
|
40
|
+
|
|
41
|
+
// ]]>
|
|
42
|
+
</script>
|
|
43
|
+
|
|
44
|
+
</head>
|
|
45
|
+
<body>
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
<div id="classHeader">
|
|
50
|
+
<table class="header-table">
|
|
51
|
+
<tr class="top-aligned-row">
|
|
52
|
+
<td><strong>Class</strong></td>
|
|
53
|
+
<td class="class-name-in-header">Imlib2::Context</td>
|
|
54
|
+
</tr>
|
|
55
|
+
<tr class="top-aligned-row">
|
|
56
|
+
<td><strong>In:</strong></td>
|
|
57
|
+
<td>
|
|
58
|
+
<a href="../../files/imlib2_c.html">
|
|
59
|
+
imlib2.c
|
|
60
|
+
</a>
|
|
61
|
+
(<a href="http://cvs.pablotron.org/cgi-bin/viewcvs.cgi/imlib2-ruby/imlib2.c">CVS</a>)
|
|
62
|
+
<br />
|
|
63
|
+
</td>
|
|
64
|
+
</tr>
|
|
65
|
+
|
|
66
|
+
<tr class="top-aligned-row">
|
|
67
|
+
<td><strong>Parent:</strong></td>
|
|
68
|
+
<td>
|
|
69
|
+
Object
|
|
70
|
+
</td>
|
|
71
|
+
</tr>
|
|
72
|
+
</table>
|
|
73
|
+
</div>
|
|
74
|
+
<!-- banner header -->
|
|
75
|
+
|
|
76
|
+
<div id="bodyContent">
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
<div id="contextContent">
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
</div>
|
|
85
|
+
|
|
86
|
+
<div id="method-list">
|
|
87
|
+
<h3 class="section-bar">Methods</h3>
|
|
88
|
+
|
|
89
|
+
<div class="name-list">
|
|
90
|
+
<a href="#M000140">aa</a>
|
|
91
|
+
<a href="#M000137">aa=</a>
|
|
92
|
+
<a href="#M000170">angle</a>
|
|
93
|
+
<a href="#M000168">angle=</a>
|
|
94
|
+
<a href="#M000139">anti_alias</a>
|
|
95
|
+
<a href="#M000136">anti_alias=</a>
|
|
96
|
+
<a href="#M000224">best_visual</a>
|
|
97
|
+
<a href="#M000144">blend</a>
|
|
98
|
+
<a href="#M000142">blend=</a>
|
|
99
|
+
<a href="#M000190">cliprect</a>
|
|
100
|
+
<a href="#M000188">cliprect=</a>
|
|
101
|
+
<a href="#M000212">cmap</a>
|
|
102
|
+
<a href="#M000208">cmap=</a>
|
|
103
|
+
<a href="#M000150">cmod</a>
|
|
104
|
+
<a href="#M000147">cmod=</a>
|
|
105
|
+
<a href="#M000174">color</a>
|
|
106
|
+
<a href="#M000172">color=</a>
|
|
107
|
+
<a href="#M000149">color_modifier</a>
|
|
108
|
+
<a href="#M000146">color_modifier=</a>
|
|
109
|
+
<a href="#M000210">colormap</a>
|
|
110
|
+
<a href="#M000206">colormap=</a>
|
|
111
|
+
<a href="#M000126">current</a>
|
|
112
|
+
<a href="#M000166">dir</a>
|
|
113
|
+
<a href="#M000163">dir=</a>
|
|
114
|
+
<a href="#M000165">direction</a>
|
|
115
|
+
<a href="#M000162">direction=</a>
|
|
116
|
+
<a href="#M000200">display</a>
|
|
117
|
+
<a href="#M000198">display=</a>
|
|
118
|
+
<a href="#M000130">dither</a>
|
|
119
|
+
<a href="#M000128">dither=</a>
|
|
120
|
+
<a href="#M000134">dither_mask</a>
|
|
121
|
+
<a href="#M000132">dither_mask=</a>
|
|
122
|
+
<a href="#M000216">drawable</a>
|
|
123
|
+
<a href="#M000214">drawable=</a>
|
|
124
|
+
<a href="#M000196">encoding</a>
|
|
125
|
+
<a href="#M000193">encoding=</a>
|
|
126
|
+
<a href="#M000160">font</a>
|
|
127
|
+
<a href="#M000158">font=</a>
|
|
128
|
+
<a href="#M000125">get</a>
|
|
129
|
+
<a href="#M000169">get_angle</a>
|
|
130
|
+
<a href="#M000138">get_anti_alias</a>
|
|
131
|
+
<a href="#M000223">get_best_visual</a>
|
|
132
|
+
<a href="#M000143">get_blend</a>
|
|
133
|
+
<a href="#M000189">get_cliprect</a>
|
|
134
|
+
<a href="#M000211">get_cmap</a>
|
|
135
|
+
<a href="#M000173">get_color</a>
|
|
136
|
+
<a href="#M000148">get_color_modifier</a>
|
|
137
|
+
<a href="#M000209">get_colormap</a>
|
|
138
|
+
<a href="#M000164">get_direction</a>
|
|
139
|
+
<a href="#M000199">get_display</a>
|
|
140
|
+
<a href="#M000129">get_dither</a>
|
|
141
|
+
<a href="#M000133">get_dither_mask</a>
|
|
142
|
+
<a href="#M000215">get_drawable</a>
|
|
143
|
+
<a href="#M000194">get_encoding</a>
|
|
144
|
+
<a href="#M000159">get_font</a>
|
|
145
|
+
<a href="#M000177">get_gradient</a>
|
|
146
|
+
<a href="#M000185">get_image</a>
|
|
147
|
+
<a href="#M000219">get_mask</a>
|
|
148
|
+
<a href="#M000154">get_operation</a>
|
|
149
|
+
<a href="#M000181">get_progress_granularity</a>
|
|
150
|
+
<a href="#M000195">get_ttf_encoding</a>
|
|
151
|
+
<a href="#M000221">get_visual</a>
|
|
152
|
+
<a href="#M000203">get_visual</a>
|
|
153
|
+
<a href="#M000178">gradient</a>
|
|
154
|
+
<a href="#M000176">gradient=</a>
|
|
155
|
+
<a href="#M000186">image</a>
|
|
156
|
+
<a href="#M000184">image=</a>
|
|
157
|
+
<a href="#M000220">mask</a>
|
|
158
|
+
<a href="#M000218">mask=</a>
|
|
159
|
+
<a href="#M000122">new</a>
|
|
160
|
+
<a href="#M000121">new</a>
|
|
161
|
+
<a href="#M000156">op</a>
|
|
162
|
+
<a href="#M000153">op=</a>
|
|
163
|
+
<a href="#M000155">operation</a>
|
|
164
|
+
<a href="#M000152">operation=</a>
|
|
165
|
+
<a href="#M000124">pop</a>
|
|
166
|
+
<a href="#M000182">progress_granularity</a>
|
|
167
|
+
<a href="#M000180">progress_granularity=</a>
|
|
168
|
+
<a href="#M000123">push</a>
|
|
169
|
+
<a href="#M000167">set_angle</a>
|
|
170
|
+
<a href="#M000135">set_anti_alias</a>
|
|
171
|
+
<a href="#M000141">set_blend</a>
|
|
172
|
+
<a href="#M000187">set_cliprect</a>
|
|
173
|
+
<a href="#M000207">set_cmap</a>
|
|
174
|
+
<a href="#M000171">set_color</a>
|
|
175
|
+
<a href="#M000145">set_color_modifier</a>
|
|
176
|
+
<a href="#M000205">set_colormap</a>
|
|
177
|
+
<a href="#M000161">set_direction</a>
|
|
178
|
+
<a href="#M000197">set_display</a>
|
|
179
|
+
<a href="#M000127">set_dither</a>
|
|
180
|
+
<a href="#M000131">set_dither_mask</a>
|
|
181
|
+
<a href="#M000213">set_drawable</a>
|
|
182
|
+
<a href="#M000192">set_encoding</a>
|
|
183
|
+
<a href="#M000157">set_font</a>
|
|
184
|
+
<a href="#M000175">set_gradient</a>
|
|
185
|
+
<a href="#M000183">set_image</a>
|
|
186
|
+
<a href="#M000217">set_mask</a>
|
|
187
|
+
<a href="#M000151">set_operation</a>
|
|
188
|
+
<a href="#M000179">set_progress_granularity</a>
|
|
189
|
+
<a href="#M000191">set_ttf_encoding</a>
|
|
190
|
+
<a href="#M000201">set_visual</a>
|
|
191
|
+
<a href="#M000204">visual</a>
|
|
192
|
+
<a href="#M000222">visual</a>
|
|
193
|
+
<a href="#M000202">visual=</a>
|
|
194
|
+
</div>
|
|
195
|
+
</div>
|
|
196
|
+
|
|
197
|
+
</div>
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
<!-- if includes -->
|
|
201
|
+
|
|
202
|
+
<div id="section">
|
|
203
|
+
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
<!-- if method_list -->
|
|
212
|
+
<div id="methods">
|
|
213
|
+
<h3 class="section-bar">Public Class methods</h3>
|
|
214
|
+
|
|
215
|
+
<div id="method-M000126" class="method-detail">
|
|
216
|
+
<a name="M000126"></a>
|
|
217
|
+
|
|
218
|
+
<div class="method-heading">
|
|
219
|
+
<a href="Context.src/M000126.html" target="Code" class="method-signature"
|
|
220
|
+
onclick="popupCode('Context.src/M000126.html');return false;">
|
|
221
|
+
<span class="method-name">current</span><span class="method-args">()</span>
|
|
222
|
+
</a>
|
|
223
|
+
</div>
|
|
224
|
+
|
|
225
|
+
<div class="method-description">
|
|
226
|
+
<p>
|
|
227
|
+
Return the current context.
|
|
228
|
+
</p>
|
|
229
|
+
<p>
|
|
230
|
+
Example:
|
|
231
|
+
</p>
|
|
232
|
+
<pre>
|
|
233
|
+
ctx = Imlib2::Context.get
|
|
234
|
+
</pre>
|
|
235
|
+
</div>
|
|
236
|
+
</div>
|
|
237
|
+
|
|
238
|
+
<div id="method-M000125" class="method-detail">
|
|
239
|
+
<a name="M000125"></a>
|
|
240
|
+
|
|
241
|
+
<div class="method-heading">
|
|
242
|
+
<a href="Context.src/M000125.html" target="Code" class="method-signature"
|
|
243
|
+
onclick="popupCode('Context.src/M000125.html');return false;">
|
|
244
|
+
<span class="method-name">get</span><span class="method-args">()</span>
|
|
245
|
+
</a>
|
|
246
|
+
</div>
|
|
247
|
+
|
|
248
|
+
<div class="method-description">
|
|
249
|
+
<p>
|
|
250
|
+
Return the current context.
|
|
251
|
+
</p>
|
|
252
|
+
<p>
|
|
253
|
+
Example:
|
|
254
|
+
</p>
|
|
255
|
+
<pre>
|
|
256
|
+
ctx = Imlib2::Context.get
|
|
257
|
+
</pre>
|
|
258
|
+
</div>
|
|
259
|
+
</div>
|
|
260
|
+
|
|
261
|
+
<div id="method-M000122" class="method-detail">
|
|
262
|
+
<a name="M000122"></a>
|
|
263
|
+
|
|
264
|
+
<div class="method-heading">
|
|
265
|
+
<a href="Context.src/M000122.html" target="Code" class="method-signature"
|
|
266
|
+
onclick="popupCode('Context.src/M000122.html');return false;">
|
|
267
|
+
<span class="method-name">new</span><span class="method-args">()</span>
|
|
268
|
+
</a>
|
|
269
|
+
</div>
|
|
270
|
+
|
|
271
|
+
<div class="method-description">
|
|
272
|
+
<p>
|
|
273
|
+
<a href="Context.html">Imlib2::Context</a> constructor.
|
|
274
|
+
</p>
|
|
275
|
+
<p>
|
|
276
|
+
Currently just a placeholder
|
|
277
|
+
</p>
|
|
278
|
+
</div>
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
<div id="method-M000121" class="method-detail">
|
|
282
|
+
<a name="M000121"></a>
|
|
283
|
+
|
|
284
|
+
<div class="method-heading">
|
|
285
|
+
<a href="Context.src/M000121.html" target="Code" class="method-signature"
|
|
286
|
+
onclick="popupCode('Context.src/M000121.html');return false;">
|
|
287
|
+
<span class="method-name">new</span><span class="method-args">()</span>
|
|
288
|
+
</a>
|
|
289
|
+
</div>
|
|
290
|
+
|
|
291
|
+
<div class="method-description">
|
|
292
|
+
<p>
|
|
293
|
+
Return a new <a href="Context.html">Imlib2::Context</a>.
|
|
294
|
+
</p>
|
|
295
|
+
<p>
|
|
296
|
+
Example:
|
|
297
|
+
</p>
|
|
298
|
+
<pre>
|
|
299
|
+
ctx = Imlib2::Context.new
|
|
300
|
+
</pre>
|
|
301
|
+
</div>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
<div id="method-M000124" class="method-detail">
|
|
305
|
+
<a name="M000124"></a>
|
|
306
|
+
|
|
307
|
+
<div class="method-heading">
|
|
308
|
+
<a href="Context.src/M000124.html" target="Code" class="method-signature"
|
|
309
|
+
onclick="popupCode('Context.src/M000124.html');return false;">
|
|
310
|
+
<span class="method-name">pop</span><span class="method-args">()</span>
|
|
311
|
+
</a>
|
|
312
|
+
</div>
|
|
313
|
+
|
|
314
|
+
<div class="method-description">
|
|
315
|
+
<p>
|
|
316
|
+
Pop the top context off the context stack.
|
|
317
|
+
</p>
|
|
318
|
+
<p>
|
|
319
|
+
Example:
|
|
320
|
+
</p>
|
|
321
|
+
<pre>
|
|
322
|
+
ctx = Imlib2::Context.pop
|
|
323
|
+
</pre>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
326
|
+
|
|
327
|
+
<h3 class="section-bar">Public Instance methods</h3>
|
|
328
|
+
|
|
329
|
+
<div id="method-M000140" class="method-detail">
|
|
330
|
+
<a name="M000140"></a>
|
|
331
|
+
|
|
332
|
+
<div class="method-heading">
|
|
333
|
+
<a href="Context.src/M000140.html" target="Code" class="method-signature"
|
|
334
|
+
onclick="popupCode('Context.src/M000140.html');return false;">
|
|
335
|
+
<span class="method-name">aa</span><span class="method-args">()</span>
|
|
336
|
+
</a>
|
|
337
|
+
</div>
|
|
338
|
+
|
|
339
|
+
<div class="method-description">
|
|
340
|
+
<p>
|
|
341
|
+
Get the <a href="Context.html#M000139">anti_alias</a> flag.
|
|
342
|
+
</p>
|
|
343
|
+
<p>
|
|
344
|
+
Example:
|
|
345
|
+
</p>
|
|
346
|
+
<pre>
|
|
347
|
+
if ctx.anti_alias == true
|
|
348
|
+
puts 'anti_alias enabled.'
|
|
349
|
+
end
|
|
350
|
+
</pre>
|
|
351
|
+
</div>
|
|
352
|
+
</div>
|
|
353
|
+
|
|
354
|
+
<div id="method-M000137" class="method-detail">
|
|
355
|
+
<a name="M000137"></a>
|
|
356
|
+
|
|
357
|
+
<div class="method-heading">
|
|
358
|
+
<a href="Context.src/M000137.html" target="Code" class="method-signature"
|
|
359
|
+
onclick="popupCode('Context.src/M000137.html');return false;">
|
|
360
|
+
<span class="method-name">aa=</span><span class="method-args">(p1)</span>
|
|
361
|
+
</a>
|
|
362
|
+
</div>
|
|
363
|
+
|
|
364
|
+
<div class="method-description">
|
|
365
|
+
<p>
|
|
366
|
+
Set the <a href="Context.html#M000139">anti_alias</a> flag.
|
|
367
|
+
</p>
|
|
368
|
+
<p>
|
|
369
|
+
Example:
|
|
370
|
+
</p>
|
|
371
|
+
<pre>
|
|
372
|
+
ctx.anti_alias = true
|
|
373
|
+
</pre>
|
|
374
|
+
</div>
|
|
375
|
+
</div>
|
|
376
|
+
|
|
377
|
+
<div id="method-M000170" class="method-detail">
|
|
378
|
+
<a name="M000170"></a>
|
|
379
|
+
|
|
380
|
+
<div class="method-heading">
|
|
381
|
+
<a href="Context.src/M000170.html" target="Code" class="method-signature"
|
|
382
|
+
onclick="popupCode('Context.src/M000170.html');return false;">
|
|
383
|
+
<span class="method-name">angle</span><span class="method-args">()</span>
|
|
384
|
+
</a>
|
|
385
|
+
</div>
|
|
386
|
+
|
|
387
|
+
<div class="method-description">
|
|
388
|
+
<p>
|
|
389
|
+
Get the text drawing angle.
|
|
390
|
+
</p>
|
|
391
|
+
<p>
|
|
392
|
+
Example:
|
|
393
|
+
</p>
|
|
394
|
+
<pre>
|
|
395
|
+
if ctx.dir == Imlib2::Direction::ANGLE
|
|
396
|
+
puts 'the current font angle is ' << ctx.angle
|
|
397
|
+
end
|
|
398
|
+
</pre>
|
|
399
|
+
</div>
|
|
400
|
+
</div>
|
|
401
|
+
|
|
402
|
+
<div id="method-M000168" class="method-detail">
|
|
403
|
+
<a name="M000168"></a>
|
|
404
|
+
|
|
405
|
+
<div class="method-heading">
|
|
406
|
+
<a href="Context.src/M000168.html" target="Code" class="method-signature"
|
|
407
|
+
onclick="popupCode('Context.src/M000168.html');return false;">
|
|
408
|
+
<span class="method-name">angle=</span><span class="method-args">(p1)</span>
|
|
409
|
+
</a>
|
|
410
|
+
</div>
|
|
411
|
+
|
|
412
|
+
<div class="method-description">
|
|
413
|
+
<p>
|
|
414
|
+
Set the text drawing angle.
|
|
415
|
+
</p>
|
|
416
|
+
<p>
|
|
417
|
+
Example:
|
|
418
|
+
</p>
|
|
419
|
+
<pre>
|
|
420
|
+
ctx.angle = 76.8
|
|
421
|
+
</pre>
|
|
422
|
+
</div>
|
|
423
|
+
</div>
|
|
424
|
+
|
|
425
|
+
<div id="method-M000139" class="method-detail">
|
|
426
|
+
<a name="M000139"></a>
|
|
427
|
+
|
|
428
|
+
<div class="method-heading">
|
|
429
|
+
<a href="Context.src/M000139.html" target="Code" class="method-signature"
|
|
430
|
+
onclick="popupCode('Context.src/M000139.html');return false;">
|
|
431
|
+
<span class="method-name">anti_alias</span><span class="method-args">()</span>
|
|
432
|
+
</a>
|
|
433
|
+
</div>
|
|
434
|
+
|
|
435
|
+
<div class="method-description">
|
|
436
|
+
<p>
|
|
437
|
+
Get the <a href="Context.html#M000139">anti_alias</a> flag.
|
|
438
|
+
</p>
|
|
439
|
+
<p>
|
|
440
|
+
Example:
|
|
441
|
+
</p>
|
|
442
|
+
<pre>
|
|
443
|
+
if ctx.anti_alias == true
|
|
444
|
+
puts 'anti_alias enabled.'
|
|
445
|
+
end
|
|
446
|
+
</pre>
|
|
447
|
+
</div>
|
|
448
|
+
</div>
|
|
449
|
+
|
|
450
|
+
<div id="method-M000136" class="method-detail">
|
|
451
|
+
<a name="M000136"></a>
|
|
452
|
+
|
|
453
|
+
<div class="method-heading">
|
|
454
|
+
<a href="Context.src/M000136.html" target="Code" class="method-signature"
|
|
455
|
+
onclick="popupCode('Context.src/M000136.html');return false;">
|
|
456
|
+
<span class="method-name">anti_alias=</span><span class="method-args">(p1)</span>
|
|
457
|
+
</a>
|
|
458
|
+
</div>
|
|
459
|
+
|
|
460
|
+
<div class="method-description">
|
|
461
|
+
<p>
|
|
462
|
+
Set the <a href="Context.html#M000139">anti_alias</a> flag.
|
|
463
|
+
</p>
|
|
464
|
+
<p>
|
|
465
|
+
Example:
|
|
466
|
+
</p>
|
|
467
|
+
<pre>
|
|
468
|
+
ctx.anti_alias = true
|
|
469
|
+
</pre>
|
|
470
|
+
</div>
|
|
471
|
+
</div>
|
|
472
|
+
|
|
473
|
+
<div id="method-M000224" class="method-detail">
|
|
474
|
+
<a name="M000224"></a>
|
|
475
|
+
|
|
476
|
+
<div class="method-heading">
|
|
477
|
+
<a href="Context.src/M000224.html" target="Code" class="method-signature"
|
|
478
|
+
onclick="popupCode('Context.src/M000224.html');return false;">
|
|
479
|
+
<span class="method-name">best_visual</span><span class="method-args">(...)</span>
|
|
480
|
+
</a>
|
|
481
|
+
</div>
|
|
482
|
+
|
|
483
|
+
<div class="method-description">
|
|
484
|
+
<p>
|
|
485
|
+
Get the current X11 Visual.
|
|
486
|
+
</p>
|
|
487
|
+
<p>
|
|
488
|
+
Note: This method is not available unless <a
|
|
489
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
490
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
491
|
+
available.
|
|
492
|
+
</p>
|
|
493
|
+
<p>
|
|
494
|
+
Examples:
|
|
495
|
+
</p>
|
|
496
|
+
<pre>
|
|
497
|
+
visual = context.get_visual
|
|
498
|
+
visual = context.visual
|
|
499
|
+
</pre>
|
|
500
|
+
</div>
|
|
501
|
+
</div>
|
|
502
|
+
|
|
503
|
+
<div id="method-M000144" class="method-detail">
|
|
504
|
+
<a name="M000144"></a>
|
|
505
|
+
|
|
506
|
+
<div class="method-heading">
|
|
507
|
+
<a href="Context.src/M000144.html" target="Code" class="method-signature"
|
|
508
|
+
onclick="popupCode('Context.src/M000144.html');return false;">
|
|
509
|
+
<span class="method-name">blend</span><span class="method-args">()</span>
|
|
510
|
+
</a>
|
|
511
|
+
</div>
|
|
512
|
+
|
|
513
|
+
<div class="method-description">
|
|
514
|
+
<p>
|
|
515
|
+
Get the blend flag.
|
|
516
|
+
</p>
|
|
517
|
+
<p>
|
|
518
|
+
Example:
|
|
519
|
+
</p>
|
|
520
|
+
<pre>
|
|
521
|
+
if ctx.blend
|
|
522
|
+
puts 'blend enabled.'
|
|
523
|
+
end
|
|
524
|
+
</pre>
|
|
525
|
+
</div>
|
|
526
|
+
</div>
|
|
527
|
+
|
|
528
|
+
<div id="method-M000142" class="method-detail">
|
|
529
|
+
<a name="M000142"></a>
|
|
530
|
+
|
|
531
|
+
<div class="method-heading">
|
|
532
|
+
<a href="Context.src/M000142.html" target="Code" class="method-signature"
|
|
533
|
+
onclick="popupCode('Context.src/M000142.html');return false;">
|
|
534
|
+
<span class="method-name">blend=</span><span class="method-args">(p1)</span>
|
|
535
|
+
</a>
|
|
536
|
+
</div>
|
|
537
|
+
|
|
538
|
+
<div class="method-description">
|
|
539
|
+
<p>
|
|
540
|
+
Set the blend flag.
|
|
541
|
+
</p>
|
|
542
|
+
<p>
|
|
543
|
+
Example:
|
|
544
|
+
</p>
|
|
545
|
+
<pre>
|
|
546
|
+
ctx.blend = true
|
|
547
|
+
</pre>
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
|
|
551
|
+
<div id="method-M000190" class="method-detail">
|
|
552
|
+
<a name="M000190"></a>
|
|
553
|
+
|
|
554
|
+
<div class="method-heading">
|
|
555
|
+
<a href="Context.src/M000190.html" target="Code" class="method-signature"
|
|
556
|
+
onclick="popupCode('Context.src/M000190.html');return false;">
|
|
557
|
+
<span class="method-name">cliprect</span><span class="method-args">()</span>
|
|
558
|
+
</a>
|
|
559
|
+
</div>
|
|
560
|
+
|
|
561
|
+
<div class="method-description">
|
|
562
|
+
<p>
|
|
563
|
+
Get the cliprect.
|
|
564
|
+
</p>
|
|
565
|
+
<p>
|
|
566
|
+
Example:
|
|
567
|
+
</p>
|
|
568
|
+
<pre>
|
|
569
|
+
x, y, w, h = ctx.cliprect
|
|
570
|
+
</pre>
|
|
571
|
+
</div>
|
|
572
|
+
</div>
|
|
573
|
+
|
|
574
|
+
<div id="method-M000188" class="method-detail">
|
|
575
|
+
<a name="M000188"></a>
|
|
576
|
+
|
|
577
|
+
<div class="method-heading">
|
|
578
|
+
<a href="Context.src/M000188.html" target="Code" class="method-signature"
|
|
579
|
+
onclick="popupCode('Context.src/M000188.html');return false;">
|
|
580
|
+
<span class="method-name">cliprect=</span><span class="method-args">(p1)</span>
|
|
581
|
+
</a>
|
|
582
|
+
</div>
|
|
583
|
+
|
|
584
|
+
<div class="method-description">
|
|
585
|
+
<p>
|
|
586
|
+
Set the cliprect.
|
|
587
|
+
</p>
|
|
588
|
+
<p>
|
|
589
|
+
Example:
|
|
590
|
+
</p>
|
|
591
|
+
<pre>
|
|
592
|
+
ctx.cliprect = [10, 10, 100, 100]
|
|
593
|
+
</pre>
|
|
594
|
+
</div>
|
|
595
|
+
</div>
|
|
596
|
+
|
|
597
|
+
<div id="method-M000212" class="method-detail">
|
|
598
|
+
<a name="M000212"></a>
|
|
599
|
+
|
|
600
|
+
<div class="method-heading">
|
|
601
|
+
<span class="method-name">cmap</span><span class="method-args">()</span>
|
|
602
|
+
</div>
|
|
603
|
+
|
|
604
|
+
<div class="method-description">
|
|
605
|
+
</div>
|
|
606
|
+
</div>
|
|
607
|
+
|
|
608
|
+
<div id="method-M000208" class="method-detail">
|
|
609
|
+
<a name="M000208"></a>
|
|
610
|
+
|
|
611
|
+
<div class="method-heading">
|
|
612
|
+
<span class="method-name">cmap=</span><span class="method-args">(p1)</span>
|
|
613
|
+
</div>
|
|
614
|
+
|
|
615
|
+
<div class="method-description">
|
|
616
|
+
</div>
|
|
617
|
+
</div>
|
|
618
|
+
|
|
619
|
+
<div id="method-M000150" class="method-detail">
|
|
620
|
+
<a name="M000150"></a>
|
|
621
|
+
|
|
622
|
+
<div class="method-heading">
|
|
623
|
+
<a href="Context.src/M000150.html" target="Code" class="method-signature"
|
|
624
|
+
onclick="popupCode('Context.src/M000150.html');return false;">
|
|
625
|
+
<span class="method-name">cmod</span><span class="method-args">()</span>
|
|
626
|
+
</a>
|
|
627
|
+
</div>
|
|
628
|
+
|
|
629
|
+
<div class="method-description">
|
|
630
|
+
<p>
|
|
631
|
+
Get the current color modifier (<a
|
|
632
|
+
href="ColorModifier.html">Imlib2::ColorModifier</a>).
|
|
633
|
+
</p>
|
|
634
|
+
<p>
|
|
635
|
+
Example:
|
|
636
|
+
</p>
|
|
637
|
+
<pre>
|
|
638
|
+
cmod = ctx.cmod
|
|
639
|
+
</pre>
|
|
640
|
+
</div>
|
|
641
|
+
</div>
|
|
642
|
+
|
|
643
|
+
<div id="method-M000147" class="method-detail">
|
|
644
|
+
<a name="M000147"></a>
|
|
645
|
+
|
|
646
|
+
<div class="method-heading">
|
|
647
|
+
<a href="Context.src/M000147.html" target="Code" class="method-signature"
|
|
648
|
+
onclick="popupCode('Context.src/M000147.html');return false;">
|
|
649
|
+
<span class="method-name">cmod=</span><span class="method-args">(p1)</span>
|
|
650
|
+
</a>
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
<div class="method-description">
|
|
654
|
+
<p>
|
|
655
|
+
Set the current color modifier (<a
|
|
656
|
+
href="ColorModifier.html">Imlib2::ColorModifier</a>).
|
|
657
|
+
</p>
|
|
658
|
+
<p>
|
|
659
|
+
Example:
|
|
660
|
+
</p>
|
|
661
|
+
<pre>
|
|
662
|
+
ctx.cmod = cmod
|
|
663
|
+
</pre>
|
|
664
|
+
</div>
|
|
665
|
+
</div>
|
|
666
|
+
|
|
667
|
+
<div id="method-M000174" class="method-detail">
|
|
668
|
+
<a name="M000174"></a>
|
|
669
|
+
|
|
670
|
+
<div class="method-heading">
|
|
671
|
+
<a href="Context.src/M000174.html" target="Code" class="method-signature"
|
|
672
|
+
onclick="popupCode('Context.src/M000174.html');return false;">
|
|
673
|
+
<span class="method-name">color</span><span class="method-args">()</span>
|
|
674
|
+
</a>
|
|
675
|
+
</div>
|
|
676
|
+
|
|
677
|
+
<div class="method-description">
|
|
678
|
+
<p>
|
|
679
|
+
Get the current color (<a
|
|
680
|
+
href="Color/RgbaColor.html">Imlib2::Color::RgbaColor</a>).
|
|
681
|
+
</p>
|
|
682
|
+
<p>
|
|
683
|
+
Example:
|
|
684
|
+
</p>
|
|
685
|
+
<pre>
|
|
686
|
+
color = ctx.color
|
|
687
|
+
</pre>
|
|
688
|
+
</div>
|
|
689
|
+
</div>
|
|
690
|
+
|
|
691
|
+
<div id="method-M000172" class="method-detail">
|
|
692
|
+
<a name="M000172"></a>
|
|
693
|
+
|
|
694
|
+
<div class="method-heading">
|
|
695
|
+
<a href="Context.src/M000172.html" target="Code" class="method-signature"
|
|
696
|
+
onclick="popupCode('Context.src/M000172.html');return false;">
|
|
697
|
+
<span class="method-name">color=</span><span class="method-args">(p1)</span>
|
|
698
|
+
</a>
|
|
699
|
+
</div>
|
|
700
|
+
|
|
701
|
+
<div class="method-description">
|
|
702
|
+
<p>
|
|
703
|
+
Set the current color (<a href="Color.html">Imlib2::Color</a>).
|
|
704
|
+
</p>
|
|
705
|
+
<p>
|
|
706
|
+
Example:
|
|
707
|
+
</p>
|
|
708
|
+
<pre>
|
|
709
|
+
ctx.color = Imlib2::Color::LIGHTGRAY
|
|
710
|
+
</pre>
|
|
711
|
+
</div>
|
|
712
|
+
</div>
|
|
713
|
+
|
|
714
|
+
<div id="method-M000149" class="method-detail">
|
|
715
|
+
<a name="M000149"></a>
|
|
716
|
+
|
|
717
|
+
<div class="method-heading">
|
|
718
|
+
<a href="Context.src/M000149.html" target="Code" class="method-signature"
|
|
719
|
+
onclick="popupCode('Context.src/M000149.html');return false;">
|
|
720
|
+
<span class="method-name">color_modifier</span><span class="method-args">()</span>
|
|
721
|
+
</a>
|
|
722
|
+
</div>
|
|
723
|
+
|
|
724
|
+
<div class="method-description">
|
|
725
|
+
<p>
|
|
726
|
+
Get the current color modifier (<a
|
|
727
|
+
href="ColorModifier.html">Imlib2::ColorModifier</a>).
|
|
728
|
+
</p>
|
|
729
|
+
<p>
|
|
730
|
+
Example:
|
|
731
|
+
</p>
|
|
732
|
+
<pre>
|
|
733
|
+
cmod = ctx.cmod
|
|
734
|
+
</pre>
|
|
735
|
+
</div>
|
|
736
|
+
</div>
|
|
737
|
+
|
|
738
|
+
<div id="method-M000146" class="method-detail">
|
|
739
|
+
<a name="M000146"></a>
|
|
740
|
+
|
|
741
|
+
<div class="method-heading">
|
|
742
|
+
<a href="Context.src/M000146.html" target="Code" class="method-signature"
|
|
743
|
+
onclick="popupCode('Context.src/M000146.html');return false;">
|
|
744
|
+
<span class="method-name">color_modifier=</span><span class="method-args">(p1)</span>
|
|
745
|
+
</a>
|
|
746
|
+
</div>
|
|
747
|
+
|
|
748
|
+
<div class="method-description">
|
|
749
|
+
<p>
|
|
750
|
+
Set the current color modifier (<a
|
|
751
|
+
href="ColorModifier.html">Imlib2::ColorModifier</a>).
|
|
752
|
+
</p>
|
|
753
|
+
<p>
|
|
754
|
+
Example:
|
|
755
|
+
</p>
|
|
756
|
+
<pre>
|
|
757
|
+
ctx.cmod = cmod
|
|
758
|
+
</pre>
|
|
759
|
+
</div>
|
|
760
|
+
</div>
|
|
761
|
+
|
|
762
|
+
<div id="method-M000210" class="method-detail">
|
|
763
|
+
<a name="M000210"></a>
|
|
764
|
+
|
|
765
|
+
<div class="method-heading">
|
|
766
|
+
<span class="method-name">colormap</span><span class="method-args">()</span>
|
|
767
|
+
</div>
|
|
768
|
+
|
|
769
|
+
<div class="method-description">
|
|
770
|
+
</div>
|
|
771
|
+
</div>
|
|
772
|
+
|
|
773
|
+
<div id="method-M000206" class="method-detail">
|
|
774
|
+
<a name="M000206"></a>
|
|
775
|
+
|
|
776
|
+
<div class="method-heading">
|
|
777
|
+
<span class="method-name">colormap=</span><span class="method-args">(p1)</span>
|
|
778
|
+
</div>
|
|
779
|
+
|
|
780
|
+
<div class="method-description">
|
|
781
|
+
</div>
|
|
782
|
+
</div>
|
|
783
|
+
|
|
784
|
+
<div id="method-M000166" class="method-detail">
|
|
785
|
+
<a name="M000166"></a>
|
|
786
|
+
|
|
787
|
+
<div class="method-heading">
|
|
788
|
+
<a href="Context.src/M000166.html" target="Code" class="method-signature"
|
|
789
|
+
onclick="popupCode('Context.src/M000166.html');return false;">
|
|
790
|
+
<span class="method-name">dir</span><span class="method-args">()</span>
|
|
791
|
+
</a>
|
|
792
|
+
</div>
|
|
793
|
+
|
|
794
|
+
<div class="method-description">
|
|
795
|
+
<p>
|
|
796
|
+
Get the current font direction (<a href="Dir.html">Imlib2::Dir</a> or <a
|
|
797
|
+
href="Direction.html">Imlib2::Direction</a>).
|
|
798
|
+
</p>
|
|
799
|
+
<p>
|
|
800
|
+
Example:
|
|
801
|
+
</p>
|
|
802
|
+
<pre>
|
|
803
|
+
if ctx.direction != Imlib2::Direction::RIGHT
|
|
804
|
+
puts 'drawing funny text'
|
|
805
|
+
end
|
|
806
|
+
</pre>
|
|
807
|
+
</div>
|
|
808
|
+
</div>
|
|
809
|
+
|
|
810
|
+
<div id="method-M000163" class="method-detail">
|
|
811
|
+
<a name="M000163"></a>
|
|
812
|
+
|
|
813
|
+
<div class="method-heading">
|
|
814
|
+
<a href="Context.src/M000163.html" target="Code" class="method-signature"
|
|
815
|
+
onclick="popupCode('Context.src/M000163.html');return false;">
|
|
816
|
+
<span class="method-name">dir=</span><span class="method-args">(p1)</span>
|
|
817
|
+
</a>
|
|
818
|
+
</div>
|
|
819
|
+
|
|
820
|
+
<div class="method-description">
|
|
821
|
+
<p>
|
|
822
|
+
Set the current font direction (<a href="Dir.html">Imlib2::Dir</a> or <a
|
|
823
|
+
href="Direction.html">Imlib2::Direction</a>).
|
|
824
|
+
</p>
|
|
825
|
+
<p>
|
|
826
|
+
Example:
|
|
827
|
+
</p>
|
|
828
|
+
<pre>
|
|
829
|
+
ctx.direction = Imlib2::Direction::LEFT
|
|
830
|
+
</pre>
|
|
831
|
+
</div>
|
|
832
|
+
</div>
|
|
833
|
+
|
|
834
|
+
<div id="method-M000165" class="method-detail">
|
|
835
|
+
<a name="M000165"></a>
|
|
836
|
+
|
|
837
|
+
<div class="method-heading">
|
|
838
|
+
<a href="Context.src/M000165.html" target="Code" class="method-signature"
|
|
839
|
+
onclick="popupCode('Context.src/M000165.html');return false;">
|
|
840
|
+
<span class="method-name">direction</span><span class="method-args">()</span>
|
|
841
|
+
</a>
|
|
842
|
+
</div>
|
|
843
|
+
|
|
844
|
+
<div class="method-description">
|
|
845
|
+
<p>
|
|
846
|
+
Get the current font direction (<a href="Dir.html">Imlib2::Dir</a> or <a
|
|
847
|
+
href="Direction.html">Imlib2::Direction</a>).
|
|
848
|
+
</p>
|
|
849
|
+
<p>
|
|
850
|
+
Example:
|
|
851
|
+
</p>
|
|
852
|
+
<pre>
|
|
853
|
+
if ctx.direction != Imlib2::Direction::RIGHT
|
|
854
|
+
puts 'drawing funny text'
|
|
855
|
+
end
|
|
856
|
+
</pre>
|
|
857
|
+
</div>
|
|
858
|
+
</div>
|
|
859
|
+
|
|
860
|
+
<div id="method-M000162" class="method-detail">
|
|
861
|
+
<a name="M000162"></a>
|
|
862
|
+
|
|
863
|
+
<div class="method-heading">
|
|
864
|
+
<a href="Context.src/M000162.html" target="Code" class="method-signature"
|
|
865
|
+
onclick="popupCode('Context.src/M000162.html');return false;">
|
|
866
|
+
<span class="method-name">direction=</span><span class="method-args">(p1)</span>
|
|
867
|
+
</a>
|
|
868
|
+
</div>
|
|
869
|
+
|
|
870
|
+
<div class="method-description">
|
|
871
|
+
<p>
|
|
872
|
+
Set the current font direction (<a href="Dir.html">Imlib2::Dir</a> or <a
|
|
873
|
+
href="Direction.html">Imlib2::Direction</a>).
|
|
874
|
+
</p>
|
|
875
|
+
<p>
|
|
876
|
+
Example:
|
|
877
|
+
</p>
|
|
878
|
+
<pre>
|
|
879
|
+
ctx.direction = Imlib2::Direction::LEFT
|
|
880
|
+
</pre>
|
|
881
|
+
</div>
|
|
882
|
+
</div>
|
|
883
|
+
|
|
884
|
+
<div id="method-M000200" class="method-detail">
|
|
885
|
+
<a name="M000200"></a>
|
|
886
|
+
|
|
887
|
+
<div class="method-heading">
|
|
888
|
+
<a href="Context.src/M000200.html" target="Code" class="method-signature"
|
|
889
|
+
onclick="popupCode('Context.src/M000200.html');return false;">
|
|
890
|
+
<span class="method-name">display</span><span class="method-args">()</span>
|
|
891
|
+
</a>
|
|
892
|
+
</div>
|
|
893
|
+
|
|
894
|
+
<div class="method-description">
|
|
895
|
+
<p>
|
|
896
|
+
Get the current X11 Display.
|
|
897
|
+
</p>
|
|
898
|
+
<p>
|
|
899
|
+
Note: This method is not available unless <a
|
|
900
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
901
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
902
|
+
available.
|
|
903
|
+
</p>
|
|
904
|
+
<p>
|
|
905
|
+
Examples:
|
|
906
|
+
</p>
|
|
907
|
+
<pre>
|
|
908
|
+
display = context.get_display
|
|
909
|
+
display = context.display
|
|
910
|
+
</pre>
|
|
911
|
+
</div>
|
|
912
|
+
</div>
|
|
913
|
+
|
|
914
|
+
<div id="method-M000198" class="method-detail">
|
|
915
|
+
<a name="M000198"></a>
|
|
916
|
+
|
|
917
|
+
<div class="method-heading">
|
|
918
|
+
<a href="Context.src/M000198.html" target="Code" class="method-signature"
|
|
919
|
+
onclick="popupCode('Context.src/M000198.html');return false;">
|
|
920
|
+
<span class="method-name">display=</span><span class="method-args">(p1)</span>
|
|
921
|
+
</a>
|
|
922
|
+
</div>
|
|
923
|
+
|
|
924
|
+
<div class="method-description">
|
|
925
|
+
<p>
|
|
926
|
+
Set the current X11 Display.
|
|
927
|
+
</p>
|
|
928
|
+
<p>
|
|
929
|
+
Note: This method is not available unless <a
|
|
930
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
931
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
932
|
+
available.
|
|
933
|
+
</p>
|
|
934
|
+
<p>
|
|
935
|
+
Examples:
|
|
936
|
+
</p>
|
|
937
|
+
<pre>
|
|
938
|
+
context.set_display display
|
|
939
|
+
context.display = display
|
|
940
|
+
</pre>
|
|
941
|
+
</div>
|
|
942
|
+
</div>
|
|
943
|
+
|
|
944
|
+
<div id="method-M000130" class="method-detail">
|
|
945
|
+
<a name="M000130"></a>
|
|
946
|
+
|
|
947
|
+
<div class="method-heading">
|
|
948
|
+
<a href="Context.src/M000130.html" target="Code" class="method-signature"
|
|
949
|
+
onclick="popupCode('Context.src/M000130.html');return false;">
|
|
950
|
+
<span class="method-name">dither</span><span class="method-args">()</span>
|
|
951
|
+
</a>
|
|
952
|
+
</div>
|
|
953
|
+
|
|
954
|
+
<div class="method-description">
|
|
955
|
+
<p>
|
|
956
|
+
Get the dither flag.
|
|
957
|
+
</p>
|
|
958
|
+
<p>
|
|
959
|
+
Example:
|
|
960
|
+
</p>
|
|
961
|
+
<pre>
|
|
962
|
+
if ctx.dither
|
|
963
|
+
puts 'dither enabled.'
|
|
964
|
+
end
|
|
965
|
+
</pre>
|
|
966
|
+
</div>
|
|
967
|
+
</div>
|
|
968
|
+
|
|
969
|
+
<div id="method-M000128" class="method-detail">
|
|
970
|
+
<a name="M000128"></a>
|
|
971
|
+
|
|
972
|
+
<div class="method-heading">
|
|
973
|
+
<a href="Context.src/M000128.html" target="Code" class="method-signature"
|
|
974
|
+
onclick="popupCode('Context.src/M000128.html');return false;">
|
|
975
|
+
<span class="method-name">dither=</span><span class="method-args">(p1)</span>
|
|
976
|
+
</a>
|
|
977
|
+
</div>
|
|
978
|
+
|
|
979
|
+
<div class="method-description">
|
|
980
|
+
<p>
|
|
981
|
+
Set the dither flag.
|
|
982
|
+
</p>
|
|
983
|
+
<p>
|
|
984
|
+
Example:
|
|
985
|
+
</p>
|
|
986
|
+
<pre>
|
|
987
|
+
ctx.dither = true
|
|
988
|
+
</pre>
|
|
989
|
+
</div>
|
|
990
|
+
</div>
|
|
991
|
+
|
|
992
|
+
<div id="method-M000134" class="method-detail">
|
|
993
|
+
<a name="M000134"></a>
|
|
994
|
+
|
|
995
|
+
<div class="method-heading">
|
|
996
|
+
<a href="Context.src/M000134.html" target="Code" class="method-signature"
|
|
997
|
+
onclick="popupCode('Context.src/M000134.html');return false;">
|
|
998
|
+
<span class="method-name">dither_mask</span><span class="method-args">()</span>
|
|
999
|
+
</a>
|
|
1000
|
+
</div>
|
|
1001
|
+
|
|
1002
|
+
<div class="method-description">
|
|
1003
|
+
<p>
|
|
1004
|
+
Get the <a href="Context.html#M000134">dither_mask</a> flag.
|
|
1005
|
+
</p>
|
|
1006
|
+
<p>
|
|
1007
|
+
Example:
|
|
1008
|
+
</p>
|
|
1009
|
+
<pre>
|
|
1010
|
+
if ctx.dither_mask == true
|
|
1011
|
+
puts 'dither_mask enabled'
|
|
1012
|
+
end
|
|
1013
|
+
</pre>
|
|
1014
|
+
</div>
|
|
1015
|
+
</div>
|
|
1016
|
+
|
|
1017
|
+
<div id="method-M000132" class="method-detail">
|
|
1018
|
+
<a name="M000132"></a>
|
|
1019
|
+
|
|
1020
|
+
<div class="method-heading">
|
|
1021
|
+
<a href="Context.src/M000132.html" target="Code" class="method-signature"
|
|
1022
|
+
onclick="popupCode('Context.src/M000132.html');return false;">
|
|
1023
|
+
<span class="method-name">dither_mask=</span><span class="method-args">(p1)</span>
|
|
1024
|
+
</a>
|
|
1025
|
+
</div>
|
|
1026
|
+
|
|
1027
|
+
<div class="method-description">
|
|
1028
|
+
<p>
|
|
1029
|
+
Set the <a href="Context.html#M000134">dither_mask</a> flag.
|
|
1030
|
+
</p>
|
|
1031
|
+
<p>
|
|
1032
|
+
Example:
|
|
1033
|
+
</p>
|
|
1034
|
+
<pre>
|
|
1035
|
+
ctx.dither_mask = true
|
|
1036
|
+
</pre>
|
|
1037
|
+
</div>
|
|
1038
|
+
</div>
|
|
1039
|
+
|
|
1040
|
+
<div id="method-M000216" class="method-detail">
|
|
1041
|
+
<a name="M000216"></a>
|
|
1042
|
+
|
|
1043
|
+
<div class="method-heading">
|
|
1044
|
+
<a href="Context.src/M000216.html" target="Code" class="method-signature"
|
|
1045
|
+
onclick="popupCode('Context.src/M000216.html');return false;">
|
|
1046
|
+
<span class="method-name">drawable</span><span class="method-args">()</span>
|
|
1047
|
+
</a>
|
|
1048
|
+
</div>
|
|
1049
|
+
|
|
1050
|
+
<div class="method-description">
|
|
1051
|
+
<p>
|
|
1052
|
+
Get the current X11 Drawable.
|
|
1053
|
+
</p>
|
|
1054
|
+
<p>
|
|
1055
|
+
Note: This method is not available unless <a
|
|
1056
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1057
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1058
|
+
available.
|
|
1059
|
+
</p>
|
|
1060
|
+
<p>
|
|
1061
|
+
Examples:
|
|
1062
|
+
</p>
|
|
1063
|
+
<pre>
|
|
1064
|
+
drawable = context.get_drawable
|
|
1065
|
+
drawable = context.drawable
|
|
1066
|
+
</pre>
|
|
1067
|
+
</div>
|
|
1068
|
+
</div>
|
|
1069
|
+
|
|
1070
|
+
<div id="method-M000214" class="method-detail">
|
|
1071
|
+
<a name="M000214"></a>
|
|
1072
|
+
|
|
1073
|
+
<div class="method-heading">
|
|
1074
|
+
<a href="Context.src/M000214.html" target="Code" class="method-signature"
|
|
1075
|
+
onclick="popupCode('Context.src/M000214.html');return false;">
|
|
1076
|
+
<span class="method-name">drawable=</span><span class="method-args">(p1)</span>
|
|
1077
|
+
</a>
|
|
1078
|
+
</div>
|
|
1079
|
+
|
|
1080
|
+
<div class="method-description">
|
|
1081
|
+
<p>
|
|
1082
|
+
Set the current X11 Drawable.
|
|
1083
|
+
</p>
|
|
1084
|
+
<p>
|
|
1085
|
+
Note: This method is not available unless <a
|
|
1086
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1087
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1088
|
+
available.
|
|
1089
|
+
</p>
|
|
1090
|
+
<p>
|
|
1091
|
+
Examples:
|
|
1092
|
+
</p>
|
|
1093
|
+
<pre>
|
|
1094
|
+
context.set_drawable drawable
|
|
1095
|
+
context.drawable = drawable
|
|
1096
|
+
</pre>
|
|
1097
|
+
</div>
|
|
1098
|
+
</div>
|
|
1099
|
+
|
|
1100
|
+
<div id="method-M000196" class="method-detail">
|
|
1101
|
+
<a name="M000196"></a>
|
|
1102
|
+
|
|
1103
|
+
<div class="method-heading">
|
|
1104
|
+
<a href="Context.src/M000196.html" target="Code" class="method-signature"
|
|
1105
|
+
onclick="popupCode('Context.src/M000196.html');return false;">
|
|
1106
|
+
<span class="method-name">encoding</span><span class="method-args">()</span>
|
|
1107
|
+
</a>
|
|
1108
|
+
</div>
|
|
1109
|
+
|
|
1110
|
+
<div class="method-description">
|
|
1111
|
+
<p>
|
|
1112
|
+
Get the current TrueType <a href="Font.html">Font</a> <a
|
|
1113
|
+
href="Encoding.html">Encoding</a>.
|
|
1114
|
+
</p>
|
|
1115
|
+
<p>
|
|
1116
|
+
Example:
|
|
1117
|
+
</p>
|
|
1118
|
+
<pre>
|
|
1119
|
+
if ctx.encoding == Imlib2::Encoding::ISO_8859_1
|
|
1120
|
+
puts 'using ISO-8859-1 encoding'
|
|
1121
|
+
end
|
|
1122
|
+
</pre>
|
|
1123
|
+
</div>
|
|
1124
|
+
</div>
|
|
1125
|
+
|
|
1126
|
+
<div id="method-M000193" class="method-detail">
|
|
1127
|
+
<a name="M000193"></a>
|
|
1128
|
+
|
|
1129
|
+
<div class="method-heading">
|
|
1130
|
+
<a href="Context.src/M000193.html" target="Code" class="method-signature"
|
|
1131
|
+
onclick="popupCode('Context.src/M000193.html');return false;">
|
|
1132
|
+
<span class="method-name">encoding=</span><span class="method-args">(p1)</span>
|
|
1133
|
+
</a>
|
|
1134
|
+
</div>
|
|
1135
|
+
|
|
1136
|
+
<div class="method-description">
|
|
1137
|
+
<p>
|
|
1138
|
+
Set the current TrueType <a href="Font.html">Font</a> <a
|
|
1139
|
+
href="Encoding.html">Encoding</a>.
|
|
1140
|
+
</p>
|
|
1141
|
+
<p>
|
|
1142
|
+
Example:
|
|
1143
|
+
</p>
|
|
1144
|
+
<pre>
|
|
1145
|
+
ctx.encoding = Imlib2::Encoding::ISO_8859_5
|
|
1146
|
+
</pre>
|
|
1147
|
+
</div>
|
|
1148
|
+
</div>
|
|
1149
|
+
|
|
1150
|
+
<div id="method-M000160" class="method-detail">
|
|
1151
|
+
<a name="M000160"></a>
|
|
1152
|
+
|
|
1153
|
+
<div class="method-heading">
|
|
1154
|
+
<a href="Context.src/M000160.html" target="Code" class="method-signature"
|
|
1155
|
+
onclick="popupCode('Context.src/M000160.html');return false;">
|
|
1156
|
+
<span class="method-name">font</span><span class="method-args">()</span>
|
|
1157
|
+
</a>
|
|
1158
|
+
</div>
|
|
1159
|
+
|
|
1160
|
+
<div class="method-description">
|
|
1161
|
+
<p>
|
|
1162
|
+
Get the current font (<a href="Font.html">Imlib2::Font</a>).
|
|
1163
|
+
</p>
|
|
1164
|
+
<p>
|
|
1165
|
+
Example:
|
|
1166
|
+
</p>
|
|
1167
|
+
<pre>
|
|
1168
|
+
font = ctx.font
|
|
1169
|
+
</pre>
|
|
1170
|
+
</div>
|
|
1171
|
+
</div>
|
|
1172
|
+
|
|
1173
|
+
<div id="method-M000158" class="method-detail">
|
|
1174
|
+
<a name="M000158"></a>
|
|
1175
|
+
|
|
1176
|
+
<div class="method-heading">
|
|
1177
|
+
<a href="Context.src/M000158.html" target="Code" class="method-signature"
|
|
1178
|
+
onclick="popupCode('Context.src/M000158.html');return false;">
|
|
1179
|
+
<span class="method-name">font=</span><span class="method-args">(p1)</span>
|
|
1180
|
+
</a>
|
|
1181
|
+
</div>
|
|
1182
|
+
|
|
1183
|
+
<div class="method-description">
|
|
1184
|
+
<p>
|
|
1185
|
+
Set the current font (<a href="Font.html">Imlib2::Font</a>).
|
|
1186
|
+
</p>
|
|
1187
|
+
<p>
|
|
1188
|
+
Example:
|
|
1189
|
+
</p>
|
|
1190
|
+
<pre>
|
|
1191
|
+
ctx.font = Imlib2::Font.new 'helvetica/12'
|
|
1192
|
+
</pre>
|
|
1193
|
+
</div>
|
|
1194
|
+
</div>
|
|
1195
|
+
|
|
1196
|
+
<div id="method-M000169" class="method-detail">
|
|
1197
|
+
<a name="M000169"></a>
|
|
1198
|
+
|
|
1199
|
+
<div class="method-heading">
|
|
1200
|
+
<a href="Context.src/M000169.html" target="Code" class="method-signature"
|
|
1201
|
+
onclick="popupCode('Context.src/M000169.html');return false;">
|
|
1202
|
+
<span class="method-name">get_angle</span><span class="method-args">()</span>
|
|
1203
|
+
</a>
|
|
1204
|
+
</div>
|
|
1205
|
+
|
|
1206
|
+
<div class="method-description">
|
|
1207
|
+
<p>
|
|
1208
|
+
Get the text drawing angle.
|
|
1209
|
+
</p>
|
|
1210
|
+
<p>
|
|
1211
|
+
Example:
|
|
1212
|
+
</p>
|
|
1213
|
+
<pre>
|
|
1214
|
+
if ctx.dir == Imlib2::Direction::ANGLE
|
|
1215
|
+
puts 'the current font angle is ' << ctx.angle
|
|
1216
|
+
end
|
|
1217
|
+
</pre>
|
|
1218
|
+
</div>
|
|
1219
|
+
</div>
|
|
1220
|
+
|
|
1221
|
+
<div id="method-M000138" class="method-detail">
|
|
1222
|
+
<a name="M000138"></a>
|
|
1223
|
+
|
|
1224
|
+
<div class="method-heading">
|
|
1225
|
+
<a href="Context.src/M000138.html" target="Code" class="method-signature"
|
|
1226
|
+
onclick="popupCode('Context.src/M000138.html');return false;">
|
|
1227
|
+
<span class="method-name">get_anti_alias</span><span class="method-args">()</span>
|
|
1228
|
+
</a>
|
|
1229
|
+
</div>
|
|
1230
|
+
|
|
1231
|
+
<div class="method-description">
|
|
1232
|
+
<p>
|
|
1233
|
+
Get the <a href="Context.html#M000139">anti_alias</a> flag.
|
|
1234
|
+
</p>
|
|
1235
|
+
<p>
|
|
1236
|
+
Example:
|
|
1237
|
+
</p>
|
|
1238
|
+
<pre>
|
|
1239
|
+
if ctx.anti_alias == true
|
|
1240
|
+
puts 'anti_alias enabled.'
|
|
1241
|
+
end
|
|
1242
|
+
</pre>
|
|
1243
|
+
</div>
|
|
1244
|
+
</div>
|
|
1245
|
+
|
|
1246
|
+
<div id="method-M000223" class="method-detail">
|
|
1247
|
+
<a name="M000223"></a>
|
|
1248
|
+
|
|
1249
|
+
<div class="method-heading">
|
|
1250
|
+
<a href="Context.src/M000223.html" target="Code" class="method-signature"
|
|
1251
|
+
onclick="popupCode('Context.src/M000223.html');return false;">
|
|
1252
|
+
<span class="method-name">get_best_visual</span><span class="method-args">(...)</span>
|
|
1253
|
+
</a>
|
|
1254
|
+
</div>
|
|
1255
|
+
|
|
1256
|
+
<div class="method-description">
|
|
1257
|
+
<p>
|
|
1258
|
+
Get the current X11 Visual.
|
|
1259
|
+
</p>
|
|
1260
|
+
<p>
|
|
1261
|
+
Note: This method is not available unless <a
|
|
1262
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1263
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1264
|
+
available.
|
|
1265
|
+
</p>
|
|
1266
|
+
<p>
|
|
1267
|
+
Examples:
|
|
1268
|
+
</p>
|
|
1269
|
+
<pre>
|
|
1270
|
+
visual = context.get_visual
|
|
1271
|
+
visual = context.visual
|
|
1272
|
+
</pre>
|
|
1273
|
+
</div>
|
|
1274
|
+
</div>
|
|
1275
|
+
|
|
1276
|
+
<div id="method-M000143" class="method-detail">
|
|
1277
|
+
<a name="M000143"></a>
|
|
1278
|
+
|
|
1279
|
+
<div class="method-heading">
|
|
1280
|
+
<a href="Context.src/M000143.html" target="Code" class="method-signature"
|
|
1281
|
+
onclick="popupCode('Context.src/M000143.html');return false;">
|
|
1282
|
+
<span class="method-name">get_blend</span><span class="method-args">()</span>
|
|
1283
|
+
</a>
|
|
1284
|
+
</div>
|
|
1285
|
+
|
|
1286
|
+
<div class="method-description">
|
|
1287
|
+
<p>
|
|
1288
|
+
Get the blend flag.
|
|
1289
|
+
</p>
|
|
1290
|
+
<p>
|
|
1291
|
+
Example:
|
|
1292
|
+
</p>
|
|
1293
|
+
<pre>
|
|
1294
|
+
if ctx.blend
|
|
1295
|
+
puts 'blend enabled.'
|
|
1296
|
+
end
|
|
1297
|
+
</pre>
|
|
1298
|
+
</div>
|
|
1299
|
+
</div>
|
|
1300
|
+
|
|
1301
|
+
<div id="method-M000189" class="method-detail">
|
|
1302
|
+
<a name="M000189"></a>
|
|
1303
|
+
|
|
1304
|
+
<div class="method-heading">
|
|
1305
|
+
<a href="Context.src/M000189.html" target="Code" class="method-signature"
|
|
1306
|
+
onclick="popupCode('Context.src/M000189.html');return false;">
|
|
1307
|
+
<span class="method-name">get_cliprect</span><span class="method-args">()</span>
|
|
1308
|
+
</a>
|
|
1309
|
+
</div>
|
|
1310
|
+
|
|
1311
|
+
<div class="method-description">
|
|
1312
|
+
<p>
|
|
1313
|
+
Get the cliprect.
|
|
1314
|
+
</p>
|
|
1315
|
+
<p>
|
|
1316
|
+
Example:
|
|
1317
|
+
</p>
|
|
1318
|
+
<pre>
|
|
1319
|
+
x, y, w, h = ctx.cliprect
|
|
1320
|
+
</pre>
|
|
1321
|
+
</div>
|
|
1322
|
+
</div>
|
|
1323
|
+
|
|
1324
|
+
<div id="method-M000211" class="method-detail">
|
|
1325
|
+
<a name="M000211"></a>
|
|
1326
|
+
|
|
1327
|
+
<div class="method-heading">
|
|
1328
|
+
<span class="method-name">get_cmap</span><span class="method-args">()</span>
|
|
1329
|
+
</div>
|
|
1330
|
+
|
|
1331
|
+
<div class="method-description">
|
|
1332
|
+
</div>
|
|
1333
|
+
</div>
|
|
1334
|
+
|
|
1335
|
+
<div id="method-M000173" class="method-detail">
|
|
1336
|
+
<a name="M000173"></a>
|
|
1337
|
+
|
|
1338
|
+
<div class="method-heading">
|
|
1339
|
+
<a href="Context.src/M000173.html" target="Code" class="method-signature"
|
|
1340
|
+
onclick="popupCode('Context.src/M000173.html');return false;">
|
|
1341
|
+
<span class="method-name">get_color</span><span class="method-args">()</span>
|
|
1342
|
+
</a>
|
|
1343
|
+
</div>
|
|
1344
|
+
|
|
1345
|
+
<div class="method-description">
|
|
1346
|
+
<p>
|
|
1347
|
+
Get the current color (<a
|
|
1348
|
+
href="Color/RgbaColor.html">Imlib2::Color::RgbaColor</a>).
|
|
1349
|
+
</p>
|
|
1350
|
+
<p>
|
|
1351
|
+
Example:
|
|
1352
|
+
</p>
|
|
1353
|
+
<pre>
|
|
1354
|
+
color = ctx.color
|
|
1355
|
+
</pre>
|
|
1356
|
+
</div>
|
|
1357
|
+
</div>
|
|
1358
|
+
|
|
1359
|
+
<div id="method-M000148" class="method-detail">
|
|
1360
|
+
<a name="M000148"></a>
|
|
1361
|
+
|
|
1362
|
+
<div class="method-heading">
|
|
1363
|
+
<a href="Context.src/M000148.html" target="Code" class="method-signature"
|
|
1364
|
+
onclick="popupCode('Context.src/M000148.html');return false;">
|
|
1365
|
+
<span class="method-name">get_color_modifier</span><span class="method-args">()</span>
|
|
1366
|
+
</a>
|
|
1367
|
+
</div>
|
|
1368
|
+
|
|
1369
|
+
<div class="method-description">
|
|
1370
|
+
<p>
|
|
1371
|
+
Get the current color modifier (<a
|
|
1372
|
+
href="ColorModifier.html">Imlib2::ColorModifier</a>).
|
|
1373
|
+
</p>
|
|
1374
|
+
<p>
|
|
1375
|
+
Example:
|
|
1376
|
+
</p>
|
|
1377
|
+
<pre>
|
|
1378
|
+
cmod = ctx.cmod
|
|
1379
|
+
</pre>
|
|
1380
|
+
</div>
|
|
1381
|
+
</div>
|
|
1382
|
+
|
|
1383
|
+
<div id="method-M000209" class="method-detail">
|
|
1384
|
+
<a name="M000209"></a>
|
|
1385
|
+
|
|
1386
|
+
<div class="method-heading">
|
|
1387
|
+
<span class="method-name">get_colormap</span><span class="method-args">()</span>
|
|
1388
|
+
</div>
|
|
1389
|
+
|
|
1390
|
+
<div class="method-description">
|
|
1391
|
+
</div>
|
|
1392
|
+
</div>
|
|
1393
|
+
|
|
1394
|
+
<div id="method-M000164" class="method-detail">
|
|
1395
|
+
<a name="M000164"></a>
|
|
1396
|
+
|
|
1397
|
+
<div class="method-heading">
|
|
1398
|
+
<a href="Context.src/M000164.html" target="Code" class="method-signature"
|
|
1399
|
+
onclick="popupCode('Context.src/M000164.html');return false;">
|
|
1400
|
+
<span class="method-name">get_direction</span><span class="method-args">()</span>
|
|
1401
|
+
</a>
|
|
1402
|
+
</div>
|
|
1403
|
+
|
|
1404
|
+
<div class="method-description">
|
|
1405
|
+
<p>
|
|
1406
|
+
Get the current font direction (<a href="Dir.html">Imlib2::Dir</a> or <a
|
|
1407
|
+
href="Direction.html">Imlib2::Direction</a>).
|
|
1408
|
+
</p>
|
|
1409
|
+
<p>
|
|
1410
|
+
Example:
|
|
1411
|
+
</p>
|
|
1412
|
+
<pre>
|
|
1413
|
+
if ctx.direction != Imlib2::Direction::RIGHT
|
|
1414
|
+
puts 'drawing funny text'
|
|
1415
|
+
end
|
|
1416
|
+
</pre>
|
|
1417
|
+
</div>
|
|
1418
|
+
</div>
|
|
1419
|
+
|
|
1420
|
+
<div id="method-M000199" class="method-detail">
|
|
1421
|
+
<a name="M000199"></a>
|
|
1422
|
+
|
|
1423
|
+
<div class="method-heading">
|
|
1424
|
+
<a href="Context.src/M000199.html" target="Code" class="method-signature"
|
|
1425
|
+
onclick="popupCode('Context.src/M000199.html');return false;">
|
|
1426
|
+
<span class="method-name">get_display</span><span class="method-args">()</span>
|
|
1427
|
+
</a>
|
|
1428
|
+
</div>
|
|
1429
|
+
|
|
1430
|
+
<div class="method-description">
|
|
1431
|
+
<p>
|
|
1432
|
+
Get the current X11 Display.
|
|
1433
|
+
</p>
|
|
1434
|
+
<p>
|
|
1435
|
+
Note: This method is not available unless <a
|
|
1436
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1437
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1438
|
+
available.
|
|
1439
|
+
</p>
|
|
1440
|
+
<p>
|
|
1441
|
+
Examples:
|
|
1442
|
+
</p>
|
|
1443
|
+
<pre>
|
|
1444
|
+
display = context.get_display
|
|
1445
|
+
display = context.display
|
|
1446
|
+
</pre>
|
|
1447
|
+
</div>
|
|
1448
|
+
</div>
|
|
1449
|
+
|
|
1450
|
+
<div id="method-M000129" class="method-detail">
|
|
1451
|
+
<a name="M000129"></a>
|
|
1452
|
+
|
|
1453
|
+
<div class="method-heading">
|
|
1454
|
+
<a href="Context.src/M000129.html" target="Code" class="method-signature"
|
|
1455
|
+
onclick="popupCode('Context.src/M000129.html');return false;">
|
|
1456
|
+
<span class="method-name">get_dither</span><span class="method-args">()</span>
|
|
1457
|
+
</a>
|
|
1458
|
+
</div>
|
|
1459
|
+
|
|
1460
|
+
<div class="method-description">
|
|
1461
|
+
<p>
|
|
1462
|
+
Get the dither flag.
|
|
1463
|
+
</p>
|
|
1464
|
+
<p>
|
|
1465
|
+
Example:
|
|
1466
|
+
</p>
|
|
1467
|
+
<pre>
|
|
1468
|
+
if ctx.dither
|
|
1469
|
+
puts 'dither enabled.'
|
|
1470
|
+
end
|
|
1471
|
+
</pre>
|
|
1472
|
+
</div>
|
|
1473
|
+
</div>
|
|
1474
|
+
|
|
1475
|
+
<div id="method-M000133" class="method-detail">
|
|
1476
|
+
<a name="M000133"></a>
|
|
1477
|
+
|
|
1478
|
+
<div class="method-heading">
|
|
1479
|
+
<a href="Context.src/M000133.html" target="Code" class="method-signature"
|
|
1480
|
+
onclick="popupCode('Context.src/M000133.html');return false;">
|
|
1481
|
+
<span class="method-name">get_dither_mask</span><span class="method-args">()</span>
|
|
1482
|
+
</a>
|
|
1483
|
+
</div>
|
|
1484
|
+
|
|
1485
|
+
<div class="method-description">
|
|
1486
|
+
<p>
|
|
1487
|
+
Get the <a href="Context.html#M000134">dither_mask</a> flag.
|
|
1488
|
+
</p>
|
|
1489
|
+
<p>
|
|
1490
|
+
Example:
|
|
1491
|
+
</p>
|
|
1492
|
+
<pre>
|
|
1493
|
+
if ctx.dither_mask == true
|
|
1494
|
+
puts 'dither_mask enabled'
|
|
1495
|
+
end
|
|
1496
|
+
</pre>
|
|
1497
|
+
</div>
|
|
1498
|
+
</div>
|
|
1499
|
+
|
|
1500
|
+
<div id="method-M000215" class="method-detail">
|
|
1501
|
+
<a name="M000215"></a>
|
|
1502
|
+
|
|
1503
|
+
<div class="method-heading">
|
|
1504
|
+
<a href="Context.src/M000215.html" target="Code" class="method-signature"
|
|
1505
|
+
onclick="popupCode('Context.src/M000215.html');return false;">
|
|
1506
|
+
<span class="method-name">get_drawable</span><span class="method-args">()</span>
|
|
1507
|
+
</a>
|
|
1508
|
+
</div>
|
|
1509
|
+
|
|
1510
|
+
<div class="method-description">
|
|
1511
|
+
<p>
|
|
1512
|
+
Get the current X11 Drawable.
|
|
1513
|
+
</p>
|
|
1514
|
+
<p>
|
|
1515
|
+
Note: This method is not available unless <a
|
|
1516
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1517
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1518
|
+
available.
|
|
1519
|
+
</p>
|
|
1520
|
+
<p>
|
|
1521
|
+
Examples:
|
|
1522
|
+
</p>
|
|
1523
|
+
<pre>
|
|
1524
|
+
drawable = context.get_drawable
|
|
1525
|
+
drawable = context.drawable
|
|
1526
|
+
</pre>
|
|
1527
|
+
</div>
|
|
1528
|
+
</div>
|
|
1529
|
+
|
|
1530
|
+
<div id="method-M000194" class="method-detail">
|
|
1531
|
+
<a name="M000194"></a>
|
|
1532
|
+
|
|
1533
|
+
<div class="method-heading">
|
|
1534
|
+
<a href="Context.src/M000194.html" target="Code" class="method-signature"
|
|
1535
|
+
onclick="popupCode('Context.src/M000194.html');return false;">
|
|
1536
|
+
<span class="method-name">get_encoding</span><span class="method-args">()</span>
|
|
1537
|
+
</a>
|
|
1538
|
+
</div>
|
|
1539
|
+
|
|
1540
|
+
<div class="method-description">
|
|
1541
|
+
<p>
|
|
1542
|
+
Get the current TrueType <a href="Font.html">Font</a> <a
|
|
1543
|
+
href="Encoding.html">Encoding</a>.
|
|
1544
|
+
</p>
|
|
1545
|
+
<p>
|
|
1546
|
+
Example:
|
|
1547
|
+
</p>
|
|
1548
|
+
<pre>
|
|
1549
|
+
if ctx.encoding == Imlib2::Encoding::ISO_8859_1
|
|
1550
|
+
puts 'using ISO-8859-1 encoding'
|
|
1551
|
+
end
|
|
1552
|
+
</pre>
|
|
1553
|
+
</div>
|
|
1554
|
+
</div>
|
|
1555
|
+
|
|
1556
|
+
<div id="method-M000159" class="method-detail">
|
|
1557
|
+
<a name="M000159"></a>
|
|
1558
|
+
|
|
1559
|
+
<div class="method-heading">
|
|
1560
|
+
<a href="Context.src/M000159.html" target="Code" class="method-signature"
|
|
1561
|
+
onclick="popupCode('Context.src/M000159.html');return false;">
|
|
1562
|
+
<span class="method-name">get_font</span><span class="method-args">()</span>
|
|
1563
|
+
</a>
|
|
1564
|
+
</div>
|
|
1565
|
+
|
|
1566
|
+
<div class="method-description">
|
|
1567
|
+
<p>
|
|
1568
|
+
Get the current font (<a href="Font.html">Imlib2::Font</a>).
|
|
1569
|
+
</p>
|
|
1570
|
+
<p>
|
|
1571
|
+
Example:
|
|
1572
|
+
</p>
|
|
1573
|
+
<pre>
|
|
1574
|
+
font = ctx.font
|
|
1575
|
+
</pre>
|
|
1576
|
+
</div>
|
|
1577
|
+
</div>
|
|
1578
|
+
|
|
1579
|
+
<div id="method-M000177" class="method-detail">
|
|
1580
|
+
<a name="M000177"></a>
|
|
1581
|
+
|
|
1582
|
+
<div class="method-heading">
|
|
1583
|
+
<a href="Context.src/M000177.html" target="Code" class="method-signature"
|
|
1584
|
+
onclick="popupCode('Context.src/M000177.html');return false;">
|
|
1585
|
+
<span class="method-name">get_gradient</span><span class="method-args">()</span>
|
|
1586
|
+
</a>
|
|
1587
|
+
</div>
|
|
1588
|
+
|
|
1589
|
+
<div class="method-description">
|
|
1590
|
+
<p>
|
|
1591
|
+
Get the current gradient (<a href="Gradient.html">Imlib2::Gradient</a>).
|
|
1592
|
+
</p>
|
|
1593
|
+
<p>
|
|
1594
|
+
Example:
|
|
1595
|
+
</p>
|
|
1596
|
+
<pre>
|
|
1597
|
+
grad = ctx.gradient
|
|
1598
|
+
</pre>
|
|
1599
|
+
</div>
|
|
1600
|
+
</div>
|
|
1601
|
+
|
|
1602
|
+
<div id="method-M000185" class="method-detail">
|
|
1603
|
+
<a name="M000185"></a>
|
|
1604
|
+
|
|
1605
|
+
<div class="method-heading">
|
|
1606
|
+
<a href="Context.src/M000185.html" target="Code" class="method-signature"
|
|
1607
|
+
onclick="popupCode('Context.src/M000185.html');return false;">
|
|
1608
|
+
<span class="method-name">get_image</span><span class="method-args">()</span>
|
|
1609
|
+
</a>
|
|
1610
|
+
</div>
|
|
1611
|
+
|
|
1612
|
+
<div class="method-description">
|
|
1613
|
+
<p>
|
|
1614
|
+
Get the current image (<a href="Image.html">Imlib2::Image</a>).
|
|
1615
|
+
</p>
|
|
1616
|
+
<p>
|
|
1617
|
+
Note that this function is not useful at the moment since all image
|
|
1618
|
+
instance methods blindly blow away the image and color context. So you
|
|
1619
|
+
cannot safely mix image context and image instance methods.
|
|
1620
|
+
</p>
|
|
1621
|
+
<p>
|
|
1622
|
+
Example:
|
|
1623
|
+
</p>
|
|
1624
|
+
<pre>
|
|
1625
|
+
im = ctx.image
|
|
1626
|
+
</pre>
|
|
1627
|
+
</div>
|
|
1628
|
+
</div>
|
|
1629
|
+
|
|
1630
|
+
<div id="method-M000219" class="method-detail">
|
|
1631
|
+
<a name="M000219"></a>
|
|
1632
|
+
|
|
1633
|
+
<div class="method-heading">
|
|
1634
|
+
<a href="Context.src/M000219.html" target="Code" class="method-signature"
|
|
1635
|
+
onclick="popupCode('Context.src/M000219.html');return false;">
|
|
1636
|
+
<span class="method-name">get_mask</span><span class="method-args">()</span>
|
|
1637
|
+
</a>
|
|
1638
|
+
</div>
|
|
1639
|
+
|
|
1640
|
+
<div class="method-description">
|
|
1641
|
+
<p>
|
|
1642
|
+
Get the current X11 Mask.
|
|
1643
|
+
</p>
|
|
1644
|
+
<p>
|
|
1645
|
+
Note: This method is not available unless <a
|
|
1646
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1647
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1648
|
+
available.
|
|
1649
|
+
</p>
|
|
1650
|
+
<p>
|
|
1651
|
+
Examples:
|
|
1652
|
+
</p>
|
|
1653
|
+
<pre>
|
|
1654
|
+
mask = context.get_mask
|
|
1655
|
+
mask = context.mask
|
|
1656
|
+
</pre>
|
|
1657
|
+
</div>
|
|
1658
|
+
</div>
|
|
1659
|
+
|
|
1660
|
+
<div id="method-M000154" class="method-detail">
|
|
1661
|
+
<a name="M000154"></a>
|
|
1662
|
+
|
|
1663
|
+
<div class="method-heading">
|
|
1664
|
+
<a href="Context.src/M000154.html" target="Code" class="method-signature"
|
|
1665
|
+
onclick="popupCode('Context.src/M000154.html');return false;">
|
|
1666
|
+
<span class="method-name">get_operation</span><span class="method-args">()</span>
|
|
1667
|
+
</a>
|
|
1668
|
+
</div>
|
|
1669
|
+
|
|
1670
|
+
<div class="method-description">
|
|
1671
|
+
<p>
|
|
1672
|
+
Get the current operation (<a href="Op.html">Imlib2::Op</a> or <a
|
|
1673
|
+
href="Operation.html">Imlib2::Operation</a>).
|
|
1674
|
+
</p>
|
|
1675
|
+
<p>
|
|
1676
|
+
Example:
|
|
1677
|
+
</p>
|
|
1678
|
+
<pre>
|
|
1679
|
+
if ctx.op == Imlib2::Op::COPY
|
|
1680
|
+
puts 'copy operation'
|
|
1681
|
+
end
|
|
1682
|
+
</pre>
|
|
1683
|
+
</div>
|
|
1684
|
+
</div>
|
|
1685
|
+
|
|
1686
|
+
<div id="method-M000181" class="method-detail">
|
|
1687
|
+
<a name="M000181"></a>
|
|
1688
|
+
|
|
1689
|
+
<div class="method-heading">
|
|
1690
|
+
<a href="Context.src/M000181.html" target="Code" class="method-signature"
|
|
1691
|
+
onclick="popupCode('Context.src/M000181.html');return false;">
|
|
1692
|
+
<span class="method-name">get_progress_granularity</span><span class="method-args">()</span>
|
|
1693
|
+
</a>
|
|
1694
|
+
</div>
|
|
1695
|
+
|
|
1696
|
+
<div class="method-description">
|
|
1697
|
+
<p>
|
|
1698
|
+
Get the progress callback granularity.
|
|
1699
|
+
</p>
|
|
1700
|
+
<p>
|
|
1701
|
+
This function is not useful at the moment since you cannot specify progress
|
|
1702
|
+
callbacks from within Ruby (this is a TODO item).
|
|
1703
|
+
</p>
|
|
1704
|
+
<p>
|
|
1705
|
+
Example:
|
|
1706
|
+
</p>
|
|
1707
|
+
<pre>
|
|
1708
|
+
granularity = ctx.progress_granularity
|
|
1709
|
+
</pre>
|
|
1710
|
+
</div>
|
|
1711
|
+
</div>
|
|
1712
|
+
|
|
1713
|
+
<div id="method-M000195" class="method-detail">
|
|
1714
|
+
<a name="M000195"></a>
|
|
1715
|
+
|
|
1716
|
+
<div class="method-heading">
|
|
1717
|
+
<a href="Context.src/M000195.html" target="Code" class="method-signature"
|
|
1718
|
+
onclick="popupCode('Context.src/M000195.html');return false;">
|
|
1719
|
+
<span class="method-name">get_ttf_encoding</span><span class="method-args">()</span>
|
|
1720
|
+
</a>
|
|
1721
|
+
</div>
|
|
1722
|
+
|
|
1723
|
+
<div class="method-description">
|
|
1724
|
+
<p>
|
|
1725
|
+
Get the current TrueType <a href="Font.html">Font</a> <a
|
|
1726
|
+
href="Encoding.html">Encoding</a>.
|
|
1727
|
+
</p>
|
|
1728
|
+
<p>
|
|
1729
|
+
Example:
|
|
1730
|
+
</p>
|
|
1731
|
+
<pre>
|
|
1732
|
+
if ctx.encoding == Imlib2::Encoding::ISO_8859_1
|
|
1733
|
+
puts 'using ISO-8859-1 encoding'
|
|
1734
|
+
end
|
|
1735
|
+
</pre>
|
|
1736
|
+
</div>
|
|
1737
|
+
</div>
|
|
1738
|
+
|
|
1739
|
+
<div id="method-M000221" class="method-detail">
|
|
1740
|
+
<a name="M000221"></a>
|
|
1741
|
+
|
|
1742
|
+
<div class="method-heading">
|
|
1743
|
+
<a href="Context.src/M000221.html" target="Code" class="method-signature"
|
|
1744
|
+
onclick="popupCode('Context.src/M000221.html');return false;">
|
|
1745
|
+
<span class="method-name">get_visual</span><span class="method-args">(...)</span>
|
|
1746
|
+
</a>
|
|
1747
|
+
</div>
|
|
1748
|
+
|
|
1749
|
+
<div class="method-description">
|
|
1750
|
+
<p>
|
|
1751
|
+
Get the current X11 Visual.
|
|
1752
|
+
</p>
|
|
1753
|
+
<p>
|
|
1754
|
+
Note: This method is not available unless <a
|
|
1755
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1756
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1757
|
+
available.
|
|
1758
|
+
</p>
|
|
1759
|
+
<p>
|
|
1760
|
+
Examples:
|
|
1761
|
+
</p>
|
|
1762
|
+
<pre>
|
|
1763
|
+
visual = context.get_visual
|
|
1764
|
+
visual = context.visual
|
|
1765
|
+
</pre>
|
|
1766
|
+
</div>
|
|
1767
|
+
</div>
|
|
1768
|
+
|
|
1769
|
+
<div id="method-M000203" class="method-detail">
|
|
1770
|
+
<a name="M000203"></a>
|
|
1771
|
+
|
|
1772
|
+
<div class="method-heading">
|
|
1773
|
+
<a href="Context.src/M000203.html" target="Code" class="method-signature"
|
|
1774
|
+
onclick="popupCode('Context.src/M000203.html');return false;">
|
|
1775
|
+
<span class="method-name">get_visual</span><span class="method-args">()</span>
|
|
1776
|
+
</a>
|
|
1777
|
+
</div>
|
|
1778
|
+
|
|
1779
|
+
<div class="method-description">
|
|
1780
|
+
<p>
|
|
1781
|
+
Get the current X11 Visual.
|
|
1782
|
+
</p>
|
|
1783
|
+
<p>
|
|
1784
|
+
Note: This method is not available unless <a
|
|
1785
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1786
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1787
|
+
available.
|
|
1788
|
+
</p>
|
|
1789
|
+
<p>
|
|
1790
|
+
Examples:
|
|
1791
|
+
</p>
|
|
1792
|
+
<pre>
|
|
1793
|
+
visual = context.get_visual
|
|
1794
|
+
visual = context.visual
|
|
1795
|
+
</pre>
|
|
1796
|
+
</div>
|
|
1797
|
+
</div>
|
|
1798
|
+
|
|
1799
|
+
<div id="method-M000178" class="method-detail">
|
|
1800
|
+
<a name="M000178"></a>
|
|
1801
|
+
|
|
1802
|
+
<div class="method-heading">
|
|
1803
|
+
<a href="Context.src/M000178.html" target="Code" class="method-signature"
|
|
1804
|
+
onclick="popupCode('Context.src/M000178.html');return false;">
|
|
1805
|
+
<span class="method-name">gradient</span><span class="method-args">()</span>
|
|
1806
|
+
</a>
|
|
1807
|
+
</div>
|
|
1808
|
+
|
|
1809
|
+
<div class="method-description">
|
|
1810
|
+
<p>
|
|
1811
|
+
Get the current gradient (<a href="Gradient.html">Imlib2::Gradient</a>).
|
|
1812
|
+
</p>
|
|
1813
|
+
<p>
|
|
1814
|
+
Example:
|
|
1815
|
+
</p>
|
|
1816
|
+
<pre>
|
|
1817
|
+
grad = ctx.gradient
|
|
1818
|
+
</pre>
|
|
1819
|
+
</div>
|
|
1820
|
+
</div>
|
|
1821
|
+
|
|
1822
|
+
<div id="method-M000176" class="method-detail">
|
|
1823
|
+
<a name="M000176"></a>
|
|
1824
|
+
|
|
1825
|
+
<div class="method-heading">
|
|
1826
|
+
<a href="Context.src/M000176.html" target="Code" class="method-signature"
|
|
1827
|
+
onclick="popupCode('Context.src/M000176.html');return false;">
|
|
1828
|
+
<span class="method-name">gradient=</span><span class="method-args">(p1)</span>
|
|
1829
|
+
</a>
|
|
1830
|
+
</div>
|
|
1831
|
+
|
|
1832
|
+
<div class="method-description">
|
|
1833
|
+
<p>
|
|
1834
|
+
Set the current gradient (<a href="Gradient.html">Imlib2::Gradient</a>).
|
|
1835
|
+
</p>
|
|
1836
|
+
<p>
|
|
1837
|
+
Example:
|
|
1838
|
+
</p>
|
|
1839
|
+
<pre>
|
|
1840
|
+
ctx.gradient = grad
|
|
1841
|
+
</pre>
|
|
1842
|
+
</div>
|
|
1843
|
+
</div>
|
|
1844
|
+
|
|
1845
|
+
<div id="method-M000186" class="method-detail">
|
|
1846
|
+
<a name="M000186"></a>
|
|
1847
|
+
|
|
1848
|
+
<div class="method-heading">
|
|
1849
|
+
<a href="Context.src/M000186.html" target="Code" class="method-signature"
|
|
1850
|
+
onclick="popupCode('Context.src/M000186.html');return false;">
|
|
1851
|
+
<span class="method-name">image</span><span class="method-args">()</span>
|
|
1852
|
+
</a>
|
|
1853
|
+
</div>
|
|
1854
|
+
|
|
1855
|
+
<div class="method-description">
|
|
1856
|
+
<p>
|
|
1857
|
+
Get the current image (<a href="Image.html">Imlib2::Image</a>).
|
|
1858
|
+
</p>
|
|
1859
|
+
<p>
|
|
1860
|
+
Note that this function is not useful at the moment since all image
|
|
1861
|
+
instance methods blindly blow away the image and color context. So you
|
|
1862
|
+
cannot safely mix image context and image instance methods.
|
|
1863
|
+
</p>
|
|
1864
|
+
<p>
|
|
1865
|
+
Example:
|
|
1866
|
+
</p>
|
|
1867
|
+
<pre>
|
|
1868
|
+
im = ctx.image
|
|
1869
|
+
</pre>
|
|
1870
|
+
</div>
|
|
1871
|
+
</div>
|
|
1872
|
+
|
|
1873
|
+
<div id="method-M000184" class="method-detail">
|
|
1874
|
+
<a name="M000184"></a>
|
|
1875
|
+
|
|
1876
|
+
<div class="method-heading">
|
|
1877
|
+
<a href="Context.src/M000184.html" target="Code" class="method-signature"
|
|
1878
|
+
onclick="popupCode('Context.src/M000184.html');return false;">
|
|
1879
|
+
<span class="method-name">image=</span><span class="method-args">(p1)</span>
|
|
1880
|
+
</a>
|
|
1881
|
+
</div>
|
|
1882
|
+
|
|
1883
|
+
<div class="method-description">
|
|
1884
|
+
<p>
|
|
1885
|
+
Set the current image (<a href="Image.html">Imlib2::Image</a>).
|
|
1886
|
+
</p>
|
|
1887
|
+
<p>
|
|
1888
|
+
Note that this function is not useful at the moment since all image
|
|
1889
|
+
instance methods blindly blow away the image and color context. So you
|
|
1890
|
+
cannot safely mix image context and image instance methods.
|
|
1891
|
+
</p>
|
|
1892
|
+
<p>
|
|
1893
|
+
Example:
|
|
1894
|
+
</p>
|
|
1895
|
+
<pre>
|
|
1896
|
+
ctx.image = image
|
|
1897
|
+
</pre>
|
|
1898
|
+
</div>
|
|
1899
|
+
</div>
|
|
1900
|
+
|
|
1901
|
+
<div id="method-M000220" class="method-detail">
|
|
1902
|
+
<a name="M000220"></a>
|
|
1903
|
+
|
|
1904
|
+
<div class="method-heading">
|
|
1905
|
+
<a href="Context.src/M000220.html" target="Code" class="method-signature"
|
|
1906
|
+
onclick="popupCode('Context.src/M000220.html');return false;">
|
|
1907
|
+
<span class="method-name">mask</span><span class="method-args">()</span>
|
|
1908
|
+
</a>
|
|
1909
|
+
</div>
|
|
1910
|
+
|
|
1911
|
+
<div class="method-description">
|
|
1912
|
+
<p>
|
|
1913
|
+
Get the current X11 Mask.
|
|
1914
|
+
</p>
|
|
1915
|
+
<p>
|
|
1916
|
+
Note: This method is not available unless <a
|
|
1917
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1918
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1919
|
+
available.
|
|
1920
|
+
</p>
|
|
1921
|
+
<p>
|
|
1922
|
+
Examples:
|
|
1923
|
+
</p>
|
|
1924
|
+
<pre>
|
|
1925
|
+
mask = context.get_mask
|
|
1926
|
+
mask = context.mask
|
|
1927
|
+
</pre>
|
|
1928
|
+
</div>
|
|
1929
|
+
</div>
|
|
1930
|
+
|
|
1931
|
+
<div id="method-M000218" class="method-detail">
|
|
1932
|
+
<a name="M000218"></a>
|
|
1933
|
+
|
|
1934
|
+
<div class="method-heading">
|
|
1935
|
+
<a href="Context.src/M000218.html" target="Code" class="method-signature"
|
|
1936
|
+
onclick="popupCode('Context.src/M000218.html');return false;">
|
|
1937
|
+
<span class="method-name">mask=</span><span class="method-args">(p1)</span>
|
|
1938
|
+
</a>
|
|
1939
|
+
</div>
|
|
1940
|
+
|
|
1941
|
+
<div class="method-description">
|
|
1942
|
+
<p>
|
|
1943
|
+
Set the current X11 Mask.
|
|
1944
|
+
</p>
|
|
1945
|
+
<p>
|
|
1946
|
+
Note: This method is not available unless <a
|
|
1947
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
1948
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
1949
|
+
available.
|
|
1950
|
+
</p>
|
|
1951
|
+
<p>
|
|
1952
|
+
Examples:
|
|
1953
|
+
</p>
|
|
1954
|
+
<pre>
|
|
1955
|
+
context.set_mask mask
|
|
1956
|
+
context.mask = mask
|
|
1957
|
+
</pre>
|
|
1958
|
+
</div>
|
|
1959
|
+
</div>
|
|
1960
|
+
|
|
1961
|
+
<div id="method-M000156" class="method-detail">
|
|
1962
|
+
<a name="M000156"></a>
|
|
1963
|
+
|
|
1964
|
+
<div class="method-heading">
|
|
1965
|
+
<a href="Context.src/M000156.html" target="Code" class="method-signature"
|
|
1966
|
+
onclick="popupCode('Context.src/M000156.html');return false;">
|
|
1967
|
+
<span class="method-name">op</span><span class="method-args">()</span>
|
|
1968
|
+
</a>
|
|
1969
|
+
</div>
|
|
1970
|
+
|
|
1971
|
+
<div class="method-description">
|
|
1972
|
+
<p>
|
|
1973
|
+
Get the current operation (<a href="Op.html">Imlib2::Op</a> or <a
|
|
1974
|
+
href="Operation.html">Imlib2::Operation</a>).
|
|
1975
|
+
</p>
|
|
1976
|
+
<p>
|
|
1977
|
+
Example:
|
|
1978
|
+
</p>
|
|
1979
|
+
<pre>
|
|
1980
|
+
if ctx.op == Imlib2::Op::COPY
|
|
1981
|
+
puts 'copy operation'
|
|
1982
|
+
end
|
|
1983
|
+
</pre>
|
|
1984
|
+
</div>
|
|
1985
|
+
</div>
|
|
1986
|
+
|
|
1987
|
+
<div id="method-M000153" class="method-detail">
|
|
1988
|
+
<a name="M000153"></a>
|
|
1989
|
+
|
|
1990
|
+
<div class="method-heading">
|
|
1991
|
+
<a href="Context.src/M000153.html" target="Code" class="method-signature"
|
|
1992
|
+
onclick="popupCode('Context.src/M000153.html');return false;">
|
|
1993
|
+
<span class="method-name">op=</span><span class="method-args">(p1)</span>
|
|
1994
|
+
</a>
|
|
1995
|
+
</div>
|
|
1996
|
+
|
|
1997
|
+
<div class="method-description">
|
|
1998
|
+
<p>
|
|
1999
|
+
Set the current operation (<a href="Op.html">Imlib2::Op</a> or <a
|
|
2000
|
+
href="Operation.html">Imlib2::Operation</a>).
|
|
2001
|
+
</p>
|
|
2002
|
+
<p>
|
|
2003
|
+
Example:
|
|
2004
|
+
</p>
|
|
2005
|
+
<pre>
|
|
2006
|
+
ctx.operation = Imlib2::Op::COPY
|
|
2007
|
+
</pre>
|
|
2008
|
+
</div>
|
|
2009
|
+
</div>
|
|
2010
|
+
|
|
2011
|
+
<div id="method-M000155" class="method-detail">
|
|
2012
|
+
<a name="M000155"></a>
|
|
2013
|
+
|
|
2014
|
+
<div class="method-heading">
|
|
2015
|
+
<a href="Context.src/M000155.html" target="Code" class="method-signature"
|
|
2016
|
+
onclick="popupCode('Context.src/M000155.html');return false;">
|
|
2017
|
+
<span class="method-name">operation</span><span class="method-args">()</span>
|
|
2018
|
+
</a>
|
|
2019
|
+
</div>
|
|
2020
|
+
|
|
2021
|
+
<div class="method-description">
|
|
2022
|
+
<p>
|
|
2023
|
+
Get the current operation (<a href="Op.html">Imlib2::Op</a> or <a
|
|
2024
|
+
href="Operation.html">Imlib2::Operation</a>).
|
|
2025
|
+
</p>
|
|
2026
|
+
<p>
|
|
2027
|
+
Example:
|
|
2028
|
+
</p>
|
|
2029
|
+
<pre>
|
|
2030
|
+
if ctx.op == Imlib2::Op::COPY
|
|
2031
|
+
puts 'copy operation'
|
|
2032
|
+
end
|
|
2033
|
+
</pre>
|
|
2034
|
+
</div>
|
|
2035
|
+
</div>
|
|
2036
|
+
|
|
2037
|
+
<div id="method-M000152" class="method-detail">
|
|
2038
|
+
<a name="M000152"></a>
|
|
2039
|
+
|
|
2040
|
+
<div class="method-heading">
|
|
2041
|
+
<a href="Context.src/M000152.html" target="Code" class="method-signature"
|
|
2042
|
+
onclick="popupCode('Context.src/M000152.html');return false;">
|
|
2043
|
+
<span class="method-name">operation=</span><span class="method-args">(p1)</span>
|
|
2044
|
+
</a>
|
|
2045
|
+
</div>
|
|
2046
|
+
|
|
2047
|
+
<div class="method-description">
|
|
2048
|
+
<p>
|
|
2049
|
+
Set the current operation (<a href="Op.html">Imlib2::Op</a> or <a
|
|
2050
|
+
href="Operation.html">Imlib2::Operation</a>).
|
|
2051
|
+
</p>
|
|
2052
|
+
<p>
|
|
2053
|
+
Example:
|
|
2054
|
+
</p>
|
|
2055
|
+
<pre>
|
|
2056
|
+
ctx.operation = Imlib2::Op::COPY
|
|
2057
|
+
</pre>
|
|
2058
|
+
</div>
|
|
2059
|
+
</div>
|
|
2060
|
+
|
|
2061
|
+
<div id="method-M000182" class="method-detail">
|
|
2062
|
+
<a name="M000182"></a>
|
|
2063
|
+
|
|
2064
|
+
<div class="method-heading">
|
|
2065
|
+
<a href="Context.src/M000182.html" target="Code" class="method-signature"
|
|
2066
|
+
onclick="popupCode('Context.src/M000182.html');return false;">
|
|
2067
|
+
<span class="method-name">progress_granularity</span><span class="method-args">()</span>
|
|
2068
|
+
</a>
|
|
2069
|
+
</div>
|
|
2070
|
+
|
|
2071
|
+
<div class="method-description">
|
|
2072
|
+
<p>
|
|
2073
|
+
Get the progress callback granularity.
|
|
2074
|
+
</p>
|
|
2075
|
+
<p>
|
|
2076
|
+
This function is not useful at the moment since you cannot specify progress
|
|
2077
|
+
callbacks from within Ruby (this is a TODO item).
|
|
2078
|
+
</p>
|
|
2079
|
+
<p>
|
|
2080
|
+
Example:
|
|
2081
|
+
</p>
|
|
2082
|
+
<pre>
|
|
2083
|
+
granularity = ctx.progress_granularity
|
|
2084
|
+
</pre>
|
|
2085
|
+
</div>
|
|
2086
|
+
</div>
|
|
2087
|
+
|
|
2088
|
+
<div id="method-M000180" class="method-detail">
|
|
2089
|
+
<a name="M000180"></a>
|
|
2090
|
+
|
|
2091
|
+
<div class="method-heading">
|
|
2092
|
+
<a href="Context.src/M000180.html" target="Code" class="method-signature"
|
|
2093
|
+
onclick="popupCode('Context.src/M000180.html');return false;">
|
|
2094
|
+
<span class="method-name">progress_granularity=</span><span class="method-args">(p1)</span>
|
|
2095
|
+
</a>
|
|
2096
|
+
</div>
|
|
2097
|
+
|
|
2098
|
+
<div class="method-description">
|
|
2099
|
+
<p>
|
|
2100
|
+
Set the progress callback granularity.
|
|
2101
|
+
</p>
|
|
2102
|
+
<p>
|
|
2103
|
+
This function is not useful at the moment since you cannot specify progress
|
|
2104
|
+
callbacks from within ruby (this is a TODO item).
|
|
2105
|
+
</p>
|
|
2106
|
+
<p>
|
|
2107
|
+
Example:
|
|
2108
|
+
</p>
|
|
2109
|
+
<pre>
|
|
2110
|
+
ctx.progress_granularity = 10
|
|
2111
|
+
</pre>
|
|
2112
|
+
</div>
|
|
2113
|
+
</div>
|
|
2114
|
+
|
|
2115
|
+
<div id="method-M000123" class="method-detail">
|
|
2116
|
+
<a name="M000123"></a>
|
|
2117
|
+
|
|
2118
|
+
<div class="method-heading">
|
|
2119
|
+
<a href="Context.src/M000123.html" target="Code" class="method-signature"
|
|
2120
|
+
onclick="popupCode('Context.src/M000123.html');return false;">
|
|
2121
|
+
<span class="method-name">push</span><span class="method-args">()</span>
|
|
2122
|
+
</a>
|
|
2123
|
+
</div>
|
|
2124
|
+
|
|
2125
|
+
<div class="method-description">
|
|
2126
|
+
<p>
|
|
2127
|
+
Push this context onto the context stack.
|
|
2128
|
+
</p>
|
|
2129
|
+
<p>
|
|
2130
|
+
Example:
|
|
2131
|
+
</p>
|
|
2132
|
+
<pre>
|
|
2133
|
+
ctx.push
|
|
2134
|
+
</pre>
|
|
2135
|
+
</div>
|
|
2136
|
+
</div>
|
|
2137
|
+
|
|
2138
|
+
<div id="method-M000167" class="method-detail">
|
|
2139
|
+
<a name="M000167"></a>
|
|
2140
|
+
|
|
2141
|
+
<div class="method-heading">
|
|
2142
|
+
<a href="Context.src/M000167.html" target="Code" class="method-signature"
|
|
2143
|
+
onclick="popupCode('Context.src/M000167.html');return false;">
|
|
2144
|
+
<span class="method-name">set_angle</span><span class="method-args">(p1)</span>
|
|
2145
|
+
</a>
|
|
2146
|
+
</div>
|
|
2147
|
+
|
|
2148
|
+
<div class="method-description">
|
|
2149
|
+
<p>
|
|
2150
|
+
Set the text drawing angle.
|
|
2151
|
+
</p>
|
|
2152
|
+
<p>
|
|
2153
|
+
Example:
|
|
2154
|
+
</p>
|
|
2155
|
+
<pre>
|
|
2156
|
+
ctx.angle = 76.8
|
|
2157
|
+
</pre>
|
|
2158
|
+
</div>
|
|
2159
|
+
</div>
|
|
2160
|
+
|
|
2161
|
+
<div id="method-M000135" class="method-detail">
|
|
2162
|
+
<a name="M000135"></a>
|
|
2163
|
+
|
|
2164
|
+
<div class="method-heading">
|
|
2165
|
+
<a href="Context.src/M000135.html" target="Code" class="method-signature"
|
|
2166
|
+
onclick="popupCode('Context.src/M000135.html');return false;">
|
|
2167
|
+
<span class="method-name">set_anti_alias</span><span class="method-args">(p1)</span>
|
|
2168
|
+
</a>
|
|
2169
|
+
</div>
|
|
2170
|
+
|
|
2171
|
+
<div class="method-description">
|
|
2172
|
+
<p>
|
|
2173
|
+
Set the <a href="Context.html#M000139">anti_alias</a> flag.
|
|
2174
|
+
</p>
|
|
2175
|
+
<p>
|
|
2176
|
+
Example:
|
|
2177
|
+
</p>
|
|
2178
|
+
<pre>
|
|
2179
|
+
ctx.anti_alias = true
|
|
2180
|
+
</pre>
|
|
2181
|
+
</div>
|
|
2182
|
+
</div>
|
|
2183
|
+
|
|
2184
|
+
<div id="method-M000141" class="method-detail">
|
|
2185
|
+
<a name="M000141"></a>
|
|
2186
|
+
|
|
2187
|
+
<div class="method-heading">
|
|
2188
|
+
<a href="Context.src/M000141.html" target="Code" class="method-signature"
|
|
2189
|
+
onclick="popupCode('Context.src/M000141.html');return false;">
|
|
2190
|
+
<span class="method-name">set_blend</span><span class="method-args">(p1)</span>
|
|
2191
|
+
</a>
|
|
2192
|
+
</div>
|
|
2193
|
+
|
|
2194
|
+
<div class="method-description">
|
|
2195
|
+
<p>
|
|
2196
|
+
Set the blend flag.
|
|
2197
|
+
</p>
|
|
2198
|
+
<p>
|
|
2199
|
+
Example:
|
|
2200
|
+
</p>
|
|
2201
|
+
<pre>
|
|
2202
|
+
ctx.blend = true
|
|
2203
|
+
</pre>
|
|
2204
|
+
</div>
|
|
2205
|
+
</div>
|
|
2206
|
+
|
|
2207
|
+
<div id="method-M000187" class="method-detail">
|
|
2208
|
+
<a name="M000187"></a>
|
|
2209
|
+
|
|
2210
|
+
<div class="method-heading">
|
|
2211
|
+
<a href="Context.src/M000187.html" target="Code" class="method-signature"
|
|
2212
|
+
onclick="popupCode('Context.src/M000187.html');return false;">
|
|
2213
|
+
<span class="method-name">set_cliprect</span><span class="method-args">(p1)</span>
|
|
2214
|
+
</a>
|
|
2215
|
+
</div>
|
|
2216
|
+
|
|
2217
|
+
<div class="method-description">
|
|
2218
|
+
<p>
|
|
2219
|
+
Set the cliprect.
|
|
2220
|
+
</p>
|
|
2221
|
+
<p>
|
|
2222
|
+
Example:
|
|
2223
|
+
</p>
|
|
2224
|
+
<pre>
|
|
2225
|
+
ctx.cliprect = [10, 10, 100, 100]
|
|
2226
|
+
</pre>
|
|
2227
|
+
</div>
|
|
2228
|
+
</div>
|
|
2229
|
+
|
|
2230
|
+
<div id="method-M000207" class="method-detail">
|
|
2231
|
+
<a name="M000207"></a>
|
|
2232
|
+
|
|
2233
|
+
<div class="method-heading">
|
|
2234
|
+
<span class="method-name">set_cmap</span><span class="method-args">(p1)</span>
|
|
2235
|
+
</div>
|
|
2236
|
+
|
|
2237
|
+
<div class="method-description">
|
|
2238
|
+
</div>
|
|
2239
|
+
</div>
|
|
2240
|
+
|
|
2241
|
+
<div id="method-M000171" class="method-detail">
|
|
2242
|
+
<a name="M000171"></a>
|
|
2243
|
+
|
|
2244
|
+
<div class="method-heading">
|
|
2245
|
+
<a href="Context.src/M000171.html" target="Code" class="method-signature"
|
|
2246
|
+
onclick="popupCode('Context.src/M000171.html');return false;">
|
|
2247
|
+
<span class="method-name">set_color</span><span class="method-args">(p1)</span>
|
|
2248
|
+
</a>
|
|
2249
|
+
</div>
|
|
2250
|
+
|
|
2251
|
+
<div class="method-description">
|
|
2252
|
+
<p>
|
|
2253
|
+
Set the current color (<a href="Color.html">Imlib2::Color</a>).
|
|
2254
|
+
</p>
|
|
2255
|
+
<p>
|
|
2256
|
+
Example:
|
|
2257
|
+
</p>
|
|
2258
|
+
<pre>
|
|
2259
|
+
ctx.color = Imlib2::Color::LIGHTGRAY
|
|
2260
|
+
</pre>
|
|
2261
|
+
</div>
|
|
2262
|
+
</div>
|
|
2263
|
+
|
|
2264
|
+
<div id="method-M000145" class="method-detail">
|
|
2265
|
+
<a name="M000145"></a>
|
|
2266
|
+
|
|
2267
|
+
<div class="method-heading">
|
|
2268
|
+
<a href="Context.src/M000145.html" target="Code" class="method-signature"
|
|
2269
|
+
onclick="popupCode('Context.src/M000145.html');return false;">
|
|
2270
|
+
<span class="method-name">set_color_modifier</span><span class="method-args">(p1)</span>
|
|
2271
|
+
</a>
|
|
2272
|
+
</div>
|
|
2273
|
+
|
|
2274
|
+
<div class="method-description">
|
|
2275
|
+
<p>
|
|
2276
|
+
Set the current color modifier (<a
|
|
2277
|
+
href="ColorModifier.html">Imlib2::ColorModifier</a>).
|
|
2278
|
+
</p>
|
|
2279
|
+
<p>
|
|
2280
|
+
Example:
|
|
2281
|
+
</p>
|
|
2282
|
+
<pre>
|
|
2283
|
+
ctx.cmod = cmod
|
|
2284
|
+
</pre>
|
|
2285
|
+
</div>
|
|
2286
|
+
</div>
|
|
2287
|
+
|
|
2288
|
+
<div id="method-M000205" class="method-detail">
|
|
2289
|
+
<a name="M000205"></a>
|
|
2290
|
+
|
|
2291
|
+
<div class="method-heading">
|
|
2292
|
+
<span class="method-name">set_colormap</span><span class="method-args">(p1)</span>
|
|
2293
|
+
</div>
|
|
2294
|
+
|
|
2295
|
+
<div class="method-description">
|
|
2296
|
+
</div>
|
|
2297
|
+
</div>
|
|
2298
|
+
|
|
2299
|
+
<div id="method-M000161" class="method-detail">
|
|
2300
|
+
<a name="M000161"></a>
|
|
2301
|
+
|
|
2302
|
+
<div class="method-heading">
|
|
2303
|
+
<a href="Context.src/M000161.html" target="Code" class="method-signature"
|
|
2304
|
+
onclick="popupCode('Context.src/M000161.html');return false;">
|
|
2305
|
+
<span class="method-name">set_direction</span><span class="method-args">(p1)</span>
|
|
2306
|
+
</a>
|
|
2307
|
+
</div>
|
|
2308
|
+
|
|
2309
|
+
<div class="method-description">
|
|
2310
|
+
<p>
|
|
2311
|
+
Set the current font direction (<a href="Dir.html">Imlib2::Dir</a> or <a
|
|
2312
|
+
href="Direction.html">Imlib2::Direction</a>).
|
|
2313
|
+
</p>
|
|
2314
|
+
<p>
|
|
2315
|
+
Example:
|
|
2316
|
+
</p>
|
|
2317
|
+
<pre>
|
|
2318
|
+
ctx.direction = Imlib2::Direction::LEFT
|
|
2319
|
+
</pre>
|
|
2320
|
+
</div>
|
|
2321
|
+
</div>
|
|
2322
|
+
|
|
2323
|
+
<div id="method-M000197" class="method-detail">
|
|
2324
|
+
<a name="M000197"></a>
|
|
2325
|
+
|
|
2326
|
+
<div class="method-heading">
|
|
2327
|
+
<a href="Context.src/M000197.html" target="Code" class="method-signature"
|
|
2328
|
+
onclick="popupCode('Context.src/M000197.html');return false;">
|
|
2329
|
+
<span class="method-name">set_display</span><span class="method-args">(p1)</span>
|
|
2330
|
+
</a>
|
|
2331
|
+
</div>
|
|
2332
|
+
|
|
2333
|
+
<div class="method-description">
|
|
2334
|
+
<p>
|
|
2335
|
+
Set the current X11 Display.
|
|
2336
|
+
</p>
|
|
2337
|
+
<p>
|
|
2338
|
+
Note: This method is not available unless <a
|
|
2339
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
2340
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
2341
|
+
available.
|
|
2342
|
+
</p>
|
|
2343
|
+
<p>
|
|
2344
|
+
Examples:
|
|
2345
|
+
</p>
|
|
2346
|
+
<pre>
|
|
2347
|
+
context.set_display display
|
|
2348
|
+
context.display = display
|
|
2349
|
+
</pre>
|
|
2350
|
+
</div>
|
|
2351
|
+
</div>
|
|
2352
|
+
|
|
2353
|
+
<div id="method-M000127" class="method-detail">
|
|
2354
|
+
<a name="M000127"></a>
|
|
2355
|
+
|
|
2356
|
+
<div class="method-heading">
|
|
2357
|
+
<a href="Context.src/M000127.html" target="Code" class="method-signature"
|
|
2358
|
+
onclick="popupCode('Context.src/M000127.html');return false;">
|
|
2359
|
+
<span class="method-name">set_dither</span><span class="method-args">(p1)</span>
|
|
2360
|
+
</a>
|
|
2361
|
+
</div>
|
|
2362
|
+
|
|
2363
|
+
<div class="method-description">
|
|
2364
|
+
<p>
|
|
2365
|
+
Set the dither flag.
|
|
2366
|
+
</p>
|
|
2367
|
+
<p>
|
|
2368
|
+
Example:
|
|
2369
|
+
</p>
|
|
2370
|
+
<pre>
|
|
2371
|
+
ctx.dither = true
|
|
2372
|
+
</pre>
|
|
2373
|
+
</div>
|
|
2374
|
+
</div>
|
|
2375
|
+
|
|
2376
|
+
<div id="method-M000131" class="method-detail">
|
|
2377
|
+
<a name="M000131"></a>
|
|
2378
|
+
|
|
2379
|
+
<div class="method-heading">
|
|
2380
|
+
<a href="Context.src/M000131.html" target="Code" class="method-signature"
|
|
2381
|
+
onclick="popupCode('Context.src/M000131.html');return false;">
|
|
2382
|
+
<span class="method-name">set_dither_mask</span><span class="method-args">(p1)</span>
|
|
2383
|
+
</a>
|
|
2384
|
+
</div>
|
|
2385
|
+
|
|
2386
|
+
<div class="method-description">
|
|
2387
|
+
<p>
|
|
2388
|
+
Set the <a href="Context.html#M000134">dither_mask</a> flag.
|
|
2389
|
+
</p>
|
|
2390
|
+
<p>
|
|
2391
|
+
Example:
|
|
2392
|
+
</p>
|
|
2393
|
+
<pre>
|
|
2394
|
+
ctx.dither_mask = true
|
|
2395
|
+
</pre>
|
|
2396
|
+
</div>
|
|
2397
|
+
</div>
|
|
2398
|
+
|
|
2399
|
+
<div id="method-M000213" class="method-detail">
|
|
2400
|
+
<a name="M000213"></a>
|
|
2401
|
+
|
|
2402
|
+
<div class="method-heading">
|
|
2403
|
+
<a href="Context.src/M000213.html" target="Code" class="method-signature"
|
|
2404
|
+
onclick="popupCode('Context.src/M000213.html');return false;">
|
|
2405
|
+
<span class="method-name">set_drawable</span><span class="method-args">(p1)</span>
|
|
2406
|
+
</a>
|
|
2407
|
+
</div>
|
|
2408
|
+
|
|
2409
|
+
<div class="method-description">
|
|
2410
|
+
<p>
|
|
2411
|
+
Set the current X11 Drawable.
|
|
2412
|
+
</p>
|
|
2413
|
+
<p>
|
|
2414
|
+
Note: This method is not available unless <a
|
|
2415
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
2416
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
2417
|
+
available.
|
|
2418
|
+
</p>
|
|
2419
|
+
<p>
|
|
2420
|
+
Examples:
|
|
2421
|
+
</p>
|
|
2422
|
+
<pre>
|
|
2423
|
+
context.set_drawable drawable
|
|
2424
|
+
context.drawable = drawable
|
|
2425
|
+
</pre>
|
|
2426
|
+
</div>
|
|
2427
|
+
</div>
|
|
2428
|
+
|
|
2429
|
+
<div id="method-M000192" class="method-detail">
|
|
2430
|
+
<a name="M000192"></a>
|
|
2431
|
+
|
|
2432
|
+
<div class="method-heading">
|
|
2433
|
+
<a href="Context.src/M000192.html" target="Code" class="method-signature"
|
|
2434
|
+
onclick="popupCode('Context.src/M000192.html');return false;">
|
|
2435
|
+
<span class="method-name">set_encoding</span><span class="method-args">(p1)</span>
|
|
2436
|
+
</a>
|
|
2437
|
+
</div>
|
|
2438
|
+
|
|
2439
|
+
<div class="method-description">
|
|
2440
|
+
<p>
|
|
2441
|
+
Set the current TrueType <a href="Font.html">Font</a> <a
|
|
2442
|
+
href="Encoding.html">Encoding</a>.
|
|
2443
|
+
</p>
|
|
2444
|
+
<p>
|
|
2445
|
+
Example:
|
|
2446
|
+
</p>
|
|
2447
|
+
<pre>
|
|
2448
|
+
ctx.encoding = Imlib2::Encoding::ISO_8859_5
|
|
2449
|
+
</pre>
|
|
2450
|
+
</div>
|
|
2451
|
+
</div>
|
|
2452
|
+
|
|
2453
|
+
<div id="method-M000157" class="method-detail">
|
|
2454
|
+
<a name="M000157"></a>
|
|
2455
|
+
|
|
2456
|
+
<div class="method-heading">
|
|
2457
|
+
<a href="Context.src/M000157.html" target="Code" class="method-signature"
|
|
2458
|
+
onclick="popupCode('Context.src/M000157.html');return false;">
|
|
2459
|
+
<span class="method-name">set_font</span><span class="method-args">(p1)</span>
|
|
2460
|
+
</a>
|
|
2461
|
+
</div>
|
|
2462
|
+
|
|
2463
|
+
<div class="method-description">
|
|
2464
|
+
<p>
|
|
2465
|
+
Set the current font (<a href="Font.html">Imlib2::Font</a>).
|
|
2466
|
+
</p>
|
|
2467
|
+
<p>
|
|
2468
|
+
Example:
|
|
2469
|
+
</p>
|
|
2470
|
+
<pre>
|
|
2471
|
+
ctx.font = Imlib2::Font.new 'helvetica/12'
|
|
2472
|
+
</pre>
|
|
2473
|
+
</div>
|
|
2474
|
+
</div>
|
|
2475
|
+
|
|
2476
|
+
<div id="method-M000175" class="method-detail">
|
|
2477
|
+
<a name="M000175"></a>
|
|
2478
|
+
|
|
2479
|
+
<div class="method-heading">
|
|
2480
|
+
<a href="Context.src/M000175.html" target="Code" class="method-signature"
|
|
2481
|
+
onclick="popupCode('Context.src/M000175.html');return false;">
|
|
2482
|
+
<span class="method-name">set_gradient</span><span class="method-args">(p1)</span>
|
|
2483
|
+
</a>
|
|
2484
|
+
</div>
|
|
2485
|
+
|
|
2486
|
+
<div class="method-description">
|
|
2487
|
+
<p>
|
|
2488
|
+
Set the current gradient (<a href="Gradient.html">Imlib2::Gradient</a>).
|
|
2489
|
+
</p>
|
|
2490
|
+
<p>
|
|
2491
|
+
Example:
|
|
2492
|
+
</p>
|
|
2493
|
+
<pre>
|
|
2494
|
+
ctx.gradient = grad
|
|
2495
|
+
</pre>
|
|
2496
|
+
</div>
|
|
2497
|
+
</div>
|
|
2498
|
+
|
|
2499
|
+
<div id="method-M000183" class="method-detail">
|
|
2500
|
+
<a name="M000183"></a>
|
|
2501
|
+
|
|
2502
|
+
<div class="method-heading">
|
|
2503
|
+
<a href="Context.src/M000183.html" target="Code" class="method-signature"
|
|
2504
|
+
onclick="popupCode('Context.src/M000183.html');return false;">
|
|
2505
|
+
<span class="method-name">set_image</span><span class="method-args">(p1)</span>
|
|
2506
|
+
</a>
|
|
2507
|
+
</div>
|
|
2508
|
+
|
|
2509
|
+
<div class="method-description">
|
|
2510
|
+
<p>
|
|
2511
|
+
Set the current image (<a href="Image.html">Imlib2::Image</a>).
|
|
2512
|
+
</p>
|
|
2513
|
+
<p>
|
|
2514
|
+
Note that this function is not useful at the moment since all image
|
|
2515
|
+
instance methods blindly blow away the image and color context. So you
|
|
2516
|
+
cannot safely mix image context and image instance methods.
|
|
2517
|
+
</p>
|
|
2518
|
+
<p>
|
|
2519
|
+
Example:
|
|
2520
|
+
</p>
|
|
2521
|
+
<pre>
|
|
2522
|
+
ctx.image = image
|
|
2523
|
+
</pre>
|
|
2524
|
+
</div>
|
|
2525
|
+
</div>
|
|
2526
|
+
|
|
2527
|
+
<div id="method-M000217" class="method-detail">
|
|
2528
|
+
<a name="M000217"></a>
|
|
2529
|
+
|
|
2530
|
+
<div class="method-heading">
|
|
2531
|
+
<a href="Context.src/M000217.html" target="Code" class="method-signature"
|
|
2532
|
+
onclick="popupCode('Context.src/M000217.html');return false;">
|
|
2533
|
+
<span class="method-name">set_mask</span><span class="method-args">(p1)</span>
|
|
2534
|
+
</a>
|
|
2535
|
+
</div>
|
|
2536
|
+
|
|
2537
|
+
<div class="method-description">
|
|
2538
|
+
<p>
|
|
2539
|
+
Set the current X11 Mask.
|
|
2540
|
+
</p>
|
|
2541
|
+
<p>
|
|
2542
|
+
Note: This method is not available unless <a
|
|
2543
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
2544
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
2545
|
+
available.
|
|
2546
|
+
</p>
|
|
2547
|
+
<p>
|
|
2548
|
+
Examples:
|
|
2549
|
+
</p>
|
|
2550
|
+
<pre>
|
|
2551
|
+
context.set_mask mask
|
|
2552
|
+
context.mask = mask
|
|
2553
|
+
</pre>
|
|
2554
|
+
</div>
|
|
2555
|
+
</div>
|
|
2556
|
+
|
|
2557
|
+
<div id="method-M000151" class="method-detail">
|
|
2558
|
+
<a name="M000151"></a>
|
|
2559
|
+
|
|
2560
|
+
<div class="method-heading">
|
|
2561
|
+
<a href="Context.src/M000151.html" target="Code" class="method-signature"
|
|
2562
|
+
onclick="popupCode('Context.src/M000151.html');return false;">
|
|
2563
|
+
<span class="method-name">set_operation</span><span class="method-args">(p1)</span>
|
|
2564
|
+
</a>
|
|
2565
|
+
</div>
|
|
2566
|
+
|
|
2567
|
+
<div class="method-description">
|
|
2568
|
+
<p>
|
|
2569
|
+
Set the current operation (<a href="Op.html">Imlib2::Op</a> or <a
|
|
2570
|
+
href="Operation.html">Imlib2::Operation</a>).
|
|
2571
|
+
</p>
|
|
2572
|
+
<p>
|
|
2573
|
+
Example:
|
|
2574
|
+
</p>
|
|
2575
|
+
<pre>
|
|
2576
|
+
ctx.operation = Imlib2::Op::COPY
|
|
2577
|
+
</pre>
|
|
2578
|
+
</div>
|
|
2579
|
+
</div>
|
|
2580
|
+
|
|
2581
|
+
<div id="method-M000179" class="method-detail">
|
|
2582
|
+
<a name="M000179"></a>
|
|
2583
|
+
|
|
2584
|
+
<div class="method-heading">
|
|
2585
|
+
<a href="Context.src/M000179.html" target="Code" class="method-signature"
|
|
2586
|
+
onclick="popupCode('Context.src/M000179.html');return false;">
|
|
2587
|
+
<span class="method-name">set_progress_granularity</span><span class="method-args">(p1)</span>
|
|
2588
|
+
</a>
|
|
2589
|
+
</div>
|
|
2590
|
+
|
|
2591
|
+
<div class="method-description">
|
|
2592
|
+
<p>
|
|
2593
|
+
Set the progress callback granularity.
|
|
2594
|
+
</p>
|
|
2595
|
+
<p>
|
|
2596
|
+
This function is not useful at the moment since you cannot specify progress
|
|
2597
|
+
callbacks from within ruby (this is a TODO item).
|
|
2598
|
+
</p>
|
|
2599
|
+
<p>
|
|
2600
|
+
Example:
|
|
2601
|
+
</p>
|
|
2602
|
+
<pre>
|
|
2603
|
+
ctx.progress_granularity = 10
|
|
2604
|
+
</pre>
|
|
2605
|
+
</div>
|
|
2606
|
+
</div>
|
|
2607
|
+
|
|
2608
|
+
<div id="method-M000191" class="method-detail">
|
|
2609
|
+
<a name="M000191"></a>
|
|
2610
|
+
|
|
2611
|
+
<div class="method-heading">
|
|
2612
|
+
<a href="Context.src/M000191.html" target="Code" class="method-signature"
|
|
2613
|
+
onclick="popupCode('Context.src/M000191.html');return false;">
|
|
2614
|
+
<span class="method-name">set_ttf_encoding</span><span class="method-args">(p1)</span>
|
|
2615
|
+
</a>
|
|
2616
|
+
</div>
|
|
2617
|
+
|
|
2618
|
+
<div class="method-description">
|
|
2619
|
+
<p>
|
|
2620
|
+
Set the current TrueType <a href="Font.html">Font</a> <a
|
|
2621
|
+
href="Encoding.html">Encoding</a>.
|
|
2622
|
+
</p>
|
|
2623
|
+
<p>
|
|
2624
|
+
Example:
|
|
2625
|
+
</p>
|
|
2626
|
+
<pre>
|
|
2627
|
+
ctx.encoding = Imlib2::Encoding::ISO_8859_5
|
|
2628
|
+
</pre>
|
|
2629
|
+
</div>
|
|
2630
|
+
</div>
|
|
2631
|
+
|
|
2632
|
+
<div id="method-M000201" class="method-detail">
|
|
2633
|
+
<a name="M000201"></a>
|
|
2634
|
+
|
|
2635
|
+
<div class="method-heading">
|
|
2636
|
+
<a href="Context.src/M000201.html" target="Code" class="method-signature"
|
|
2637
|
+
onclick="popupCode('Context.src/M000201.html');return false;">
|
|
2638
|
+
<span class="method-name">set_visual</span><span class="method-args">(p1)</span>
|
|
2639
|
+
</a>
|
|
2640
|
+
</div>
|
|
2641
|
+
|
|
2642
|
+
<div class="method-description">
|
|
2643
|
+
<p>
|
|
2644
|
+
Set the current X11 Visual.
|
|
2645
|
+
</p>
|
|
2646
|
+
<p>
|
|
2647
|
+
Note: This method is not available unless <a
|
|
2648
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
2649
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
2650
|
+
available.
|
|
2651
|
+
</p>
|
|
2652
|
+
<p>
|
|
2653
|
+
Examples:
|
|
2654
|
+
</p>
|
|
2655
|
+
<pre>
|
|
2656
|
+
context.set_visual visual
|
|
2657
|
+
context.visual = visual
|
|
2658
|
+
</pre>
|
|
2659
|
+
</div>
|
|
2660
|
+
</div>
|
|
2661
|
+
|
|
2662
|
+
<div id="method-M000204" class="method-detail">
|
|
2663
|
+
<a name="M000204"></a>
|
|
2664
|
+
|
|
2665
|
+
<div class="method-heading">
|
|
2666
|
+
<a href="Context.src/M000204.html" target="Code" class="method-signature"
|
|
2667
|
+
onclick="popupCode('Context.src/M000204.html');return false;">
|
|
2668
|
+
<span class="method-name">visual</span><span class="method-args">()</span>
|
|
2669
|
+
</a>
|
|
2670
|
+
</div>
|
|
2671
|
+
|
|
2672
|
+
<div class="method-description">
|
|
2673
|
+
<p>
|
|
2674
|
+
Get the current X11 Visual.
|
|
2675
|
+
</p>
|
|
2676
|
+
<p>
|
|
2677
|
+
Note: This method is not available unless <a
|
|
2678
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
2679
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
2680
|
+
available.
|
|
2681
|
+
</p>
|
|
2682
|
+
<p>
|
|
2683
|
+
Examples:
|
|
2684
|
+
</p>
|
|
2685
|
+
<pre>
|
|
2686
|
+
visual = context.get_visual
|
|
2687
|
+
visual = context.visual
|
|
2688
|
+
</pre>
|
|
2689
|
+
</div>
|
|
2690
|
+
</div>
|
|
2691
|
+
|
|
2692
|
+
<div id="method-M000222" class="method-detail">
|
|
2693
|
+
<a name="M000222"></a>
|
|
2694
|
+
|
|
2695
|
+
<div class="method-heading">
|
|
2696
|
+
<a href="Context.src/M000222.html" target="Code" class="method-signature"
|
|
2697
|
+
onclick="popupCode('Context.src/M000222.html');return false;">
|
|
2698
|
+
<span class="method-name">visual</span><span class="method-args">(...)</span>
|
|
2699
|
+
</a>
|
|
2700
|
+
</div>
|
|
2701
|
+
|
|
2702
|
+
<div class="method-description">
|
|
2703
|
+
<p>
|
|
2704
|
+
Get the current X11 Visual.
|
|
2705
|
+
</p>
|
|
2706
|
+
<p>
|
|
2707
|
+
Note: This method is not available unless <a
|
|
2708
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
2709
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
2710
|
+
available.
|
|
2711
|
+
</p>
|
|
2712
|
+
<p>
|
|
2713
|
+
Examples:
|
|
2714
|
+
</p>
|
|
2715
|
+
<pre>
|
|
2716
|
+
visual = context.get_visual
|
|
2717
|
+
visual = context.visual
|
|
2718
|
+
</pre>
|
|
2719
|
+
</div>
|
|
2720
|
+
</div>
|
|
2721
|
+
|
|
2722
|
+
<div id="method-M000202" class="method-detail">
|
|
2723
|
+
<a name="M000202"></a>
|
|
2724
|
+
|
|
2725
|
+
<div class="method-heading">
|
|
2726
|
+
<a href="Context.src/M000202.html" target="Code" class="method-signature"
|
|
2727
|
+
onclick="popupCode('Context.src/M000202.html');return false;">
|
|
2728
|
+
<span class="method-name">visual=</span><span class="method-args">(p1)</span>
|
|
2729
|
+
</a>
|
|
2730
|
+
</div>
|
|
2731
|
+
|
|
2732
|
+
<div class="method-description">
|
|
2733
|
+
<p>
|
|
2734
|
+
Set the current X11 Visual.
|
|
2735
|
+
</p>
|
|
2736
|
+
<p>
|
|
2737
|
+
Note: This method is not available unless <a
|
|
2738
|
+
href="../Imlib2.html">Imlib2</a>-Ruby was compiled with X11 support. You
|
|
2739
|
+
can check the constant Imlib2::X11_SUPPORT to see if X11 support is
|
|
2740
|
+
available.
|
|
2741
|
+
</p>
|
|
2742
|
+
<p>
|
|
2743
|
+
Examples:
|
|
2744
|
+
</p>
|
|
2745
|
+
<pre>
|
|
2746
|
+
context.set_visual visual
|
|
2747
|
+
context.visual = visual
|
|
2748
|
+
</pre>
|
|
2749
|
+
</div>
|
|
2750
|
+
</div>
|
|
2751
|
+
|
|
2752
|
+
|
|
2753
|
+
</div>
|
|
2754
|
+
|
|
2755
|
+
|
|
2756
|
+
</div>
|
|
2757
|
+
|
|
2758
|
+
|
|
2759
|
+
<div id="validator-badges">
|
|
2760
|
+
<p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
|
|
2761
|
+
</div>
|
|
2762
|
+
|
|
2763
|
+
</body>
|
|
2764
|
+
</html>
|