{"id":45,"date":"2007-04-25T07:04:04","date_gmt":"2007-04-24T23:04:04","guid":{"rendered":"http:\/\/127.0.0.1\/website_linux\/blog\/?p=45"},"modified":"2007-04-25T07:04:04","modified_gmt":"2007-04-24T23:04:04","slug":"%e4%bb%80%e4%b9%88%e6%98%afgtk%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/opgogo.com\/blog2\/?p=45","title":{"rendered":"\u4ec0\u4e48\u662fGTK+\uff1f"},"content":{"rendered":"<p>What is GTK+?<\/p>\n<p>A History of GTK+<\/p>\n<p>GTK+ \u7684\u5386\u53f2<\/p>\n<p>GTK+ was o&#114;iginally developed for GIMP\uff0c the GNU Image Manipulation Program. GTK+ stands for the GIMP Tool Kit. GTK+ has grown from these beginnings and is now used as a central part of Gnome\uff0c the GNU Projects desktop environment. GTK+ has also been ported to BeOS and Win32\uff0c which makes it the perfect choice to use as the basis for a PHP extension\uff0c keeping PHP as cross-platform as possible and allowing the creation of Windowed applications in PHP for Linux\uff0c BeOS and Windows.<\/p>\n<p>GTK+ \u6765\u6e90\u4e8e GIMP(GNU Image Manipulation Program).GTK+ \u57fa\u4e8e GIMP \u5f00\u53d1\u5305\u3002GTK+ \u5df2\u7ecf\u4ece\u8fd9\u4e9b\u5f00\u521b\u8005\u91cc\u6210\u957f\u8d77\u6765\u4e86\uff0c\u73b0\u5728\u7528\u4e8e Gnome \u7684\u4e3b\u8981\u90e8\u5206\uff0cGNU \u5de5\u7a0b\u684c\u9762\u73af\u5883\u3002 GTK+ \u5df2\u7ecf\u5ef6\u4f38\u5230 BeOs \u548c win32 \u7cfb\u7edf\uff0c \u6210\u4e3a\u57fa\u4e8e php \u6269\u5c55\u7684\u6700\u4f73\u9009\u62e9\uff0c\u4f7f\u7528 php \u7684\u8de8\u5e73\u53f0 \u7279\u6027\u6765\u5f00\u53d1\u7528\u4e8e linux\uff0cBeOS \uff0cWindows \u7684\u7a97\u53e3\u7a0b\u5e8f<\/p>\n<p>What does GTK+ do?<\/p>\n<p>GTK+ \u80fd\u5e72\u4ec0\u4e48\uff1f<\/p>\n<p>GTK+ is a set of libraries written in C to cr&#101;ate graphical user interfaces. It has an object o&#114;iented architecture developed in three libraries:<\/p>\n<p>GTK+ \u662f\u7528 C \u7f16\u5199\u7684\u7528\u4e8e\u5f00\u53d1\u7528\u6237\u56fe\u5f62\u754c\u9762\u7684\u5e93\u3002<\/p>\n<p>GLib<\/p>\n<p>provides various tools for use when programming with GTK+.<\/p>\n<p>\u63d0\u4f9b\u5f00\u53d1\u65f6\u9700\u8981\u7684\u4e0d\u540c\u5de5\u5177<\/p>\n<p>GDK<\/p>\n<p>abstracts the low-level window drawing functions.<\/p>\n<p>\u62bd\u8c61\u7684\u4f4e\u7ea7\u7a97\u53e3\u7ed8\u753b\u51fd\u6570<\/p>\n<p>GTK<\/p>\n<p>provides a set of widgets for use when creating your GUI.<\/p>\n<p>\u63d0\u4f9b\u5efa\u7acb\u4f60\u7684 GUI \u9700\u8981\u7684\u5c0f\u90e8\u4ef6<\/p>\n<p>______________<\/p>\n<p>GTK+ \u662f\u4e00\u4e2a\u7528\u4e8e\u521b\u5efa\u56fe\u5f62\u7528\u6237\u754c\u9762\u7684\u591a\u5e73\u53f0\u5de5\u5177,\u5177\u6709 Motif \u7684\u5916\u89c2\u548c\u98ce\u683c.\u5b9e\u9645\u4e0a,\u5b83\u6bd4 Motif \u770b\u8d77\u6765\u597d\u591a\u4e86,\u5b83\u5305\u542b\u6709\u57fa\u672c\u7684\u63a7\u4ef6\u548c\u4e00\u4e9b\u5f88\u590d\u6742\u7684\u7684\u63a7\u4ef6:\u4f8b\u5982\u6587\u4ef6\u9009\u62e9\u63a7\u4ef6\u548c\u989c\u8272\u9009\u62e9\u63a7\u4ef6. GTK+ \u6700\u521d\u662f\u4e3a GIMP(GNU \u56fe\u5f62\u5904\u7406\u7a0b\u5e8f)\u53d1\u73b0\u7684\u63a7\u4ef6\u96c6. \u7136\u540e\u5b83\u4fbf\u4e0d\u65ad\u7684\u6269\u5c55, \u76f4\u5230\u4eca\u5929\u88ab\u7528\u4e8e\u5927\u91cf\u7684\u5e94\u7528\u7a0b\u5e8f\u5f53\u4e2d, \u5e76\u505a\u4e3a GNOME \u684c\u9762\u5de5\u7a0b\u7684\u5de5\u5177<\/p>\n<p>______________<\/p>\n<p>GTK+\uff08GIMP\u5de5\u5177\u5305\uff09\u6700\u521d\u4e3a\u4e86GNU\u56fe\u8c61\u64cd\u4f5c\u7a0b\u5e8f\uff08\u7b80\u79f0GIMP\uff09\u800c\u5f00\u53d1\u7684\u7684\uff0c\u662f\u4e00\u4e2a\u5c0f\u578b\u800c\u9ad8\u6548\u7684\u63a7\u4ef6\u5e93\uff0c\u5b83\u5305\u542b\u6709\u57fa\u672c\u7684\u63a7\u4ef6\u548c\u4e00\u4e9b\u5f88\u590d\u6742\u7684\u7684\u63a7\u4ef6:\u4f8b\u5982\u6587\u4ef6\u9009\u62e9\u63a7\u4ef6\u548c\u989c\u8272\u9009\u62e9\u63a7\u4ef6\u3002GTK+\u53d1\u5c55\u8fc5\u901f\uff0c\u73b0\u5728\u5df2\u7ecf\u6210\u4e3aGNU\u684c\u9762\u73af\u5883\u9879\u76ee\u7684\u4e00\u4e2a\u7ec4\u6210\u90e8\u5206\uff08Gnome\uff09\u3002<\/p>\n<p>GTK+\u4e2d\u7684+\u662f\u4ec0\u4e48\u610f\u601d?<\/p>\n<p>Peter Mattis\uff08GTK+\u7684\u521b\u59cb\u4eba\u4e4b\u4e00\uff09\u7684\u90ae\u4ef6\u8fd9\u6837\u8868\u8ff0:<\/p>\n<p>\u6211\u539f\u6765\u7f16\u5199\u7684gtk\u5305\u542b\u4ee5\u4e0b\u7684\u4e09\u4e2a\u5e93:libglib, libgdk and libgtk.\u5b83\u662f\u4e00\u79cd\u5e73\u884c\u7684\u63a7\u4ef6\u5c42\u6b21,\u4f60\u4e0d\u80fd\u591f\u4ece\u4e00\u4e2a\u5df2\u5b58\u5728\u7684\u63a7\u4ef6\u4e2d\u5f97\u5230\u4e00\u4e2a\u65b0\u7684\u63a7\u4ef6,\u65b0\u7248\u7684gtk+\u5305\u542b\u4e00\u4e2a\u6bd4\u4fe1\u53f7\u673a\u5236\u66f4\u52a0\u6807\u51c6\u7684\u56de\u8c03\u673a\u5236,+\u7528\u6765\u533a\u522b\u539f\u6765\u7684\u7248\u672c\u548c\u65b0\u7684\u7248\u672c,\u4f60\u53ef\u4ee5\u628a\u5b83\u770b\u4f5c\u4e00\u4e2a\u52a0\u5165\u4e86\u9762\u5411\u5bf9\u8c61\u7279\u6027\u7684\u65e7\u7248\u7684\u52a0\u5f3a\u7248.<br \/>\n\u5b9e\u9645\u4e0a\uff0cGTK+\u662f\u4e00\u7ec4C\u8bed\u8a00\u5e93\uff1aGTK\uff0cGDK\u548cGlib\u3002<br \/>\nGTK+ == Gimp Toolkit<\/p>\n<p>GDK == GTK+ Drawing Kit<\/p>\n<p>GLib == G Library<\/p>\n","protected":false},"excerpt":{"rendered":"<p>What is GTK+? A History of GTK+ GTK+ \u7684\u5386\u53f2 GTK+ was o&#114;iginally developed for GIMP\uff0c the GNU Image &hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[28],"tags":[],"class_list":["post-45","post","type-post","status-publish","format-standard","hentry","category-computer"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=\/wp\/v2\/posts\/45","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=45"}],"version-history":[{"count":0,"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=\/wp\/v2\/posts\/45\/revisions"}],"wp:attachment":[{"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=45"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=45"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opgogo.com\/blog2\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=45"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}