TabbedPane::TabbedPane( Widget * tabContainer /*= NULL*/, Widget *widgetContainer /*= NULL*/ ) : highestTab(0), tabPadding(0), resizeTabContent(false), selectedTab(reinterpret_cast<Tab*>(NULL),reinterpret_cast<Widget*>(NULL)) { if(tabContainer) { isMaintainingTabContainer = false; this->tabContainer = tabContainer; } else { isMaintainingTabContainer = true; this->tabContainer = new EmptyWidget(); } if(widgetContainer) { isMaintainingWidgetContainer = false; this->widgetContainer = widgetContainer; } else { isMaintainingWidgetContainer = true; this->widgetContainer = new EmptyWidget(); } addPrivateChild(this->tabContainer); addPrivateChild(this->widgetContainer); setTabable(true); setFocusable(true); setReverseTabable(false); adjustTabs(); }
Button::Button() : isDoingKeyAction(false),mouseIsDown(false),mouseIsInside(false), isButtonToggleButton(false),toggled(false), buttonState(DEFAULT), mouseLeaveState(HOVERED), autoUntoggle(true) { setFocusable(true); setTabable(true); setTextAlignment(ALIGN_MIDDLE_CENTER); setBackColor(Color(115,183,226)); setMargins(1,1,2,2); }
TextField::TextField(void) : caretLocation(0),caretPosition(0), showCaret(false), textOffset(0),leftPadding(5),rightPadding(5), maxCharacterSkip(8), selfSetText(false), maxLength(100),selStart(0),selEnd(0), internalSelStart(0), selWidth(0),selLength(0),dragged(false), selectable(true),readOnly(false),numeric(false),wantDecimal(false), wantNegetive(false), hideSelection(true), alignOffset(0),tOffset(0), textAlign(ALIGN_LEFT),selectionBackColor(Color(169,193,214)), password(false), hotkeys(true), frameColor(Color(180,180,180)) { setFocusable(true); setTabable(true); setPasswordCharacter('*'); positionCaret(0); }
RadioButton::RadioButton() : sidePadding(6), radioButtonState(DEFAULT), mouseIsInside(false), mouseIsDown(false), isDoingKeyAction(false) { setMargins(1,1,1,1); setBackColor(Color(240,240,240)); setFocusable(true); setTabable(true); setRadioButtonAlignment(ALIGN_TOP_LEFT); setTextAlignment(ALIGN_MIDDLE_LEFT); positionRadioButton(); resizeCaption(); setChecked(false); setAutosizing(false); setRadioButtonRadius(6); }