nuiMetaDecoration::nuiMetaDecoration(const nglString& rName) : nuiDecoration(rName) { if (SetObjectClass(_T("nuiMetaDecoration"))) InitAttributes(); }
NullView::NullView(nuiJson::Value& rValue) : ValueView(rValue) { SetObjectClass(_T("NullView")); nuiLabel* pLabel = new nuiLabel(_T("null value")); AddChild(pLabel); }
nuiNavigationButton::nuiNavigationButton(const nglString& rText) : nuiButton() { SetObjectClass(_T("nuiNavigationButton")); nuiLabel* pLabel = new nuiLabel(rText); AddChild(pLabel); }
nuiSerializeContext::nuiSerializeContext(nuiXMLNode* pNode, nuiSerializeOperation Operation, bool recursive) : nuiObject() { SetObjectClass(_T("nuiSerializeContext")); mpNode = pNode; mRecursive = recursive; mOperation = Operation; }
//********************************************************************* // // Constr // // nuiFormatedLabel::nuiFormatedLabel(const nuiFormater& rFormater, double value, nuiTheme::FontStyle FontStyle) : nuiLabel (nglString::Null, FontStyle), mFormater(rFormater) { NGL_ASSERT(&mFormater); SetObjectClass(_T("nuiFormatedLabel")); SetValue (value); }
void nuiSpriteDef::Init() { CheckValid(); if (SetObjectClass(_T("nuiSpriteDef"))) { App->AddExit(&nuiSpriteDef::Uninit); } }
nuiKnob::nuiKnob(const nuiRange& rRange) : nuiSimpleContainer(), mKnobSink(this) { if (SetObjectClass(_T("nuiKnob"))) InitAttributes(); Init(rRange); }
nuiHyperLink::nuiHyperLink(const nglString& rURL, const nglString& rLabel) : nuiLabel(rLabel.IsNull() ? rURL : rLabel), mURL(rURL) { if (SetObjectClass(_T("nuiHyperLink"))) InitAttributes(); SetTextColor(nuiColor(_T("nuiHyperLink"))); }
nuiToggleButton::nuiToggleButton() : nuiButton() { SetObjectClass(_T("nuiToggleButton")); mDisplayAsCheckBox = false; mDisplayAsFrameBox = false; mCheckSize = mDefaultCheckSize; mHasContents = false; }
nuiToggleButton::nuiToggleButton(nuiStateDecoration* pDecoration) : nuiButton(pDecoration) { SetObjectClass(_T("nuiToggleButton")); mDisplayAsCheckBox = false; mDisplayAsFrameBox = false; mCheckSize = mDefaultCheckSize; mHasContents = false; }
nuiToggleButton::nuiToggleButton(const nglImage& rImage) : nuiButton(rImage) { SetObjectClass(_T("nuiToggleButton")); mDisplayAsCheckBox = false; mDisplayAsFrameBox = false; mCheckSize = mDefaultCheckSize; mHasContents = true; }
nuiImageDropZone::nuiImageDropZone(const nglPath& rPath, nuiTexture* pTex) { SetObjectClass(_T("nuiImageDropZone")); mPath = rPath; mpImage = new nuiImage(pTex); AddChild(mpImage); mDrawDndFrame=false; }
nuiImageDropZone::nuiImageDropZone(const nglPath& rImagePath) { SetObjectClass(_T("nuiImageDropZone")); mPath = rImagePath; mpImage = new nuiImage(rImagePath); AddChild(mpImage); mDrawDndFrame=false; }
nuiHyperLink::nuiHyperLink() : nuiLabel(_T("")), mURL(_T("")) { if (SetObjectClass(_T("nuiHyperLink"))) InitAttributes(); SetTextColor(nuiColor(_T("nuiHyperLink"))); }
//********************************************************************************* // // TITLLthread // //********************************************************************************* TITLLthread::TITLLthread(const nglString& rName) : TITthread(rName) { mLockedA = false; mLockedB = false; mLockedC = false; if (SetObjectClass(_T("TITLLThread"))) InitAttributes(); }
nuiPositioner::nuiPositioner(nuiPosition Position, bool expandWidth, bool expandHeight) : nuiSimpleContainer() { SetObjectClass(_T("nuiPositioner")); mPPosition = Position; mLimitBounds = true; mCanRespectConstraint = true; mExpandWidth = expandWidth; mExpandHeight = expandHeight; }
///////////////////////////////////////////// // class nuiSpriteView : public nuiSimpleContainer nuiSpriteView::nuiSpriteView() { mLastTime = 0; if (SetObjectClass(_T("nuiSpriteView"))) { // Init attributes } StartAutoDraw(); }
//********************************************************************* // // Constr // // nuiFormatedLabel::nuiFormatedLabel(const nuiFormater& rFormater, double value, nuiFont* pFont, bool AlreadyAcquired) : nuiLabel (nglString::Null, pFont, AlreadyAcquired), mFormater(rFormater) { //#FIXME waiting for me to know if there is a default font pointer... NGL_ASSERT(&mFormater); SetObjectClass(_T("nuiFormatedLabel")); SetValue (value); }
nuiViewController::nuiViewController() : nuiSimpleContainer() { SetObjectClass(_T("nuiViewController")); mAnimated = false; mOverlayed = false; mLoaded = false; mpBar = new nuiNavigationBar(); }
nuiViewController::nuiViewController(bool DefaultNavigationBar) : nuiSimpleContainer() { SetObjectClass(_T("nuiViewController")); mAnimated = false; mOverlayed = false; mLoaded = false; mpBar = DefaultNavigationBar ? new nuiNavigationBar() : nullptr; }
nuiAnimation::nuiAnimation() : mAnimSink(this) { mCount = 0; mCurrentPosition = 0; mDuration = 0.5; mCurrentTime = 0; mDirection = 1.0; mLoopMode = eAnimLoopForward; mUpdatingTime = false; mEnableCallbacks = true; mDeleteOnStop = false; mpEasing = NULL; //(nuiEasingMethod)(&::nuiEasingIdentity); AcquireTimer(); if (SetObjectClass(_T("nuiAnimation"))) { AddAttribute(new nuiAttribute<double> (nglString(_T("CurrentTime")), nuiUnitSeconds, nuiMakeDelegate(this, &nuiAnimation::GetTimeFromStart), nuiMakeDelegate(this, &nuiAnimation::SetTimeFromStart))); AddAttribute(new nuiAttribute<double> (nglString(_T("SetTimeFromNow")), nuiUnitSeconds, nuiMakeDelegate(this, &nuiAnimation::GetTimeFromNow), nuiMakeDelegate(this, &nuiAnimation::SetTimeFromNow))); AddAttribute(new nuiAttribute<double> (nglString(_T("CurrentTimeFromEnd")), nuiUnitSeconds, nuiMakeDelegate(this, &nuiAnimation::GetTimeFromEnd), nuiMakeDelegate(this, &nuiAnimation::SetTimeFromEnd))); AddAttribute(new nuiAttribute<double> (nglString(_T("Position")), nuiUnitSize, nuiMakeDelegate(this, &nuiAnimation::GetPosition))); AddAttribute(new nuiAttribute<bool> (nglString(_T("IsPlaying")), nuiUnitBoolean, nuiMakeDelegate(this, &nuiAnimation::IsPlaying))); AddAttribute(new nuiAttribute<double> (nglString(_T("Duration")), nuiUnitSeconds, nuiMakeDelegate(this, &nuiAnimation::GetDuration), nuiMakeDelegate(this, &nuiAnimation::SetDuration))); AddAttribute(new nuiAttribute<bool> (nglString(_T("DeleteOnStop")), nuiUnitBoolean, nuiMakeDelegate(this, &nuiAnimation::GetDeleteOnStop), nuiMakeDelegate(this, &nuiAnimation::SetDeleteOnStop))); } }
bool nuiToggleButton::Load(const nuiXMLNode* pNode) { nuiButton::Load(pNode); SetObjectClass(_T("nuiToggleButton")); mDisplayAsCheckBox = false; mDisplayAsFrameBox = false; mCheckSize = mDefaultCheckSize; mHasContents = true; return true; }
nuiFileList::nuiFileList(const nglPath& rPath) : nuiList(nuiVertical), mFileListSink(this) { SetObjectClass(_T("nuiFileList")); nuiLabel* pLabel = new nuiLabel(_T("..")); pLabel->SetProperty(_T("Path"), rPath.GetParent().GetAbsolutePath().GetPathName()); Populate(rPath); mFileListSink.Connect(Activated, &nuiFileList::Selected, this); }
bool nuiPositioner::Load(const nuiXMLNode* pNode) { nuiSimpleContainer::Load(pNode); SetObjectClass(_T("nuiPositioner")); // Nothing to do for fixed widget... mPPosition = nuiGetPosition(pNode, _T("Position"), nuiCenter); mLimitBounds = nuiGetBool(pNode, _T("LimitBounds"), true); mCanRespectConstraint = true; return true; }
nuiImageDecoration::nuiImageDecoration(const nglString& rName) : nuiDecoration(rName), mpTexture(NULL), mPosition(nuiCenter), mColor(255,255,255,255), mRepeatX(false), mRepeatY(false) { if (SetObjectClass(_T("nuiImageDecoration"))) InitAttributes(); }
nuiZoomBar::nuiZoomBar(nuiOrientation Orientation, const nuiRange& rRange, float SideSize, float MiddleSize, nuiSize PageSizeMin, nuiWidgetPtr pThumb) : nuiScrollBar(Orientation, rRange, pThumb), mPageSizeMin(PageSizeMin), mUnzoomAfterBound(false) { SetObjectClass(_T("nuiZoomBar")); SetThumbSideSize(SideSize); SetThumbMiddleSize(MiddleSize); }
nuiFrame::nuiFrame(const nglString& rName) : nuiDecoration(rName), mpTexture(NULL) { if (SetObjectClass(_T("nuiFrame"))) InitAttributes(); mColor = nuiColor(255,255,255); mUseWidgetFrameColor = false; mDebug = false; mInterpolated = true; }
guiOscillo::guiOscillo(const std::vector<std::vector<float> >& rData) : nuiWidget(), mrData(rData) { // Setting the object class is not mandatory here. // We use it in the css stylesheet to apply a decoration to the guiOscillo object. // We could set the object name instead (SetObjectName), it's nearly the same for that purpose // (except that, in that case, in the css stylesheet, the "guiOscillo" reference should be put between quotes. // Have a look to Gui.css, you've got some examples.) SetObjectClass(_T("guiOscillo")); StartAutoDraw(); }
nuiImageDecoration::nuiImageDecoration(const nglString& rName, nuiTexture* pTexture, const nuiRect& rClientRect, nuiPosition position, const nuiColor& rColor) : nuiDecoration(rName), mpTexture(pTexture), mPosition(position), mClientRect(rClientRect), mColor(rColor), mRepeatX(false), mRepeatY(false) { if (SetObjectClass(_T("nuiImageDecoration"))) InitAttributes(); }
nuiFlowView::nuiFlowView(float IdealWidth, float HSpace, float VSpace) { if (SetObjectClass("nuiFlowView")) { } mIdealWidth = IdealWidth; mCurrentIdealWidth = 0; mVSpace = VSpace; mHSpace = HSpace; }