6#include "QskTextInputSkinlet.h"
7#include "QskTextInput.h"
9QskTextInputSkinlet::QskTextInputSkinlet(
QskSkin* skin )
12 setNodeRoles( { PanelRole } );
15QskTextInputSkinlet::~QskTextInputSkinlet()
19QRectF QskTextInputSkinlet::subControlRect(
const QskSkinnable* skinnable,
22 if ( subControl == QskTextInput::Panel )
26 else if ( subControl == QskTextInput::Text )
31 return Inherited::subControlRect( skinnable, contentsRect, subControl );
34QSGNode* QskTextInputSkinlet::updateSubNode(
35 const QskSkinnable* skinnable, quint8 nodeRole, QSGNode* node )
const
41 const auto input =
static_cast< const QskTextInput*
>( skinnable );
42 if ( !input->hasPanel() )
45 return updateBoxNode( skinnable, node, QskTextInput::Panel );
49 return Inherited::updateSubNode( skinnable, nodeRole, node );
52#include "moc_QskTextInputSkinlet.cpp"
Subcontrol
For use within the rendering or lay-outing of a specific QskSkinnable.
QRectF subControlContentsRect(const QRectF &, QskAspect::Subcontrol) const
Calculate the inner rectangle for subControl.