/usr/share/GNUstep/Documentation/Developer/Gui/Additions/GSTheme.html is in gnustep-gui-doc 0.24.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>GSTheme</title>
</head>
<body>
<font face="serif">
<a href="GuiAdditions.html">Up</a>
<br />
<h1><a name="title$GSTheme">GSTheme</a></h1>
<h3>Authors</h3>
<dl>
<dt>Adam Fedor (<a href="mailto:fedor@gnu.org"><code>fedor@gnu.org</code></a>)</dt>
<dd>
</dd>
<dt>Richard Frith-Macdonald (<a href="mailto:rfm@gnu.org"><code>rfm@gnu.org</code></a>)</dt>
<dd>
</dd>
</dl>
<blockquote>
Useful/configurable drawing functions
</blockquote>
<p><b>Copyright:</b> (C) 2004-2006 Free Software Foundation, Inc.</p>
<div>
<hr width="50%" align="left" />
<h3>Contents -</h3>
<ol>
<li>
<a href="#001000000000">The theme management system</a>
</li>
<li>
<a href="#001001000000">Types of theming</a>
</li>
<li>
<a href="#001002000000">Subclassing GSTheme</a>
</li>
<li>
<a href="#002000000000">Software documentation for the GSTheme class</a>
</li>
<li>
<a href="#003000000000">Software documentation for the GSTheme(Drawing)
category</a>
</li>
</ol>
<hr width="50%" align="left" />
</div>
<h1><a name="001000000000">The theme management system</a></h1>
<p>
The theme management system for the GNUstep GUI is based
around the
<a rel="gsdoc" href="#class$GSTheme">GSTheme</a>
class, which provides support for loading of theme
bundles and methods for drawing common user interface
elements. <br /> The theme system works in
conjunction with a variety of other GUI classes
and is intended to eventually allow for very major
changes in GUI appearance and behavior.
</p>
<p>
Various design imperatives apply to the theme system,
but probably the key ones are:
</p>
<ul>
<li>
It should allow designers and other non-technical users
to easily develop new and interesting GUI styles likely
to attract new users to GNUstep.
</li>
<li>
Using and switching between themes should be an easy
and pleasant experience... so that people are not put
off when they try using themes.
</li>
<li>
It should eventually permit a GNUstep application to
appear as a native application on ms-windows and
other systems.
</li>
</ul>
<p>
To attain these aims implies the recognition of some more
specific objectives and some possible technical
solutions:
</p>
<ul>
<li>
We must have as simple as possible an API for the
functions handling the way GUI elements work and
the way they draw themselves. <br /> The standard
OpenStep/MacOS-X API provides mechanisms
for controlling the colors used to draw controls (via
NSColor
and
NSColorList
) and controlling the way controls behave
(NSInterfaceStyleForKey() and
[NSResponder -interfaceStyle]
), but we need to extend that with methods to draw controls entirely differently if required.
</li>
<li>
We must have a GUI application for theme
development. It is not sufficient to
provide an API if we want good graphic
designers and user interface specialists to
develop themes for us.
</li>
<li>
It must be possible for an application to
dynamically change the theme in use while
it is running and it should be easy for a user to
select between available themes. <br /> This
implies that themes must be loadable bundles
and that it must always be possible to unload a
theme as well as loading one. <br /> It suggests
that the theme selection mechanism should be in
every application, perhaps as an extension to an
existing panel such as the info panel.
</li>
</ul>
<h2><a name="001001000000">Types of theming</a></h2>
<p>
There are various aspects of theming which can be
treated pretty much separately, so there is no
reason why a theme might not be created which
just employs one of these mechanisms.
</p>
<dl>
<dt>System images</dt>
<dd>
Possibly the simples theme change... a theme
might supply a new set of system images used
for arrows and other icons that the GUI decorates
controls with.
</dd>
<dt>System colors</dt>
<dd>
A theme might simply define a new system color
list, so that controls are drawn in a new color
range, though they would still function the
same way. Even specifying new colors can make
the GUI look quite different though. <br />
Beyond system colors, the theming API also
provides a mechanism for specifying colors
for particular parts of GUI controls.
</dd>
<dt>Image tiling</dt>
<dd>
Controls might be given sets of images used
as tiling to draw themselves rather than using the
standard line drawing and color fill
mechanisms.
</dd>
<dt>Interface style</dt>
<dd>
A theme might supply a set of interface style keys
for various controls, defining how those controls
should behave subject to the limitation of the
range of behaviors coded into the GUI library.
</dd>
<dt>Method override</dt>
<dd>
A theme might actually provide code, in the form of
a subclass of
<a rel="gsdoc" href="#class$GSTheme">GSTheme</a>
such that drawing methods have completely
custom behavior.
</dd>
</dl>
<h2><a name="001002000000">Subclassing GSTheme</a></h2>
<p>
While many themes can be created without
subclassing GSTheme, there are some cases
where writing code is necessary (most notably
when interfacing to a native theming engine for
some platform in order to make a GNUstep app
have a native look). <br /> In these cases the
subclass should follow certain rules in
order to operate cleanly and efficiently:
</p>
<dl>
<dt>Stability</dt>
<dd>
Theme operation should remain consistent
while it is in use, particularly in the
provision of resources such as images and
colors. <br /> If a theme needs to change a
resource (such as an image) then it should
do so by calling
<a rel="gsdoc" href="#method$GSTheme-deactivate">
-deactivate
</a>
, making the change, and then calling
<a rel="gsdoc" href="#method$GSTheme-activate">
-activate
</a>
. This sequence ensures that the GUI library is
made aware of any changes and can redraw the
screen. <br /> The deactivation/activation
sequence is expensive, so the subclass
should attempt to combine multiple resource
updates into a group rather than performing
the deactivation/activation for each resource
individually.
</dd>
<dt>Activation</dt>
<dd>
The standard
<a rel="gsdoc" href="#method$GSTheme-activate">
-activate
</a>
method replaces existing system images,
colors, interface style settings and other
user defaults settings with versions stored in
the theme bundle. <br /> If a subclass wishes
to dynamically provide these resources rather
than supplying them as static information in
the bundle, it may update the in-memory
information after the normal operation
has taken place. This should be done by the
theme registering itsself as an observer of
GSThemeWillActivateNotification
and adding the resources just before the theme
becomes active. <br /> Cleanup may be done
in response to a
GSThemeWillDeactivateNotification
(called before the default cleanup) or a
GSThemeDidDeactivateNotification
(called after the default cleanup).
</dd>
<dt>Versioning</dt>
<dd>
With a theme which contains only static
resources, versioning is not much of an
issue, but with a code-based theme (ie where
you subclass GSTheme) versioning does become
very important. This is because, while you can
load code from a bundle, you can't unload it
again... so if you have two versions of a
theme where the subclass has the same name,
then you have a conflict and can't load both
and swap between the two. <br /> Thematic.app
solves this problem my incorporating a
version number into the name of the GSTheme
subclasses it creates, but that's not
the only consideration... <br /> You must also
ensure that either you do not define any
other classes in your theme or that, if you
do define them you make sure that each of them
incorporates the theme version number.
<br /> A similar consideration would apply
to any categories, however category conflicts
are far more difficult to resolve since even
with different version names of the
categories, the categories all effect
the same class/methods. In fact this issue is
so tricky to deal with that you should simply
not use categories within your theme code.
<br /> To work around this limitation, the
GSTheme class supports overriding of the
methods of any other class while the theme
is active. See the
<a rel="gsdoc" href="#method$GSTheme-overriddenMethod$for$">
-overriddenMethod:for:
</a>
method for more information.
</dd>
<dt>Image override</dt>
<dd>
System images (those returned by the
[NSImage +imageNamed:]
method) are handled by the default theming mechanism, for each system image supplied in the theme bundle, the image is loaded from the bundle and used while the theme is active. Any pre-existing in-memory image is saved on theme activation and restored on theme deactivation. <br /> A theme subclass may override the <a rel="gsdoc" href="#method$GSTheme-imageClass">-imageClass</a>
method to change the class used to load each image from the bundle... thus allowing customisation of not just the images but also of the image behavior in the (very rare) cases where this is desirable.
</dd>
</dl>
<h1><a name="002000000000">
Software documentation for the GSTheme class
</a></h1>
<h2><a name="class$GSTheme">GSTheme</a> : NSObject</h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>GNUstepGUI/GSTheme.h</dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
</p>
<p>
<em>
This interface is <strong>HIGHLY</strong> unstable
and incomplete at present.
</em>
</p>
<p>
</p>
<p>
This is a class used for 'theming', which is mostly a
matter of encapsulating common drawing behaviors so
that GUI appearance can be easily modified, but also
includes mechanisms for altering some GUI behavior
(such as orientation and position of menus).
</p>
<p>
</p>
<p>
Methods in this class standardize drawing of
buttons, borders and other common GUI elements, so
that all other classes within the GUI will provide a
consistent appearance by using these methods.
</p>
<p>
</p>
<p>
The default implementation uses the standard
configurable colors defined in NSColor, such
as <code>controlLightHighlightColor</code>,
<code>controlShadowColor</code> and
<code>controlDarkShadowColor</code>. <br /> Themes
are expected to override the default system color list
with their own versions, and this class cooperates
with
NSColor
and
NSColorList
to establish the correct system color list when a
theme is activated.
</p>
<p>
</p>
<p>
The class provides a mechanism for automatic
loading of theme bundles consisting of
resources used to define how drawing is done,
plus an optional binary subclass of this class (to
replace/extend the drawing methods this
class provides).
</p>
<p>
</p>
<p>
In future this class should provide mechanisms to
draw controls by tiling of images, and provide
control over GUI behavior by controlling the
values returned by
NSInterfaceStyleForKey()
so that controls use the appropriate behavior.
</p>
<p>
</div>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserColumnSeparation">-browserColumnSeparation</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserHeaderDrawingRectForCell$withFrame$">-browserHeaderDrawingRectForCell:withFrame:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserHeaderTextColor">-browserHeaderTextColor</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserUseBezels">-browserUseBezels</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserVerticalPadding">-browserVerticalPadding</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-buttonMarginsForCell$style$state$">-buttonMarginsForCell:style:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-cellForScrollerArrow$horizontal$">-cellForScrollerArrow:horizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-cellForScrollerKnob$">-cellForScrollerKnob:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-cellForScrollerKnobSlot$">-cellForScrollerKnobSlot:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-defaultScrollerWidth">-defaultScrollerWidth</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBackgroundForMenuView$withFrame$dirtyRect$horizontal$">-drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBarInside$inCell$flipped$">-drawBarInside:inCell:flipped:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBorderAndBackgroundForMenuItemCell$withFrame$inView$state$isHorizontal$">-drawBorderAndBackgroundForMenuItemCell:withFrame:inView:state:isHorizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBorderForImageFrameStyle$frame$view$">-drawBorderForImageFrameStyle:frame:view:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBorderType$frame$view$">-drawBorderType:frame:view:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBoxInClipRect$boxType$borderType$inView$">-drawBoxInClipRect:boxType:borderType:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBrowserHeaderCell$withFrame$inView$">-drawBrowserHeaderCell:withFrame:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBrowserRect$inView$withScrollerRect$columnSize$">-drawBrowserRect:inView:withScrollerRect:columnSize:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawButton$in$view$style$state$">-drawButton:in:view:style:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawColorWellBorder$withBounds$withClip$">-drawColorWellBorder:withBounds:withClip:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawFocusFrame$view$">-drawFocusFrame:view:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawKnobInCell$">-drawKnobInCell:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawMenuRect$inView$isHorizontal$itemCells$">-drawMenuRect:inView:isHorizontal:itemCells:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawMenuTitleBackground$withBounds$withClip$">-drawMenuTitleBackground:withBounds:withClip:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawPopUpButtonCellInteriorWithFrame$withCell$inView$">-drawPopUpButtonCellInteriorWithFrame:withCell:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawProgressIndicator$withBounds$withClip$atCount$forValue$">-drawProgressIndicator:withBounds:withClip:atCount:forValue:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawProgressIndicatorBarDeterminate$">-drawProgressIndicatorBarDeterminate:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawProgressIndicatorBezel$withClip$">-drawProgressIndicatorBezel:withClip:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawScrollViewRect$inView$">-drawScrollViewRect:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawScrollerRect$inView$hitPart$isHorizontal$">-drawScrollerRect:inView:hitPart:isHorizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawSegmentedControlSegment$withFrame$inView$style$state$roundedLeft$roundedRight$">-drawSegmentedControlSegment:withFrame:inView:style:state:roundedLeft:roundedRight:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawSeparatorItemForMenuItemCell$withFrame$inView$isHorizontal$">-drawSeparatorItemForMenuItemCell:withFrame:inView:isHorizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme+loadThemeNamed$">+loadThemeNamed:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme+orderFrontSharedThemePanel$">+orderFrontSharedThemePanel:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme+setTheme$">+setTheme:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme+theme">+theme</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-activate">-activate</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-authors">-authors</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-bundle">-bundle</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-colorClass">-colorClass</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-colorFlush$state$">-colorFlush:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-colorNamed$state$">-colorNamed:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-colors">-colors</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-deactivate">-deactivate</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-icon">-icon</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-imageClass">-imageClass</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-infoDictionary">-infoDictionary</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-initWithBundle$">-initWithBundle:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-license">-license</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-name">-name</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-nameForElement$">-nameForElement:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-overriddenMethod$for$">-overriddenMethod:for:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-setName$">-setName:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-setName$forElement$temporary$">-setName:forElement:temporary:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-themeInspector">-themeInspector</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-tilesFlush$state$">-tilesFlush:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-tilesNamed$state$">-tilesNamed:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme-versionString">-versionString</a></li>
</ul>
<hr width="50%" align="left" />
<div class="method">
<h3><a name="method$GSTheme+loadThemeNamed$">loadThemeNamed: </a></h3>
+ (<a rel="gsdoc" href="#class$GSTheme">GSTheme</a>*) <b>loadThemeNamed:</b> (NSString*)aName;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Loads a theme from a theme bundle of the specified
name, which may be either a full path name of the
theme bundle, or a simple theme name (in which case
the standard directories are searched for it) or
<code>nil</code> (in which case the default GNUstep
theme is returned). <br /> Returns the loaded theme
but does not make it the current theme, to do that you
will need to call the
<a rel="gsdoc" href="#method$GSTheme+setTheme$">
+setTheme:
</a>
method.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme+orderFrontSharedThemePanel$">orderFrontSharedThemePanel: </a></h3>
+ (void) <b>orderFrontSharedThemePanel:</b> (id)sender;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Creates and displays a panel allowing selection of
different themes and display of the current theme
inspector.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme+setTheme$">setTheme: </a></h3>
+ (void) <b>setTheme:</b> (<a rel="gsdoc" href="#class$GSTheme">GSTheme</a>*)theme;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Set the currently active <var>theme</var> to be the
instance specified. <br /> You do not normally
need to call this method as it is called automatically
when the user default which specifies the current
<var>theme</var> (GSTheme) is updated.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme+theme">theme </a></h3>
+ (<a rel="gsdoc" href="#class$GSTheme">GSTheme</a>*) <b>theme</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the currently active theme instance. This
is the value most recently set using
<a rel="gsdoc" href="#method$GSTheme+setTheme$">
+setTheme:
</a>
or (if none has been set) is a default instance of the
base class.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-activate">activate </a></h3>
- (void) <b>activate</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
</p>
<p>
This method is called automatically when the
receiver is made into the currently active theme
by the
<a rel="gsdoc" href="#method$GSTheme+setTheme$">
+setTheme:
</a>
method. Subclasses may override it to perform
startup operations, however, the method is not
really intended to be overridden, and subclasses
should generally handle activation work in
response to the GSThemeWillActivatenotification
posted by this method.
</p>
<p>
</p>
<p>
The base implementation handles setup and caching of
the system color list, standard image information,
tiling information, and user defaults. <br /> It
then sends a GSThemeWillActivateNotification to
allow subclasses to perform further activation
work, and a GSThemeDidActivateNotification to allow
other parts of the GUI library to update themselves
from the new theme.
</p>
<p>
</p>
<p>
Finally, this method marks all windows in the
application as needing update... so they will
draw themselves with the new theme information.
</p>
<p>
</p>
<p>
NB. If a GSTheme subclass is integrating to an
external native theming mechanism in order to
make GNUstep apps look like native apps, then the
external theme may change dynamically and the
GSTheme subclass may need to change the GNUstep
application to reflect this change. When this
happens, the update should be handled by the
subclass calling
<a rel="gsdoc" href="#method$GSTheme-deactivate">
-deactivate
</a>
and then
<a rel="gsdoc" href="#method$GSTheme-activate">
-activate
</a>
to make the changes 'live'.
</p>
<p>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-authors">authors </a></h3>
- (NSArray*) <b>authors</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the names of the theme's authors.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-bundle">bundle </a></h3>
- (NSBundle*) <b>bundle</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Return the bundle containing the resources used by
the current theme.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-colorClass">colorClass </a></h3>
- (Class) <b>colorClass</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the class used by the theme for loading
color lists. The default implementation returns the
NSColorList class, but a subclass may override
this to return a color list class whose values change
dynamically in response to changes of a native
theming API for instance. <br /> The class returned
by this method should be NSColorList or one of its
subclasses. Subclasses should note that GSTheme
will initialise the instances of the class using the
[NSColerList -initWithName:fromFile:]
method.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-colorFlush$state$">colorFlush: state: </a></h3>
- (void) <b>colorFlush:</b> (NSString*)aName<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)elementState;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Removes the name from the color cache forcing it to
be re-created next time the named color is required.
<br /> Passing <code>nil</code> for <var>aName</var>
removes all named colors. <br /> Passing a negative
value for <var>elementState</var> applies to all
caches.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-colorNamed$state$">colorNamed: state: </a></h3>
- (NSColor*) <b>colorNamed:</b> (NSString*)aName<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)elementState;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
This returns the color for drawing the item whose name
is <var>aName</var> in the specified state. If
<var>aName</var> is <code>nil</code> or if there is
no color defined for the particular combination of item
name and state, the method returns <code>nil</code>.
<br /> The standard names used for the parts of
various controls are declared in GSTheme.h <br />
See also the
<a rel="gsdoc" href="#method$GSTheme-tilesNamed$state$">
-tilesNamed:state:
</a>
method.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-colors">colors </a></h3>
- (NSColorList*) <b>colors</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the system color list defined by the
receiver. <br /> The default implementation
returns the color list provided in the theme bundle
(if any) or the default system color list.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-deactivate">deactivate </a></h3>
- (void) <b>deactivate</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
</p>
<p>
This method is called automatically when the
receiver is stopped from being the currently
active theme by the use of the
<a rel="gsdoc" href="#method$GSTheme+setTheme$">
+setTheme:
</a>
method to make another theme active. Subclasses
may override it to perform shutdown operations, but
it is preferred for subclasses to perform their own
deactivation in response to a
GSThemeWillDeactivateNotification.
</p>
<p>
</p>
<p>
The base implementation sends a
GSThemeWillDeactivateNotification
to allow subclasses to perform cleanup, then restores
image, color and default information to the state
before the theme was activates, and finally sends
a GSThemeDidDeactivateNotification to allow other parts
of the GUI library to update themselves.
</p>
<p>
</p>
<p>
NB. If a GSTheme subclass is integrating to an
external native theming mechanism in order to
make GNUstep apps look like native apps, then the
external theme may change dynamically and the
GSTheme subclass may need to change the GNUstep
application to reflect this change. When this
happens, the update should be handled by the
subclass calling
<a rel="gsdoc" href="#method$GSTheme-deactivate">
-deactivate
</a>
and then
<a rel="gsdoc" href="#method$GSTheme-activate">
-activate
</a>
to make the changes 'live'.
</p>
<p>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-icon">icon </a></h3>
- (NSImage*) <b>icon</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the theme's icon.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-imageClass">imageClass </a></h3>
- (Class) <b>imageClass</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the class used by the theme for loading
images. The default implementation returns the
NSImage class, but a subclass may override this to
return an image class whose instances dynamically
alter what they draw in response to changes of a
native theming API for instance. <br /> This method
must return the NSImage class or one of its
subclasses. Subclass implementations should
note that instances will be initialised using the
[NSImage -initWithContentsOfFile:]
method and will use the [NSImage -imageFileTypes]
method to determine which image files can be loaded.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-infoDictionary">infoDictionary </a></h3>
- (NSDictionary*) <b>infoDictionary</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
</p>
<p>
Returns the info dictionary for this theme. In
the base class implementation this is simply the info
dictionary of the theme bundle, but subclasses
may override this method to return extra or different
information.
</p>
<p>
</p>
<p>
Keys found in this dictionary include:
</p>
<p>
<dl>
<dt>GSThemeDomain</dt>
<dd>
A dictionary whose key/value pairs are used to set up
new values in the GSThemeDomain domain of the user
defaults system, and hence define values for
these unless overridden by values set explicitly
by the user.
</dd>
<dt>GSThemeTiles</dt>
<dd>
A dictionary keyed on tile names and containing the
following:
<dl>
<dt>FileName</dt>
<dd>
Name of the file (within the GSThemeTiles
directory in the bundle) in which the
image for this tile is stored.
</dd>
<dt>HorizontalDivision</dt>
<dd>
The offset along the X-axis used to divide the
image into columns of tiles.
</dd>
<dt>VerticalDivision</dt>
<dd>
The offer along the Y-axis used to divide the
image into rows of tiles.
</dd>
</dl>
</dd>
</dl>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-initWithBundle$">initWithBundle: </a></h3>
- (id) <b>initWithBundle:</b> (NSBundle*)bundle;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
This is a designated initialiser for the class.<br />
<div class="desc">
Initialise an instance of a theme with the
specified resource <var>bundle</var>. <br /> You
don't need to call this method directly, but if you
are subclassing you may need to override this to
provide additional initialisation.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-license">license </a></h3>
- (NSString*) <b>license</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Return the theme's license.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-name">name </a></h3>
- (NSString*) <b>name</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Return the theme's name.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-nameForElement$">nameForElement: </a></h3>
- (NSString*) <b>nameForElement:</b> (id)anObject;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the name used to locate theming resources
for a particular GUI element. If no name has been set
for the particular object this method returns
<code>nil</code>.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-overriddenMethod$for$">overriddenMethod: for: </a></h3>
- (IMP) <b>overriddenMethod:</b> (SEL)selector<b> for:</b> (id)receiver;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
</p>
<p>
Returns the original implementation of a method
overridden by this theme, or zero if the
method was not overridden.
</p>
<p>
</p>
<p>
A theme may override a method of another class by
implementing a method whose name is
'_overrideXXXMethod_YYY' where
'XXX' is the name of the class whose method is to
be overridden, and 'YYY' is the normal name of the
method in that class. <br /> eg.
_overrideNSScrollerMethod_drawRect:
</p>
<p>
</p>
<p>
NB. The overriding method may not access instance
variable directly and must cast all uses of
'self' to be the correct class.
</p>
<p>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-setName$">setName: </a></h3>
- (void) <b>setName:</b> (NSString*)aString;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Set the name of this theme... used for testing by
Thematic.app
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-setName$forElement$temporary$">setName: forElement: temporary: </a></h3>
- (void) <b>setName:</b> (NSString*)aString<b> forElement:</b> (id)anObject<b> temporary:</b> (BOOL)takeOwnership;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Set the name that is used to identify theming resources
for a particular control or other GUI element. This is
used so that where an element is part of a control it
can be displayed differently from the same class of
element used outside that control. <br /> Supplying
a <code>nil</code> value for <var>aString</var> simply
removes any name setting for <var>anObject</var>.
<br /> Supplying <code>nil</code> for
<var>anObject</var> is illegal (raises an exception)
unless the value of <var>aString</var> is also
<code>nil</code> (and the method does nothing).
<br /> Any control which uses this method to set
names for subsidiary elements must also make sure to
remove the name mapping before that element is
deallocated, unless the
<var>takeOwnership</var> option is <code>YES</code>,
in which case <var>anObject</var> is retained, the name
mapping lasts only until the receiver is
deactivated, and at that point
<var>anObject</var> is released.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-themeInspector">themeInspector </a></h3>
- (NSWindow*) <b>themeInspector</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
</p>
<p>
Provides a standard inspector window used to
display information about the receiver. The
default implementation displays the icon, the
name, and the authors of the theme.
</p>
<p>
</p>
<p>
The code managing this object (if any) must be
prepared to have the content view of the window
re-parented into another window for display
on screen.
</p>
<p>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-tilesFlush$state$">tilesFlush: state: </a></h3>
- (void) <b>tilesFlush:</b> (NSString*)aName<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)elementState;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Removes the name tile images from cache, forcing
re-creation next time the named tiles are
required. <br /> Passing <code>nil</code> for
<var>aName</var> removes all named tiles. <br />
Passing a negative value for
<var>elementState</var> applies to all caches.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-tilesNamed$state$">tilesNamed: state: </a></h3>
- (GSDrawTiles*) <b>tilesNamed:</b> (NSString*)aName<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)elementState;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the tile image information for a particular
image name, or <code>nil</code> if there is no such
information or the name is <code>nil</code>.
<br /> The standard names used for the parts of
various controls are declared in GSTheme.h <br />
The GUI library uses this internally to handling tiling
of image information to draw user interface elements.
The tile information returned by this method can be
passed to the
-fillRect:withTiles:background:fillStyle:
method. <br /> The <var>elementState</var> argument specifies the state for which tiles are requested. See the <a rel="gsdoc" href="#method$GSTheme-colorNamed$state$">-colorNamed:state:</a>
method for determining colors to be used for drawing specific GUI elements.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme-versionString">versionString </a></h3>
- (NSString*) <b>versionString</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Return the theme's version string.
</div>
<hr width="25%" align="left" />
</div>
<h1><a name="003000000000">
Software documentation for the GSTheme(Drawing)
category
</a></h1>
<h2><a rel="gsdoc" href="#class$GSTheme">GSTheme</a>(<a name="category$GSTheme(Drawing)">Drawing</a>)</h2>
<blockquote class="declared">
<dl>
<dt><b>Declared in:</b></dt>
<dd>GNUstepGUI/GSTheme.h</dd>
</dl>
</blockquote>
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Theme drawing methods. <br /> Methods which return
information/resources are generally
expected (ie unless explicitly documented otherwise)
to be returning something which persists until the method
is called again or until the current theme is deactivated
(whichever comes first). <br /> This means that
drawing code should <strong>not</strong> need to
retain/release any returned object (the theme
is responsible for retaining the object), and should also
be able to cache size information etc for later drawing.
<br /> This simple rule means that drawing code can be
written to be as efficient as possible while keeping
caching strategies simple and uniform. <br /> To
facilitate this within the theme code itsself, it
is recommended that you make use of the
<a rel="gsdoc" href="#method$GSTheme-setName$forElement$temporary$">
-setName:forElement:temporary:
</a>
method to retain any vended object until deactivation.
</div>
<b>Method summary</b>
<ul>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserColumnSeparation">-browserColumnSeparation</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserHeaderDrawingRectForCell$withFrame$">-browserHeaderDrawingRectForCell:withFrame:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserHeaderTextColor">-browserHeaderTextColor</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserUseBezels">-browserUseBezels</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-browserVerticalPadding">-browserVerticalPadding</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-buttonMarginsForCell$style$state$">-buttonMarginsForCell:style:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-cellForScrollerArrow$horizontal$">-cellForScrollerArrow:horizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-cellForScrollerKnob$">-cellForScrollerKnob:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-cellForScrollerKnobSlot$">-cellForScrollerKnobSlot:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-defaultScrollerWidth">-defaultScrollerWidth</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBackgroundForMenuView$withFrame$dirtyRect$horizontal$">-drawBackgroundForMenuView:withFrame:dirtyRect:horizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBarInside$inCell$flipped$">-drawBarInside:inCell:flipped:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBorderAndBackgroundForMenuItemCell$withFrame$inView$state$isHorizontal$">-drawBorderAndBackgroundForMenuItemCell:withFrame:inView:state:isHorizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBorderForImageFrameStyle$frame$view$">-drawBorderForImageFrameStyle:frame:view:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBorderType$frame$view$">-drawBorderType:frame:view:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBoxInClipRect$boxType$borderType$inView$">-drawBoxInClipRect:boxType:borderType:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBrowserHeaderCell$withFrame$inView$">-drawBrowserHeaderCell:withFrame:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawBrowserRect$inView$withScrollerRect$columnSize$">-drawBrowserRect:inView:withScrollerRect:columnSize:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawButton$in$view$style$state$">-drawButton:in:view:style:state:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawColorWellBorder$withBounds$withClip$">-drawColorWellBorder:withBounds:withClip:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawFocusFrame$view$">-drawFocusFrame:view:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawKnobInCell$">-drawKnobInCell:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawMenuRect$inView$isHorizontal$itemCells$">-drawMenuRect:inView:isHorizontal:itemCells:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawMenuTitleBackground$withBounds$withClip$">-drawMenuTitleBackground:withBounds:withClip:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawPopUpButtonCellInteriorWithFrame$withCell$inView$">-drawPopUpButtonCellInteriorWithFrame:withCell:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawProgressIndicator$withBounds$withClip$atCount$forValue$">-drawProgressIndicator:withBounds:withClip:atCount:forValue:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawProgressIndicatorBarDeterminate$">-drawProgressIndicatorBarDeterminate:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawProgressIndicatorBezel$withClip$">-drawProgressIndicatorBezel:withClip:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawScrollViewRect$inView$">-drawScrollViewRect:inView:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawScrollerRect$inView$hitPart$isHorizontal$">-drawScrollerRect:inView:hitPart:isHorizontal:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawSegmentedControlSegment$withFrame$inView$style$state$roundedLeft$roundedRight$">-drawSegmentedControlSegment:withFrame:inView:style:state:roundedLeft:roundedRight:</a></li>
<li><a rel="gsdoc" href="GSTheme.html#method$GSTheme(Drawing)-drawSeparatorItemForMenuItemCell$withFrame$inView$isHorizontal$">-drawSeparatorItemForMenuItemCell:withFrame:inView:isHorizontal:</a></li>
</ul>
<hr width="50%" align="left" />
<div class="method">
<h3><a name="method$GSTheme(Drawing)-browserColumnSeparation">browserColumnSeparation </a></h3>
- (CGFloat) <b>browserColumnSeparation</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-browserHeaderDrawingRectForCell$withFrame$">browserHeaderDrawingRectForCell: withFrame: </a></h3>
- (NSRect) <b>browserHeaderDrawingRectForCell:</b> (NSTableHeaderCell*)cell<b> withFrame:</b> (NSRect)rect;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-browserHeaderTextColor">browserHeaderTextColor </a></h3>
- (NSColor*) <b>browserHeaderTextColor</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-browserUseBezels">browserUseBezels </a></h3>
- (BOOL) <b>browserUseBezels</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-browserVerticalPadding">browserVerticalPadding </a></h3>
- (CGFloat) <b>browserVerticalPadding</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-buttonMarginsForCell$style$state$">buttonMarginsForCell: style: state: </a></h3>
- (GSThemeMargins) <b>buttonMarginsForCell:</b> (NSCell*)cell<b> style:</b> (int)style<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)state;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Amount by which the button is inset by the border.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-cellForScrollerArrow$horizontal$">cellForScrollerArrow: horizontal: </a></h3>
- (NSButtonCell*) <b>cellForScrollerArrow:</b> (NSScrollerArrow)part<b> horizontal:</b> (BOOL)horizontal;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Creates and returns the cell to be used to draw a
scroller arrow of the specified type and
orientation. <br /> The theme instance is
responsible for ensuring that the cell
continues to exist until the theme is deactivated
(the default implementation does this by naming the
cell using the
<a rel="gsdoc" href="#method$GSTheme-setName$forElement$temporary$">
-setName:forElement:temporary:
</a>
method, which also provides a name for the cell
color and image).
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-cellForScrollerKnob$">cellForScrollerKnob: </a></h3>
- (NSCell*) <b>cellForScrollerKnob:</b> (BOOL)horizontal;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Creates and returns the cell to be used to draw a
scroller knob of the specified orientation. <br />
The theme instance is responsible for ensuring that the
cell continues to exist until the theme is deactivated
(the default implementation does this by naming the
cell using the
<a rel="gsdoc" href="#method$GSTheme-setName$forElement$temporary$">
-setName:forElement:temporary:
</a>
method).
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-cellForScrollerKnobSlot$">cellForScrollerKnobSlot: </a></h3>
- (NSCell*) <b>cellForScrollerKnobSlot:</b> (BOOL)horizontal;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Creates and returns the cell to be used to draw a
scroller slot of the specified orientation. <br />
The theme instance is responsible for ensuring that the
cell continues to exist until the theme is deactivated
(the default implementation does this by naming the
cell using the
<a rel="gsdoc" href="#method$GSTheme-setName$forElement$temporary$">
-setName:forElement:temporary:
</a>
method).
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-defaultScrollerWidth">defaultScrollerWidth </a></h3>
- (float) <b>defaultScrollerWidth</b>;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Returns the width which should be allowed for a
scroller within the current theme. Drawing code is
entitled to assume that this value will remain
constant until the theme is deactivated.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBackgroundForMenuView$withFrame$dirtyRect$horizontal$">drawBackgroundForMenuView: withFrame: dirtyRect: horizontal: </a></h3>
- (void) <b>drawBackgroundForMenuView:</b> (NSMenuView*)menuView<b> withFrame:</b> (NSRect)bounds<b> dirtyRect:</b> (NSRect)dirtyRect<b> horizontal:</b> (BOOL)horizontal;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBarInside$inCell$flipped$">drawBarInside: inCell: flipped: </a></h3>
- (void) <b>drawBarInside:</b> (NSRect)rect<b> inCell:</b> (NSCell*)cell<b> flipped:</b> (BOOL)flipped;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBorderAndBackgroundForMenuItemCell$withFrame$inView$state$isHorizontal$">drawBorderAndBackgroundForMenuItemCell: withFrame: inView: state: isHorizontal: </a></h3>
- (void) <b>drawBorderAndBackgroundForMenuItemCell:</b> (NSMenuItemCell*)cell<b> withFrame:</b> (NSRect)cellFrame<b> inView:</b> (NSView*)controlView<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)state<b> isHorizontal:</b> (BOOL)isHorizontal;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBorderForImageFrameStyle$frame$view$">drawBorderForImageFrameStyle: frame: view: </a></h3>
- (void) <b>drawBorderForImageFrameStyle:</b> (NSImageFrameStyle)frameStyle<b> frame:</b> (NSRect)frame<b> view:</b> (NSView*)view;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Draw a border of the specified <var>frame</var> style.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBorderType$frame$view$">drawBorderType: frame: view: </a></h3>
- (void) <b>drawBorderType:</b> (NSBorderType)aType<b> frame:</b> (NSRect)frame<b> view:</b> (NSView*)view;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Draw a border of the specified border type.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBoxInClipRect$boxType$borderType$inView$">drawBoxInClipRect: boxType: borderType: inView: </a></h3>
- (void) <b>drawBoxInClipRect:</b> (NSRect)clipRect<b> boxType:</b> (NSBoxType)boxType<b> borderType:</b> (NSBorderType)borderType<b> inView:</b> (NSBox*)box;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBrowserHeaderCell$withFrame$inView$">drawBrowserHeaderCell: withFrame: inView: </a></h3>
- (void) <b>drawBrowserHeaderCell:</b> (NSTableHeaderCell*)cell<b> withFrame:</b> (NSRect)rect<b> inView:</b> (NSView*)view;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawBrowserRect$inView$withScrollerRect$columnSize$">drawBrowserRect: inView: withScrollerRect: columnSize: </a></h3>
- (void) <b>drawBrowserRect:</b> (NSRect)rect<b> inView:</b> (NSView*)view<b> withScrollerRect:</b> (NSRect)scrollerRect<b> columnSize:</b> (NSSize)columnSize;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawButton$in$view$style$state$">drawButton: in: view: style: state: </a></h3>
- (void) <b>drawButton:</b> (NSRect)frame<b> in:</b> (NSCell*)cell<b> view:</b> (NSView*)view<b> style:</b> (int)style<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)state;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Draws a button <var>frame</var> and background (not
its content) for the specified <var>cell</var> and
<var>view</var>.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawColorWellBorder$withBounds$withClip$">drawColorWellBorder: withBounds: withClip: </a></h3>
- (NSRect) <b>drawColorWellBorder:</b> (NSColorWell*)well<b> withBounds:</b> (NSRect)bounds<b> withClip:</b> (NSRect)clipRect;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawFocusFrame$view$">drawFocusFrame: view: </a></h3>
- (void) <b>drawFocusFrame:</b> (NSRect)frame<b> view:</b> (NSView*)view;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
Draws the indicator (normally a dotted rectangle) to
show that the <var>view</var> currently has keyboard
focus.
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawKnobInCell$">drawKnobInCell: </a></h3>
- (void) <b>drawKnobInCell:</b> (NSCell*)cell;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawMenuRect$inView$isHorizontal$itemCells$">drawMenuRect: inView: isHorizontal: itemCells: </a></h3>
- (void) <b>drawMenuRect:</b> (NSRect)rect<b> inView:</b> (NSView*)view<b> isHorizontal:</b> (BOOL)horizontal<b> itemCells:</b> (NSArray*)itemCells;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawMenuTitleBackground$withBounds$withClip$">drawMenuTitleBackground: withBounds: withClip: </a></h3>
- (NSRect) <b>drawMenuTitleBackground:</b> (GSTitleView*)aTitleView<b> withBounds:</b> (NSRect)bounds<b> withClip:</b> (NSRect)clipRect;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawPopUpButtonCellInteriorWithFrame$withCell$inView$">drawPopUpButtonCellInteriorWithFrame: withCell: inView: </a></h3>
- (void) <b>drawPopUpButtonCellInteriorWithFrame:</b> (NSRect)cellFrame<b> withCell:</b> (NSCell*)cell<b> inView:</b> (NSView*)controlView;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawProgressIndicator$withBounds$withClip$atCount$forValue$">drawProgressIndicator: withBounds: withClip: atCount: forValue: </a></h3>
- (void) <b>drawProgressIndicator:</b> (NSProgressIndicator*)progress<b> withBounds:</b> (NSRect)bounds<b> withClip:</b> (NSRect)rect<b> atCount:</b> (int)count<b> forValue:</b> (double)val;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawProgressIndicatorBarDeterminate$">drawProgressIndicatorBarDeterminate: </a></h3>
- (void) <b>drawProgressIndicatorBarDeterminate:</b> (NSRect)bounds;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawProgressIndicatorBezel$withClip$">drawProgressIndicatorBezel: withClip: </a></h3>
- (NSRect) <b>drawProgressIndicatorBezel:</b> (NSRect)bounds<b> withClip:</b> (NSRect)rect;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawScrollViewRect$inView$">drawScrollViewRect: inView: </a></h3>
- (void) <b>drawScrollViewRect:</b> (NSRect)rect<b> inView:</b> (NSView*)view;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawScrollerRect$inView$hitPart$isHorizontal$">drawScrollerRect: inView: hitPart: isHorizontal: </a></h3>
- (void) <b>drawScrollerRect:</b> (NSRect)rect<b> inView:</b> (NSView*)view<b> hitPart:</b> (NSScrollerPart)hitPart<b> isHorizontal:</b> (BOOL)isHorizontal;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawSegmentedControlSegment$withFrame$inView$style$state$roundedLeft$roundedRight$">drawSegmentedControlSegment: withFrame: inView: style: state: roundedLeft: roundedRight: </a></h3>
- (void) <b>drawSegmentedControlSegment:</b> (NSCell*)cell<b> withFrame:</b> (NSRect)cellFrame<b> inView:</b> (NSView*)controlView<b> style:</b> (NSSegmentStyle)style<b> state:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$GSThemeControlState">GSThemeControlState</a>)state<b> roundedLeft:</b> (BOOL)roundedLeft<b> roundedRight:</b> (BOOL)roundedRight;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
<em>Description forthcoming.</em>
</div>
<hr width="25%" align="left" />
</div>
<div class="method">
<h3><a name="method$GSTheme(Drawing)-drawSeparatorItemForMenuItemCell$withFrame$inView$isHorizontal$">drawSeparatorItemForMenuItemCell: withFrame: inView: isHorizontal: </a></h3>
- (void) <b>drawSeparatorItemForMenuItemCell:</b> (NSMenuItemCell*)cell<b> withFrame:</b> (NSRect)cellFrame<b> inView:</b> (NSView*)controlView<b> isHorizontal:</b> (BOOL)isHorizontal;<br />
<div class="availability">
<b>Availability:</b> Not in OpenStep/MacOS-X</div>
<br />
<div class="desc">
</p>
<p>
Draws a separator between normal menu items in a
menu.
</p>
<p>
</p>
<p>
Each separator corresponds to a menu item that
returns <code>YES</code> to
-isSeparatorItem
</p>
<p>
</p>
<p>
You can provide an image tile named
<em>GSMenuSeparatorItem</em> to draw the separator.
</p>
<p>
</div>
<hr width="25%" align="left" />
</div>
<br />
<a href="GuiAdditions.html">Up</a>
</font>
</body>
</html>
|