{"id":2887,"date":"2020-04-04T21:39:56","date_gmt":"2020-04-04T12:39:56","guid":{"rendered":"https:\/\/www.utsbox.com\/?p=2887"},"modified":"2020-07-25T01:20:01","modified_gmt":"2020-07-24T16:20:01","slug":"%e4%bb%bb%e6%84%8f%e3%81%ae%e3%83%95%e3%82%a9%e3%83%b3%e3%83%88%e3%81%ae%e5%88%a9%e7%94%a8","status":"publish","type":"post","link":"https:\/\/www.utsbox.com\/?p=2887","title":{"rendered":"\u4efb\u610f\u306e\u30d5\u30a9\u30f3\u30c8\u306e\u5229\u7528"},"content":{"rendered":"<h1>\u4efb\u610f\u306e\u30d5\u30a9\u30f3\u30c8\u306e\u5229\u7528<\/h1>\n<p>VST GUI\u306b\u304a\u3044\u3066\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\u3055\u305b\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001VST GUI\u306e\u57fa\u672c\u7684\u306a\u4f5c\u6210\u65b9\u6cd5\u3001\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u3057\u3066\u4e0b\u8a18\u3092\u3054\u7406\u89e3\u3044\u305f\u3060\u3044\u3066\u3044\u308b\u524d\u63d0\u3067\u9032\u3081\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3059\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.utsbox.com\/?p=1186\">\u6700\u5c0f\u69cb\u6210\u306eVST GUI<\/a><\/li>\n<li><a href=\"https:\/\/www.utsbox.com\/?p=1230\">\u3064\u307e\u307f(\u30ce\u30d6)\u7b49\u306e\u5b9f\u88c5\u65b9\u6cd5<\/a><\/li>\n<li><a href=\"https:\/\/www.utsbox.com\/?p=1688\">\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u306e\u5b9f\u88c5<\/a><\/li>\n<\/ul>\n<p>\u30d5\u30a9\u30f3\u30c8\u3092\u5909\u66f4\u3059\u308b\u3068\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2020\/04\/20200404.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2020\/04\/20200404.png\" alt=\"\" width=\"201\" height=\"130\" class=\"alignnone size-full wp-image-2897\" \/><\/a><\/p>\n<p>\u540c\u69d8\u306e\u624b\u9806\u3067<a href=\"https:\/\/www.utsbox.com\/?p=1722\">\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30c3\u30c8<\/a>\u3001<a href=\"https:\/\/www.utsbox.com\/?p=1706\">\u30b3\u30f3\u30dc\u30dc\u30c3\u30af\u30b9<\/a>\u3001<a href=\"https:\/\/www.utsbox.com\/?p=1715\">\u30c1\u30a7\u30c3\u30af\u30dc\u30c3\u30af\u30b9<\/a>\u7b49\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30d5\u30a9\u30f3\u30c8\u3082\u5909\u66f4\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p><!--more--><\/p>\n<p>\u307e\u305a\u3001\u30d5\u30a9\u30f3\u30c8\u3092\u8aad\u307f\u8fbc\u307f\u307e\u3059\u3002<br \/>\nVST GUI\u30af\u30e9\u30b9\u306b\u30d5\u30a9\u30f3\u30c8\u7528\u306e\u5909\u6570\u3092\u5b9a\u7fa9\u3057\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067CFontDesc\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010guieditor.h\u3011<br \/>\n[crayon]<br \/>\nclass MyVSTGUIEditor : public VSTGUIEditor, public IControlListener<br \/>\n{<br \/>\n\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<\/p>\n<p>protected:<br \/>\n\tCFontDesc *font;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>\u3010guieditor.cpp\u3011<br \/>\n[crayon]<br \/>\nMyVSTGUIEditor::MyVSTGUIEditor(void* controller)<br \/>\n\t: VSTGUIEditor(controller)<br \/>\n{<br \/>\n\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<\/p>\n<p>\tfont = new CFontDesc(&#8220;MS Gothic&#8221;, 11); \/\/ \u300c\uff2d\uff33 \u30b4\u30b7\u30c3\u30af\u300d\u30d5\u30a9\u30f3\u30c8\u3092\u4f5c\u6210\u3002\u30d5\u30a9\u30f3\u30c8\u540d\u306f\u82f1\u540d\u3067\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>\u30d5\u30a9\u30f3\u30c8\u3092\u6307\u5b9a\u3059\u308b\u969b\u3001<strong>\u30d5\u30a9\u30f3\u30c8\u540d\u3092\u82f1\u540d\u3067\u6307\u5b9a\u3059\u308b<\/strong>\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<br \/>\n\u3053\u308c\u306fVST GUI\u306e\u8a00\u8a9e\u30fb\u5730\u57df\u8a2d\u5b9a\u304c\u300cen-us\u300d\u3067\u30cf\u30fc\u30c9\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3067\u3059\u3002<\/p>\n<p>CFontDesc\u30af\u30e9\u30b9\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>CFontDesc\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/li>\n<table>\n<tr>\n<th>\u6982\u8981<\/th>\n<td colspan=\"3\">\u30d5\u30a9\u30f3\u30c8\u30af\u30e9\u30b9\u3067\u3042\u308bCFontDesc\u306e\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf<\/td>\n<\/tr>\n<tr>\n<th rowspan=\"4\">\u5f15\u6570<\/th>\n<th>\u578b<\/th>\n<th>\u5909\u6570\u540d<\/th>\n<th>\u6982\u8981<\/th>\n<\/tr>\n<tr>\n<td>UTF8StringPtr<\/td>\n<td>name<\/td>\n<td>\u30d5\u30a9\u30f3\u30c8\u306e\u540d\u524d\u3002\u30d5\u30a9\u30f3\u30c8\u540d\u306f\u82f1\u540d\u3067\u6307\u5b9a\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b<\/td>\n<\/tr>\n<tr>\n<td>CCoord<\/td>\n<td>size<\/td>\n<td>\u30d5\u30a9\u30f3\u30c8\u30b5\u30a4\u30ba\u3002\u7701\u7565\u3059\u308b\u3068 0 \u3068\u306a\u308b\u3002<\/td>\n<\/tr>\n<tr>\n<td>int32_t<\/td>\n<td>style<\/td>\n<td>\u30d5\u30a9\u30f3\u30c8\u306e\u30b9\u30bf\u30a4\u30eb\u3002<br \/>\u7701\u7565\u3059\u308b\u3068kNormalFace\u3068\u306a\u308b\u3002<br \/>\u30b9\u30bf\u30a4\u30eb\u306b\u306fkBoldFace(\u592a\u5b57)\u3001kItalicFace(\u659c\u4f53)\u3001kUnderlineFace(\u4e0b\u7dda)\u3001kStrikethroughFace(\u53d6\u6d88\u7dda)\u304c\u3042\u308b\u3002<br \/>\u30d5\u30e9\u30b0\u5f62\u5f0f\u306e\u305f\u3081or( | )\u3067\u8907\u6570\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u8a2d\u5b9a\u53ef\u80fd\u3002<\/td>\n<\/tr>\n<\/table>\n<\/ul>\n<p>\u7d9a\u3044\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f5c\u6210\u3068\u8aad\u307f\u8fbc\u3093\u3060\u30d5\u30a9\u30f3\u30c8\u306e\u9069\u7528\u3092\u884c\u3044\u307e\u3059\u3002<br \/>\nVST GUI\u30af\u30e9\u30b9\u306eOpen\u95a2\u6570\u5185\u3067\u3001\u30d5\u30ec\u30fc\u30e0\u4f5c\u6210\u5f8c\u3001\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u300c<a href=\"https:\/\/www.utsbox.com\/?p=1688\">createTextLabel<\/a>\u300d\u3067\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\n\u4f5c\u6210\u6642\u306e\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb(CTextLabel)\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u53d6\u5f97\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n(\u300c<a href=\"https:\/\/www.utsbox.com\/?p=1688\">createTextLabel<\/a>\u300d\u306f\u300c<a href=\"https:\/\/www.utsbox.com\/?p=1688\">\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u306e\u5b9f\u88c5<\/a>\u300d\u3092\u53c2\u7167\u3002)<\/p>\n<p>\u305d\u3057\u3066\u3001\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306esetFont\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a9\u30f3\u30c8\u3092\u9069\u7528\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010guieditor.cpp\u3011<br \/>\n[crayon]<br \/>\nbool PLUGIN_API MyVSTGUIEditor::open(void* parent, const PlatformType&#038; platformType)<br \/>\n{<br \/>\n\t\/\/ GUI\u30a6\u30a3\u30f3\u30c9\u30a6\u304c\u958b\u304b\u308c\u305f\u3068\u304d\u306b\u3001UI\u3092\u4f5c\u6210\u3059\u308b<\/p>\n<p>\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<\/p>\n<p>\t\/\/\u3000&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br \/>\n\t\/\/ \u3053\u3053\u304b\u3089\u5404\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f5c\u6210<br \/>\n\tCTextLabel* textlabel = (CTextLabel*)createTextLabel(10, 30, u8&#8243;text&#8221;);<br \/>\n\ttextlabel->setFont(font);<\/p>\n<p>\t\uff5e\uff5e \u4e2d\u7565 \uff5e\uff5e<\/p>\n<p>\t\/\/ GUI\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u30aa\u30fc\u30d7\u30f3\u306b\u6210\u529f\u3057\u305f\u5834\u5408\u306ftrue\u3092\u8fd4\u3059<br \/>\n\treturn true;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>\u4f7f\u7528\u5f8c\u306e\u30d5\u30a9\u30f3\u30c8(CFontDesc\u30af\u30e9\u30b9)\u306f\u89e3\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002VST GUI\u30af\u30e9\u30b9\u306e\u30c7\u30b9\u30c8\u30e9\u30af\u30bf\u306a\u3069\u3067forget\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3066\u89e3\u653e\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010guieditor.cpp\u3011<br \/>\n[crayon]<br \/>\nMyVSTGUIEditor::~MyVSTGUIEditor()<br \/>\n{<br \/>\n\tfont->forget();<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>\u4ee5\u4e0a\u3067\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u5909\u66f4\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u4ee5\u5916\u306b\u3082VST3.6\u306b\u3064\u3044\u3066\u306e\u60c5\u5831\u304c\u3042\u308a\u307e\u3059\u3002\u4e0b\u8a18\u3092\u3054\u53c2\u7167\u304f\u3060\u3055\u3044\u3002<\/p>\n<ul>\n<li><a href=\"https:\/\/www.utsbox.com\/?page_id=1316\">\u306f\u3058\u3081\u3066\u306eVST3\u30d7\u30e9\u30b0\u30a4\u30f3\u4f5c\u308a<\/a><\/li>\n<\/ul>\n<p>\u307e\u305f\u3001\u8cea\u554f\u3084\u3054\u6307\u6458\u306f\u30b3\u30e1\u30f3\u30c8\u6b04\u3084<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\" rel=\"noopener noreferrer\">\u63b2\u793a\u677f<\/a>\u3001<a href=\"https:\/\/twitter.com\/vstcpp\">Twitter<\/a>\u3067\u3044\u305f\u3060\u3051\u3070\u3068\u304a\u3082\u3044\u307e\u3059\u3002<\/p>\n<p>\u25a0<a href=\"https:\/\/jbbs.shitaraba.net\/computer\/42917\/\" title=\"\u63b2\u793a\u677f\" target=\"_blank\" rel=\"noopener noreferrer\">\u63b2\u793a\u677f<\/a><br \/>\n\u25a0Twitter\u30a2\u30ab\u30a6\u30f3\u30c8\uff1a@vstcpp\u3000\u3000\u3000URL\uff1a<a href=\"https:\/\/twitter.com\/vstcpp\">https:\/\/twitter.com\/vstcpp<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4efb\u610f\u306e\u30d5\u30a9\u30f3\u30c8\u306e\u5229\u7528 VST GUI\u306b\u304a\u3044\u3066\u30c6\u30ad\u30b9\u30c8\u3092\u8868\u793a\u3055\u305b\u308b\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u30d5\u30a9\u30f3\u30c8\u3092\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3044\u305f\u3057\u307e\u3059\u3002 \u306a\u304a\u3001VST GUI\u306e\u57fa\u672c\u7684\u306a\u4f5c\u6210\u65b9\u6cd5\u3001\u30c6\u30ad\u30b9\u30c8\u30e9\u30d9\u30eb\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u306e\u4f5c\u6210\u65b9\u6cd5\u3068\u3057\u3066\u4e0b\u8a18\u3092\u3054\u7406\u89e3\u3044\u305f\u3060 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","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":[17],"tags":[],"class_list":["post-2887","post","type-post","status-publish","format-standard","hentry","category-vst3"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fXUX-Kz","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/2887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2887"}],"version-history":[{"count":9,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/2887\/revisions"}],"predecessor-version":[{"id":2899,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/2887\/revisions\/2899"}],"wp:attachment":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2887"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}