// we have to implement it because during dragging the BControl is a white rectangle // show the string "BControl" over a blue background void IEBControl::GetDragRepresentation(BView **a_view, BBitmap **a_bitmap) { *a_bitmap=NULL; DragView *drag=new DragView((char*)GetBaseClasses()->FindString("class")); drag->ResizeTo(Frame().Width(), Frame().Height()); *a_view=drag; }
unsigned int ObjectInfo::GetBaseClassCount(bool inherited) { if( inherited ) { std::vector<PObjectInfo> classes; GetBaseClasses( classes ); return (unsigned int)classes.size(); } else return (unsigned int)m_base.size(); }
PObjectInfo ObjectInfo::GetBaseClass(unsigned int idx, bool inherited) { if( inherited ) { std::vector<PObjectInfo> classes; GetBaseClasses( classes ); assert (idx < classes.size()); return classes[idx]; } else { assert (idx < m_base.size()); return m_base[idx]; } }