Lines Matching defs:tab

86 	Decorator::Tab* tab = _AllocateNewTab();
87 if (tab == NULL)
89 tab->title = title;
90 tab->look = look;
91 tab->flags = flags;
95 if (fTabList.AddItem(tab, index) == true)
97 } else if (fTabList.AddItem(tab) == true)
101 delete tab;
106 fTopTab = tab;
108 fTabList.RemoveItem(tab);
109 delete tab;
115 return tab;
122 Decorator::Tab* tab = fTabList.RemoveItemAt(index);
123 if (tab == NULL)
128 delete tab;
140 // move the tab back
152 Decorator::Tab* tab = fTabList.ItemAt(i);
153 if (tab->tabRect.Contains(where))
162 Decorator::SetTopTab(int32 tab)
164 fTopTab = fTabList.ItemAt(tab);
190 Decorator::SetFlags(int32 tab, uint32 flags, BRegion* updateRegion)
200 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
205 // the border might have changed (smaller/larger tab)
223 Decorator::SetLook(int32 tab, DesktopSettings& settings, window_look look,
226 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
239 Decorator::Look(int32 tab) const
241 return TabAt(tab)->look;
249 Decorator::Flags(int32 tab) const
251 return TabAt(tab)->flags;
272 /*! \brief Returns the decorator's tab rectangle
273 \return the decorator's tab rectangle
276 Decorator::TabRect(int32 tab) const
278 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
286 Decorator::TabRect(Decorator::Tab* tab) const
288 return tab->tabRect;
300 Decorator::SetClose(int32 tab, bool pressed)
302 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
308 DrawClose(tab);
320 Decorator::SetMinimize(int32 tab, bool pressed)
322 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
328 DrawMinimize(tab);
340 Decorator::SetZoom(int32 tab, bool pressed)
342 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
348 DrawZoom(tab);
357 Decorator::SetTitle(int32 tab, const char* string, BRegion* updateRegion)
359 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
377 Decorator::Title(int32 tab) const
379 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
387 Decorator::Title(Decorator::Tab* tab) const
389 return tab->title;
394 Decorator::SetTabLocation(int32 tab, float location, bool isShifting,
397 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
417 Decorator::SetFocus(int32 tab, bool active)
419 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
429 Decorator::IsFocus(int32 tab) const
431 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
439 Decorator::IsFocus(Decorator::Tab* tab) const
441 return tab->isFocused;
471 tab hits. Derived classes must override/enhance it to handle borders and
477 - \c REGION_TAB: The window tab (but none of the buttons embedded).
496 Decorator::Tab* tab = fTabList.ItemAt(i);
497 if (tab->closeRect.Contains(where)) {
501 if (tab->zoomRect.Contains(where)) {
505 if (tab->tabRect.Contains(where)) {
587 int32 tab)
624 The default version updates all areas which intersect the frame and tab.
653 //! draws the tab, title, and buttons
657 Decorator::Tab* tab = fTabList.ItemAt(tabIndex);
658 if (tab == NULL)
661 _DrawTab(tab, tab->tabRect);
662 _DrawZoom(tab, false, tab->zoomRect);
663 _DrawMinimize(tab, false, tab->minimizeRect);
664 _DrawTitle(tab, tab->tabRect);
665 _DrawClose(tab, false, tab->closeRect);
671 Decorator::DrawClose(int32 tab)
673 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
682 Decorator::DrawMinimize(int32 tab)
684 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
693 Decorator::DrawTitle(int32 tab)
695 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
704 Decorator::DrawZoom(int32 tab)
706 Decorator::Tab* decoratorTab = fTabList.ItemAt(tab);
757 Decorator::Tab* tab = fTabList.ItemAt(i);
758 if (tab->isFocused) {
759 focusTab = tab;
762 _DrawTab(tab, rect);
769 /*! \brief Actually draws the tab
771 This function is called when the tab itself needs drawn. Other items,
774 \param rect Area of the tab to update
777 Decorator::_DrawTab(Decorator::Tab* tab, BRect rect)
790 Decorator::_DrawClose(Decorator::Tab* tab, bool direct, BRect rect)
805 Decorator::_DrawTitle(Decorator::Tab* tab, BRect rect)
818 Decorator::_DrawZoom(Decorator::Tab* tab, bool direct, BRect rect)
831 Decorator::_DrawMinimize(Decorator::Tab* tab, bool direct, BRect rect)
837 Decorator::_SetTabLocation(Decorator::Tab* tab, float location, bool isShifting,
846 Decorator::_SetFocus(Decorator::Tab* tab)
858 Decorator::_SetLook(Decorator::Tab* tab, DesktopSettings& settings,
861 tab->look = look;
866 Decorator::_SetFlags(Decorator::Tab* tab, uint32 flags, BRegion* updateRegion)
868 tab->flags = flags;
876 Decorator::Tab* tab = fTabList.ItemAt(i);
878 tab->zoomRect.OffsetBy(offset);
879 tab->closeRect.OffsetBy(offset);
880 tab->minimizeRect.OffsetBy(offset);
881 tab->tabRect.OffsetBy(offset);