{"id":3582,"date":"2021-04-28T23:19:18","date_gmt":"2021-04-28T14:19:18","guid":{"rendered":"https:\/\/www.utsbox.com\/?p=3582"},"modified":"2021-04-28T23:22:28","modified_gmt":"2021-04-28T14:22:28","slug":"vst-gui%e3%81%ab%e3%81%8a%e3%81%91%e3%82%8b%e3%83%89%e3%83%a9%e3%83%83%e3%82%b0%e3%82%a2%e3%83%b3%e3%83%89%e3%83%89%e3%83%ad%e3%83%83%e3%83%97%e3%81%ae%e5%ae%9f%e8%a3%85","status":"publish","type":"post","link":"https:\/\/www.utsbox.com\/?p=3582","title":{"rendered":"VST GUI\u306b\u304a\u3051\u308b\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u306e\u5bfe\u5fdc"},"content":{"rendered":"<h1>VST GUI\u306b\u304a\u3051\u308b\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u306e\u5bfe\u5fdc<\/h1>\n<p>VST GUI\u306b\u304a\u3044\u3066\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3067\u53d7\u3051\u53d6\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<div style=\"width: 640px;\" class=\"wp-video\"><video class=\"wp-video-shortcode\" id=\"video-3582-1\" width=\"640\" height=\"480\" preload=\"metadata\" controls=\"controls\"><source type=\"video\/mp4\" src=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2021\/04\/20210428.mp4?_=1\" \/><a href=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2021\/04\/20210428.mp4\">https:\/\/www.utsbox.com\/wp-content\/uploads\/2021\/04\/20210428.mp4<\/a><\/video><\/div>\n<p>\u306a\u304a\u3001VST GUI\u306e\u57fa\u672c\u7684\u306a\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<\/ul>\n<p><!--more--><\/p>\n<h2>\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u53d7\u4ed8\u7528\u306eView\u30af\u30e9\u30b9\u306e\u4f5c\u6210<\/h2>\n<p>\u307e\u305a\u3001\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u64cd\u4f5c\u3092\u53d7\u3051\u4ed8\u3051\u308b\u305f\u3081\u306e\u30af\u30e9\u30b9\u3092CView\u30af\u30e9\u30b9\u3068IDropTarget\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3057\u3066\u4f5c\u6210\u3057\u307e\u3059\u3002<br \/>\nWindows\u3067\u300cwindows.h\u300d\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001\u300cwindows.h\u300d\u306bIDropTarget\u30af\u30e9\u30b9\u304c\u5b9a\u7fa9\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001VSTGUI::IDropTarget\u306e\u3088\u3046\u306b\u540d\u524d\u7a7a\u9593\u3092\u6307\u5b9a\u3057\u306a\u3044\u3068\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u3053\u306e\u30af\u30e9\u30b9\u306f\u80cc\u666f\u753b\u50cf\u3084\u80cc\u666f\u8272\u3092\u8a2d\u5b9a\u3057\u306a\u3044\u305f\u3081\u898b\u305f\u76ee\u4e0a\u306f\u4f55\u3082\u8868\u793a\u3055\u308c\u306a\u3044\u30d3\u30e5\u30fc(UI)\u3068\u306a\u308b\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066setBackground()\u306a\u3069\u3067\u753b\u50cf\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3010guieditor.h\u3011<br \/>\n[crayon]<br \/>\nclass CDragAndDropView : public CView<br \/>\n\t, public VSTGUI::IDropTarget \/\/ \u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u51e6\u7406\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u3001IDropTarget\u3092\u7d99\u627f<br \/>\n{<br \/>\npublic:<br \/>\n\tCDragAndDropView(const CRect&#038; size);<\/p>\n<p>\t\/\/ IDropTarget\u306e\u95a2\u6570 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n\t\/\/ \u30c9\u30e9\u30c3\u30b0\u304c\u958b\u59cb\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\n\tDragOperation onDragEnter(DragEventData eventData) override;<\/p>\n<p>\t\/\/ \u30c9\u30e9\u30c3\u30b0\u3067\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5\u4e2d\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\n\tDragOperation onDragMove(DragEventData eventData) override;<\/p>\n<p>\t\/\/ \u30c9\u30e9\u30c3\u30b0\u304c\u4e2d\u65ad\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570(\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5916\u306b\u306a\u3063\u305f\u306a\u3069)<br \/>\n\tvoid onDragLeave(DragEventData eventData) override;<\/p>\n<p>\t\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\n\tbool onDrop(DragEventData eventData) override;<br \/>\n};<\/p>\n<p>[\/crayon]<br \/>\n\u3010guieditor.cpp\u3011<br \/>\n[crayon]<br \/>\nCDragAndDropView::CDragAndDropView(const CRect&#038; size)<br \/>\n\t: CView(size)<br \/>\n{<br \/>\n\tsetDropTarget(this); \/\/ \u3053\u306eView\u3092\u30c9\u30ed\u30c3\u30d7\u64cd\u4f5c\u306e\u5bfe\u8c61\u3068\u3057\u3066\u767b\u9332\u3059\u308b<br \/>\n}<\/p>\n<p>\/\/ \u30c9\u30e9\u30c3\u30b0\u304c\u958b\u59cb\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\nDragOperation CDragAndDropView::onDragEnter(DragEventData eventData)<br \/>\n{<br \/>\n\treturn onDragMove(eventData);<br \/>\n}<\/p>\n<p>\/\/ \u30c9\u30e9\u30c3\u30b0\u3067\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5\u4e2d\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\nDragOperation CDragAndDropView::onDragMove(DragEventData eventData)<br \/>\n{<br \/>\n\treturn DragOperation::Move;<br \/>\n}<\/p>\n<p>\/\/ \u30c9\u30e9\u30c3\u30b0\u304c\u4e2d\u65ad\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570(\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5916\u306b\u306a\u3063\u305f\u306a\u3069)<br \/>\nvoid CDragAndDropView::onDragLeave(DragEventData eventData)<br \/>\n{<br \/>\n}<\/p>\n<p>\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\nbool CDragAndDropView::onDrop(DragEventData eventData)<br \/>\n{<br \/>\n\t\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b\u3002<br \/>\n\t\/\/ (\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u304c\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u30c7\u30fc\u30bf\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b\u3002)<br \/>\n\tint count = eventData.drag->getCount();<\/p>\n<p>\t\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u6570\u3060\u3051\u51e6\u7406\u3059\u308b<br \/>\n\tfor (int i = 0; i < count; i++)\n\t{\n\t\tchar* buffer; \/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\n\t\tIDataPackage::Type type; \/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\n\t\tint size = 0; \/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\n\n\t\t\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3002\n\t\t\/\/ buffer\u3068type\u306b\u305d\u308c\u305e\u308c\u30c7\u30fc\u30bf\u3068\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002\n\t\t\/\/ \u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306fkFilePath\u30fbkText\u30fbkBinary\u306e\u3044\u305a\u308c\u304b\u306b\u306a\u308b\u3002\n\t\t\/\/ \u623b\u308a\u5024\u306f\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3002\n\t\tsize = eventData.drag->getData(i, (const void*&#038;)buffer, type);<\/p>\n<p>\t\t\/\/ \u3053\u3053\u3067\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306a\u3069\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u8fbc\u306a\u3069\u3092\u884c\u3046<br \/>\n\t\t\/\/ \u4eca\u56de\u306f\u7701\u7565<br \/>\n\t}<\/p>\n<p>\treturn true;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>CDragAndDropView\u3067\u306f\u3001\u30b3\u30f3\u30b9\u30c8\u30e9\u30af\u30bf\u3067setDropTarget()\u95a2\u6570\u3092\u547c\u3073\u51fa\u3057\u3001\u81ea\u5206\u81ea\u8eab\u3092\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u64cd\u4f5c\u306e\u5bfe\u8c61\u3068\u3057\u3066\u767b\u9332\u3057\u307e\u3059\u3002<br \/>\n\u3053\u308c\u3067\u3001CDragAndDropView\u4e0a\u3067\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u64cd\u4f5c\u304c\u767a\u751f\u3057\u305f\u969b\u306bIDropTarget\u30af\u30e9\u30b9\u306e\u95a2\u6570\u304b\u3089\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u305f\u5404\u95a2\u6570\u304c\u547c\u3073\u51fa\u3055\u308c\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[crayon mark=&#8221;4&#8243;]<br \/>\nCDragAndDropView::CDragAndDropView(const CRect&#038; size)<br \/>\n\t: CView(size)<br \/>\n{<br \/>\n\tsetDropTarget(this); \/\/ \u3053\u306eView\u3092\u30c9\u30ed\u30c3\u30d7\u64cd\u4f5c\u306e\u5bfe\u8c61\u3068\u3057\u3066\u767b\u9332\u3059\u308b<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>\u7d9a\u3044\u3066\u3001IDropTarget\u30af\u30e9\u30b9\u306e\u95a2\u6570\u304b\u3089\u30aa\u30fc\u30d0\u30fc\u30e9\u30a4\u30c9\u3057\u305fonDragEnter()\u95a2\u6570\u3001onDragMove()\u95a2\u6570\u3001onDragLeave()\u95a2\u6570\u3001onDrop()\u95a2\u6570\u306e\u51e6\u7406\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/p>\n<p>onDragEnter()\u95a2\u6570\u306f\u3001\u30c9\u30e9\u30c3\u30b0\u3055\u308c\u305f\u72b6\u614b\u3067\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u300cCDragAndDropView\u306e\u5916\u300d\u304b\u3089\u300cCDragAndDropView\u306e\u4e0a\u300d\u306b\u5165\u3063\u3066\u304d\u305f\u3068\u304d\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306eDragEventData(\u5f8c\u8ff0)\u306b\u306f\u30c9\u30e9\u30c3\u30b0\u306e\u72b6\u614b(\u30c7\u30fc\u30bf\u5185\u5bb9\u3084\u30ab\u30fc\u30bd\u30eb\u4f4d\u7f6e\u306a\u3069)\u304c\u4fdd\u5b58\u3055\u308c\u3066\u3044\u307e\u3059\u304c\u3001\u4f55\u3082\u3059\u308b\u3053\u3068\u304c\u306a\u3051\u308c\u3070\u3001onDragMove()\u3092\u547c\u3073\u51fa\u3057\u3066\u7d42\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>[crayon mark=&#8221;4&#8243;]<br \/>\n\/\/ \u30c9\u30e9\u30c3\u30b0\u304c\u958b\u59cb\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\nDragOperation CDragAndDropView::onDragEnter(DragEventData eventData)<br \/>\n{<br \/>\n\treturn onDragMove(eventData);<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>onDragMove()\u95a2\u6570\u306f\u3001\u30c9\u30e9\u30c3\u30b0\u3055\u308c\u305f\u72b6\u614b\u3067\u300cCDragAndDropView\u306e\u4e0a\u300d\u3092\u52d5\u3044\u305f\u969b\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<br \/>\n\u623b\u308a\u5024\u306eDragOperation\u578b\u306f\u5217\u6319\u578b\u3067\u3001DragOperation::Move\u304bDragOperation::Copy\u3092\u8fd4\u3059\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>[crayon mark=&#8221;4&#8243;]<br \/>\n\/\/ \u30c9\u30e9\u30c3\u30b0\u3067\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u79fb\u52d5\u4e2d\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\nDragOperation CDragAndDropView::onDragMove(DragEventData eventData)<br \/>\n{<br \/>\n\treturn DragOperation::Move;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>DragOperation::Move\u3068DragOperation::Copy\u306f\u30c9\u30e9\u30c3\u30b0\u4e2d\u306e\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u4e0b\u8a18\u306e\u3088\u3046\u306b\u5909\u308f\u308a\u307e\u3059\u3002<br \/>\nDragOperation::Move\u304c\u5de6\u306e\u30ab\u30fc\u30bd\u30eb\u3067DragOperation::Copy\u304c\u53f3\u306e\u30ab\u30fc\u30bd\u30eb\u3067\u3059\u3002<\/p>\n<p><a href=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2021\/04\/20210428.png\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.utsbox.com\/wp-content\/uploads\/2021\/04\/20210428.png\" alt=\"\" width=\"130\" height=\"72\" class=\"alignnone size-full wp-image-3599\" \/><\/a><\/p>\n<p>DragOperation\u578b\u306fDragOperation::None\u3082\u6307\u5b9a\u3067\u304d\u307e\u3059\u304c\u3001DragOperation::None\u3092\u6307\u5b9a\u3059\u308b\u3068\u30c9\u30ed\u30c3\u30d7\u3067\u304d\u306a\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>onDragLeave()\u95a2\u6570\u306f\u30c9\u30e9\u30c3\u30b0\u3055\u308c\u305f\u72b6\u614b\u3067\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u300cCDragAndDropView\u306e\u4e0a\u300d\u304b\u3089\u300cCDragAndDropView\u306e\u5916\u300d\u306b\u51fa\u305f\u3068\u304d\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<br \/>\n\u4f55\u3082\u3059\u308b\u3053\u3068\u304c\u306a\u3051\u308c\u3070\u3001\u7a7a\u306e\u95a2\u6570\u306b\u3057\u3066\u3082\u554f\u984c\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<p>[crayon]<br \/>\n\/\/ \u30c9\u30e9\u30c3\u30b0\u304c\u4e2d\u65ad\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570(\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u304c\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u5916\u306b\u306a\u3063\u305f\u306a\u3069)<br \/>\nvoid CDragAndDropView::onDragLeave(DragEventData eventData)<br \/>\n{<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>onDrop()\u95a2\u6570\u306f\u5b9f\u969b\u306b\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u304c\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u969b\u306b\u547c\u3073\u51fa\u3055\u308c\u307e\u3059\u3002<br \/>\n\u5f15\u6570\u306eDragEventData\u69cb\u9020\u4f53\u3092\u4f7f\u7528\u3057\u3066\u5fc5\u8981\u306a\u60c5\u5831\u3092\u53d6\u5f97\u3057\u307e\u3059\u3002DragEventData\u69cb\u9020\u4f53\u306f\u4e0b\u8a18\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<ul>\n<li>DragEventData\u69cb\u9020\u4f53<\/li>\n<table>\n<tr>\n<th>\u578b<\/th>\n<th>\u5909\u6570\u540d<\/th>\n<th>\u6982\u8981<\/th>\n<\/tr>\n<tr>\n<td>IDataPackage*<\/td>\n<td>drag<\/td>\n<td>\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u30c7\u30fc\u30bf\u304c\u683c\u7d0d\u3055\u308c\u305fIDataPackage\u30af\u30e9\u30b9\u306e\u5909\u6570<\/td>\n<\/tr>\n<tr>\n<td>CPoint<\/td>\n<td>pos<\/td>\n<td>\u30de\u30a6\u30b9\u30ab\u30fc\u30bd\u30eb\u306e\u4f4d\u7f6e\u3092\u793a\u3059\u5909\u6570<\/td>\n<\/tr>\n<tr>\n<td>CButtonState<\/td>\n<td>modifiers<\/td>\n<td>\u30de\u30a6\u30b9\u30dc\u30bf\u30f3\u306e\u72b6\u614b\u3092\u793a\u3059CButtonState\u30af\u30e9\u30b9\u306e\u5909\u6570<\/td>\n<\/tr>\n<\/table>\n<\/ul>\n<p>onDrop()\u95a2\u6570\u3067\u306f\u57fa\u672c\u7684\u306b\u5f15\u6570eventData\u306eIDataPackage* drag\u3092\u4f7f\u3044\u307e\u3059\u3002<br \/>\nIDataPackage\u30af\u30e9\u30b9\u306f\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u30c7\u30fc\u30bf\u304c\u683c\u7d0d\u3055\u308c\u305f\u30af\u30e9\u30b9\u3067\u3001IDataPackage\u30af\u30e9\u30b9\u306egetCount()\u95a2\u6570\u3067\u30c9\u30e9\u30c3\u30b0\u30fb\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u6570\u3092\u78ba\u8a8d\u3057\u3001getData()\u95a2\u6570\u3092\u4f7f\u7528\u3057\u3066\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u4f7f\u3044\u65b9\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>[crayon mark=&#8221;4-6,15-19,21-22&#8243;]<br \/>\n\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u969b\u306b\u5b9f\u65bd\u3055\u308c\u308b\u95a2\u6570<br \/>\nbool CDragAndDropView::onDrop(DragEventData eventData)<br \/>\n{<br \/>\n\t\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b\u3002<br \/>\n\t\/\/ (\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u304c\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u308b\u5834\u5408\u304c\u3042\u308b\u306e\u3067\u3001\u30c7\u30fc\u30bf\u306e\u6570\u3092\u53d6\u5f97\u3059\u308b\u3002)<br \/>\n\tint count = eventData.drag->getCount();<\/p>\n<p>\t\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf(\u30d5\u30a1\u30a4\u30eb\u306a\u3069))\u306e\u6570\u3060\u3051\u51e6\u7406\u3059\u308b<br \/>\n\tfor (int i = 0; i < count; i++)\n\t{\n\t\tchar* buffer; \/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\n\t\tIDataPackage::Type type; \/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\n\t\tint size = 0; \/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\n\n\t\t\/\/ \u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u3002\n\t\t\/\/ buffer\u3068type\u306b\u305d\u308c\u305e\u308c\u30c7\u30fc\u30bf\u3068\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u304c\u53d6\u5f97\u3067\u304d\u308b\u3002\n\t\t\/\/ \u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u306fkFilePath\u30fbkText\u30fbkBinary\u306e\u3044\u305a\u308c\u304b\u306b\u306a\u308b\u3002\n\t\t\/\/ \u623b\u308a\u5024\u306f\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3002\n\t\tsize = eventData.drag->getData(i, (const void*&#038;)buffer, type);<\/p>\n<p>\t\t\/\/ \u3053\u3053\u3067\u30d5\u30a1\u30a4\u30eb\u30d1\u30b9\u306a\u3069\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u306e\u8aad\u8fbc\u306a\u3069\u3092\u884c\u3046<br \/>\n\t\t\/\/ \u4eca\u56de\u306f\u7701\u7565<br \/>\n\t}<\/p>\n<p>\treturn true;<br \/>\n}<br \/>\n[\/crayon]<\/p>\n<p>getData()\u95a2\u6570\u306f\u4e0b\u8a18\u306b\u306a\u308a\u307e\u3059\u3002getCount()\u95a2\u6570\u306b\u3064\u3044\u3066\u306f\u8a73\u7d30\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n<ul>\n<li>getData()\u95a2\u6570<\/li>\n<table>\n<tr>\n<th>\u6982\u8981<\/th>\n<td colspan=\"3\">\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u4e2d\u306e\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570<\/td>\n<\/tr>\n<tr>\n<th rowspan=\"2\">\u623b\u308a\u5024<\/th>\n<th>\u578b<\/th>\n<th colspan=\"2\">\u6982\u8981<\/th>\n<\/tr>\n<tr>\n<td>uint32_t<\/td>\n<td>\u53d6\u5f97\u3057\u305f\u30c7\u30fc\u30bf\u306e\u30b5\u30a4\u30ba\u3092\u8fd4\u3059\u3002<\/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>uint32_t<\/td>\n<td>index<\/td>\n<td>\u30c9\u30e9\u30c3\u30b0\u30fb\u30c9\u30ed\u30c3\u30d7\u3055\u308c\u305f\u30c7\u30fc\u30bf\u306e\u756a\u53f7\u30020\uff5egetCount()\u95a2\u6570\u306e\u623b\u308a\u5024\u306e\u7bc4\u56f2\u3067\u6307\u5b9a\u3057\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>const void*&#038;<\/td>\n<td>buffer<\/td>\n<td>\u30c7\u30fc\u30bf\u30d0\u30c3\u30d5\u30a1\u306e\u30dd\u30a4\u30f3\u30bf\u3092\u683c\u7d0d\u3059\u308b\u5909\u6570\u3002<br \/>\u5f8c\u8ff0\u3059\u308b\u5f15\u6570type\u306e\u5024\u304ckFilePath\u30fbkText\u306e\u5834\u5408\u3001\u30dd\u30a4\u30f3\u30bf\u306e\u5185\u5bb9\u306f\\0\u3067\u7d42\u7aef\u3055\u308c\u305fUTF-8\u306e\u6587\u5b57\u5217\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\u5f15\u6570type\u306e\u5024\u304ckBinary\u306e\u5834\u5408\u3001\u30dd\u30a4\u30f3\u30bf\u306e\u5185\u5bb9\u306f\u30d0\u30a4\u30ca\u30ea\u30c7\u30fc\u30bf\u3068\u306a\u308a\u307e\u3059\u3002<br \/>\u30c7\u30fc\u30bf\u30d0\u30c3\u30d5\u30a1\u81ea\u4f53\u306fSDK\u5185\u90e8\u3067\u78ba\u4fdd\u30fb\u89e3\u653e\u3055\u308c\u307e\u3059\u3002<\/td>\n<\/tr>\n<tr>\n<td>Type&#038;<\/td>\n<td>type<\/td>\n<td>\u30c7\u30fc\u30bf\u306e\u7a2e\u985e\u3092\u683c\u7d0d\u3059\u308b\u5909\u6570\u3002<br \/>\u30c7\u30fc\u30bf\u7a2e\u985e\u306fkFilePath\u30fbkText\u30fbkBinary\u306e3\u7a2e\u985e\u304c\u3042\u308a\u307e\u3059\u3002<\/td>\n<\/tr>\n<\/table>\n<\/ul>\n<p>IDataPackage\u30af\u30e9\u30b9\u306e\u30e1\u30f3\u30d0\u30fc\u95a2\u6570\u306f\u4e0a\u8a18\u306e\u30b5\u30f3\u30d7\u30eb\u3067\u793a\u3057\u305fgetCount()\u95a2\u6570\u3001getData()\u95a2\u6570\u4ee5\u5916\u306b\u3082getDataType()\u95a2\u6570\u3001getDataSize()\u95a2\u6570\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u8a73\u7d30\u306f\u5272\u611b\u3057\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30fc\u30bf\u304c\u53d6\u5f97\u3067\u304d\u308c\u3070\u3001\u30c7\u30fc\u30bf\u306b\u5408\u308f\u305b\u3066\u51e6\u7406\u3092\u5b9f\u65bd\u3057\u307e\u3059\u3002\u4eca\u56de\u306f\u30c7\u30fc\u30bf\u306e\u51e6\u7406\u306b\u3064\u3044\u3066\u306f\u7701\u7565\u3057\u3066\u304a\u308a\u307e\u3059\u3002<\/p>\n<h2>VST GUI\u3078\u306e\u7d44\u307f\u8fbc\u307f<\/h2>\n<p>CDragAndDropView\u30af\u30e9\u30b9\u304c\u5b9f\u88c5\u3067\u304d\u308c\u3070\u3001\u5b9f\u969b\u306bVST GUI\u306b\u7d44\u307f\u8fbc\u307f\u307e\u3059\u3002<br \/>\nVST GUI\u30af\u30e9\u30b9\u306eopen()\u95a2\u6570\u5185\u3067CDragAndDropView\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010guieditor.cpp\u3011<br \/>\n[crayon mark=&#8221;10-14&#8243;]<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\/\/ \u4f5c\u6210\u3057\u305f\u30d5\u30ec\u30fc\u30e0\u3092\u958b\u304f<br \/>\n\tframe->open(parent);<\/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\u3089Drag&#038;Drop\u306e\u5bfe\u5fdc<br \/>\n\t\/\/ \u5f15\u6570\u3067\u6307\u5b9a\u3057\u305f\u30b5\u30a4\u30ba\u304c\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3092\u53d7\u3051\u4ed8\u3051\u308b\u7bc4\u56f2\u3068\u306a\u308b<br \/>\n\tCDragAndDropView* tmp = new CDragAndDropView(size);<br \/>\n\tframe->addView(tmp);<\/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<\/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>\u4e0a\u8a18\u306b\u3088\u308a\u3001CDragAndDropView\u306e\u5f15\u6570size\u3067\u6307\u5b9a\u3057\u305f\u7bc4\u56f2\u3067\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u306e\u64cd\u4f5c\u3092\u53d7\u3051\u4ed8\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<br \/>\n\u306a\u304a\u3001CDragAndDropView\u306f\u4ed6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3068\u540c\u3058\u304f\u3001addView()\u3067\u767b\u9332\u3057\u305f\u5f8c\u306fframe\u304c\u7834\u68c4\u3055\u308c\u305f\u969b\u306b\u89e3\u653e\u3055\u308c\u308b\u306e\u3067\u3001delete\u3067\u89e3\u653e\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n<h2>\u88dc\u8db3<\/h2>\n<p>\u4eca\u56de\u4f5c\u6210\u3057\u305fCDragAndDropView\u30af\u30e9\u30b9\u306f\u3001\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u306e\u51e6\u7406\u304cCDragAndDropView\u30af\u30e9\u30b9\u5185\u3067\u5b8c\u7d50\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3001\u30c9\u30ed\u30c3\u30d7\u306e\u51e6\u7406\u3067\u4ed6\u306e\u30b3\u30f3\u30c8\u30ed\u30fc\u30eb\u3092\u66f4\u65b0\u3057\u305f\u308a\u3059\u308b\u306b\u306f\u5c11\u3057\u4e0d\u5411\u304d\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>CDragAndDropView\u30af\u30e9\u30b9\u304cIDropTarget\u30af\u30e9\u30b9\u3092\u7d99\u627f\u3059\u308b\u306e\u3067\u306f\u306a\u304f\u3001VST GUI\u30af\u30e9\u30b9(MyVSTGUIEditor)\u306bIDropTarget\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3092\u8ffd\u52a0\u3057\u3066\u30bf\u30fc\u30b2\u30c3\u30c8\u306b\u3059\u308b\u306a\u3069\u3001\u5de5\u592b\u3059\u308b\u3053\u3068\u3067\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4f8b\u3048\u3070CDragAndDropView\u30af\u30e9\u30b9\u3092\u4e0b\u8a18\u306e\u3088\u3046\u306a\u611f\u3058\u3067\u5b9f\u88c5\u3057\u307e\u3059\u3002<\/p>\n<p>\u3010guieditor.h\u3011<br \/>\n[crayon]<br \/>\nclass CDragAndDropView2 : public CView<br \/>\n{<br \/>\npublic:<br \/>\n\t\/\/ CDragAndDropView2\u30af\u30e9\u30b9\u306e\u4e0a\u3067\u884c\u308f\u308c\u305f\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u64cd\u4f5c\u30a4\u30d9\u30f3\u30c8\u306ftarget\u306b\u6e21\u3055\u308c\u308b<br \/>\n\tCDragAndDropView2(const CRect&#038; size, VSTGUI::IDropTarget* target)<br \/>\n\t\t: CView(size)<br \/>\n\t{<br \/>\n\t\tsetDropTarget(target);<br \/>\n\t}<br \/>\n};<\/p>\n<p>[\/crayon]<\/p>\n<p>VSTGUI\u30af\u30e9\u30b9\u5074\u306fIDropTarget\u30af\u30e9\u30b9\u306e\u7d99\u627f\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<p>[crayon]<br \/>\nclass MyVSTGUIEditor : public VSTGUIEditor, public IControlListener<br \/>\n\t, public VSTGUI::IDropTarget \/\/ \u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u51e6\u7406\u3092\u53d7\u3051\u53d6\u308b\u305f\u3081\u3001IDropTarget\u3092\u7d99\u627f<br \/>\n{<br \/>\n\t\/\/ onDragEnter()\u3001onDragMove()\u3001onDragLeave()\u3001onDrop()\u306e\u5b9f\u88c5\u3082\u3082\u3061\u308d\u3093\u884c\u3046\u3053\u3068\uff01<br \/>\n[\/crayon]<\/p>\n<p>VST GUI\u306b\u7d44\u307f\u8fbc\u3080\u969b(CDragAndDropView2\u30af\u30e9\u30b9\u3092\u4f5c\u6210\u3059\u308b\u969b)\u306b\u81ea\u5206\u81ea\u8eab\u3092\u30bf\u30fc\u30b2\u30c3\u30c8\u3068\u3057\u3066\u6307\u5b9a\u3057\u3066\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p>\u3010guieditor.cpp\u3011<br \/>\n[crayon mark=&#8221;10-14&#8243;]<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\/\/ \u4f5c\u6210\u3057\u305f\u30d5\u30ec\u30fc\u30e0\u3092\u958b\u304f<br \/>\n\tframe->open(parent);<\/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\u3089Drag&#038;Drop\u306e\u5bfe\u5fdc<br \/>\n\t\/\/ \u5f15\u6570\u3067\u6307\u5b9a\u3057\u305f\u30b5\u30a4\u30ba\u304c\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3092\u53d7\u3051\u4ed8\u3051\u308b\u7bc4\u56f2\u3068\u306a\u308b<br \/>\n\tCDragAndDropView2* tmp = new CDragAndDropView2(size, this);<br \/>\n\tframe->addView(tmp);<\/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<\/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<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>\u4ee5\u4e0a\u3067\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u306b\u5bfe\u5fdc\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4e0a\u8a18\u4ee5\u5916\u306b\u3082VST3\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>VST GUI\u306b\u304a\u3051\u308b\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u306e\u5bfe\u5fdc VST GUI\u306b\u304a\u3044\u3066\u30d5\u30a1\u30a4\u30eb\u306a\u3069\u3092\u30c9\u30e9\u30c3\u30b0\u30a2\u30f3\u30c9\u30c9\u30ed\u30c3\u30d7\u3067\u53d7\u3051\u53d6\u308b\u65b9\u6cd5\u3092\u8aac\u660e\u3057\u307e\u3059\u3002 \u306a\u304a\u3001VST GUI\u306e\u57fa\u672c\u7684\u306a\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 [&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-3582","post","type-post","status-publish","format-standard","hentry","category-vst3"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p5fXUX-VM","jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/3582","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=3582"}],"version-history":[{"count":11,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/3582\/revisions"}],"predecessor-version":[{"id":3604,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=\/wp\/v2\/posts\/3582\/revisions\/3604"}],"wp:attachment":[{"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.utsbox.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}