本文整理汇总了C++中JArray::append方法的典型用法代码示例。如果您正苦于以下问题:C++ JArray::append方法的具体用法?C++ JArray::append怎么用?C++ JArray::append使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JArray
的用法示例。
在下文中一共展示了JArray::append方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: getProperties
JArray JLEDObj::getProperties() {
JArray properties = JModuleObj::getProperties();
properties.append(JIntegerProperty("value", value, -limit-1, limit));
properties.append(JColorProperty("color", color));
properties.append(JColorProperty("bkgnd", bkgnd));
return properties;
}
示例2: getProperties
JArray JDelaySustainObj::getProperties() {
JArray properties = JAddObj::getProperties();
properties.append(JIntegerProperty("delay", delay,
0, 65535));
properties.append(JIntegerProperty("sustain", sustain,
0, 65535));
return properties;
}
示例3:
JArray J1DMObj::getProperties() {
JArray properties = JModuleObj::getProperties();
properties.append(JIntegerProperty("vx", v[0], 0, mask));
properties.append(JIntegerProperty("vy", v[1], 0, mask));
properties.append(JColorProperty("color", color));
properties.append(JColorProperty("bkgnd", bkgnd));
return properties;
}
示例4: getProperties
JArray JRealComplexObj::getProperties() {
JArray properties = JLabelObj::getProperties();
properties.append(JRealProperty("real", cval.r, w, f));
properties.append(JRealProperty("imag", cval.i, w, f));
properties.append(JIntegerProperty("width", w, 3, 20));
properties.append(JIntegerProperty("float", f, 1, w-2));
return properties;
}
示例5:
JArray JTNG4Obj::getProperties() {
JArray properties = JTNG3Obj::getProperties();
properties.append(JIntegerProperty("oseparator0", oseparators[0], 0, 255));
properties.append(JIntegerProperty("oseparator1", oseparators[1], 0, 255));
properties.append(JIntegerListProperty("exclusive", exclusive, JIntegerListProperty::booleanTag));
properties.append(JIntegerProperty("extraInputCount", extraInputCount, 0, 32-IN_LAST));
return properties;
}
示例6: getProperties
JArray JTNGObj::getProperties() {
JArray properties = JANDObj::getProperties();
properties.append(JIntegerProperty("factor", factor, 1, 256));
properties.append(JIntegerProperty("channelCount", channelCount, 4, 32));
for (int i=0; i<channelCount; i++)
properties.append(JIntegerListProperty(
JString("inv-")+JInteger::toJString(i+1),
inv[i], JIntegerListProperty::booleanTag));
return properties;
}
示例7: getSelectedItems
JArray JListBox::getSelectedItems() {
JArray Selected;
int size = content.size();
for (int i=0; i<size; i++) {
JAssociation &obj = *(JAssociation*)content[i];
if ((int)*(JInteger*)obj.value() == 1) {
Selected.append(*obj.key());
}
}
return Selected;
}
示例8: getProperties
JArray JTimerObj::getProperties() {
JArray properties = JANDObj::getProperties();
properties.append(JIntegerProperty("delay", delay, 1, limit));
properties.append(JIntegerListProperty("priority", priority, priorityTag));
return properties;
}
示例9: getProperties
JArray JPushBtnObj::getProperties() {
JArray properties = JBtnObj::getProperties();
properties.append(JIntegerListProperty("autoRepeat", autoRepeat,
JIntegerListProperty::booleanTag));
return properties;
}
示例10: getProperties
JArray JBtnObj::getProperties() {
JArray properties = JNBitsObj::getProperties();
properties.append(JStringProperty("label", label));
properties.append(JIntegerListProperty("type", type, btnTypeTag));
return properties;
}
示例11: getProperties
JArray JSampleObj::getProperties() {
JArray properties = JAddObj::getProperties();
properties.append(JIntegerProperty("N", N, 1, 512));
return properties;
}
示例12: getProperties
JArray JSwitchObj::getProperties() {
JArray properties = JBtnObj::getProperties();
properties.append(JIntegerListProperty("depressOnly", depressOnly,
JIntegerListProperty::booleanTag));
return properties;
}