本文整理汇总了C++中HTMLInputElement::align方法的典型用法代码示例。如果您正苦于以下问题:C++ HTMLInputElement::align方法的具体用法?C++ HTMLInputElement::align怎么用?C++ HTMLInputElement::align使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类HTMLInputElement
的用法示例。
在下文中一共展示了HTMLInputElement::align方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: jsHTMLInputElementAlign
JSValue jsHTMLInputElementAlign(ExecState* exec, const Identifier&, const PropertySlot& slot)
{
JSHTMLInputElement* castedThis = static_cast<JSHTMLInputElement*>(asObject(slot.slotBase()));
UNUSED_PARAM(exec);
HTMLInputElement* imp = static_cast<HTMLInputElement*>(castedThis->impl());
return jsString(exec, imp->align());
}
示例2: getValueProperty
JSValue* JSHTMLInputElement::getValueProperty(ExecState* exec, int token) const
{
switch (token) {
case DefaultValueAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->defaultValue());
}
case DefaultCheckedAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsBoolean(imp->defaultChecked());
}
case FormAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return toJS(exec, WTF::getPtr(imp->form()));
}
case AcceptAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->accept());
}
case AccessKeyAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->accessKey());
}
case AlignAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->align());
}
case AltAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->alt());
}
case CheckedAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsBoolean(imp->checked());
}
case DisabledAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsBoolean(imp->disabled());
}
case MaxLengthAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsNumber(imp->maxLength());
}
case NameAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->name());
}
case ReadOnlyAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsBoolean(imp->readOnly());
}
case SizeAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsNumber(imp->size());
}
case SrcAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->src());
}
case TabIndexAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsNumber(imp->tabIndex());
}
case TypeAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->type());
}
case UseMapAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->useMap());
}
case ValueAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsString(imp->value());
}
case IndeterminateAttrNum: {
HTMLInputElement* imp = static_cast<HTMLInputElement*>(impl());
return jsBoolean(imp->indeterminate());
}
case ConstructorAttrNum:
return getConstructor(exec);
//.........这里部分代码省略.........