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 12class DialUpAddon; 13class BListView; 14class BMenu; 15class BString; 16class BMenu; 17class BWindow; 18class BMessage; 19 20 21extern BPoint center_on_screen(BRect rect, BWindow *window = NULL); 22extern int32 FindNextMenuInsertionIndex(BMenu *menu, const char *name, 23 int32 index = 0); 24extern int32 FindNextListInsertionIndex(BListView *list, const char *name); 25extern void AddAddonsToMenu(const BMessage *source, BMenu *menu, const char *type, 26 uint32 what); 27 28 29#endif 30