1 /* 2 * Copyright 2003-2004 Waldemar Kornewald. All rights reserved. 3 * Copyright 2017 Haiku, Inc. All rights reserved. 4 * Distributed under the terms of the MIT License. 5 */ 6 #ifndef _INTERFACE_UTILS__H 7 #define _INTERFACE_UTILS__H 8 9 #include <SupportDefs.h> 10 #include <Point.h> 11 12 class DialUpAddon; 13 class BListView; 14 class BMenu; 15 class BString; 16 class BMenu; 17 class BWindow; 18 class BMessage; 19 20 21 extern BPoint center_on_screen(BRect rect, BWindow *window = NULL); 22 extern int32 FindNextMenuInsertionIndex(BMenu *menu, const char *name, 23 int32 index = 0); 24 extern int32 FindNextListInsertionIndex(BListView *list, const char *name); 25 extern void AddAddonsToMenu(const BMessage *source, BMenu *menu, const char *type, 26 uint32 what); 27 28 29 #endif 30