haiku/headers/os/interface
PulkoMandy 4dbd474753 Add BIconUtils::GetSystemIcon
Allow to easily access the alert icons and anything that's added to app_server
resources.

Fixes #10887.

Convert BAlert, Debugger AlertWithCheckbox and Keymap ModifierKeysWindow
to make use of it, removing the duplicate code to locate app_server
resources.

The resources are initialized only once (per application), so there is no need
to reload them for every access to the icons.

In the ticket there is discussion about putting this in BControlLook,
but I think this should in fact be moved fully into app_server with
special drawing commands for well-known icons. That would avoid loading
and rendering the icon on the application side to then send it to
app_server (especially in remote_app_server case)?

In any case, this simple API can serve as a base for applications to
use, and we can change how it is implemented later on.

Change-Id: Id370526ae5cf165cfb8bc277bc8a7f46c26f542d
Reviewed-on: https://review.haiku-os.org/c/haiku/+/6463
Tested-by: Commit checker robot <no-reply+buildbot@haiku-os.org>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
Reviewed-by: Adrien Destugues <pulkomandy@pulkomandy.tk>
2023-05-24 10:58:48 +00:00
..
AbstractLayout.h More whitespace cleanup all over the place. 2015-04-10 15:05:14 +02:00
AbstractLayoutItem.h
AffineTransform.h BAffineTransform: Remove "register" storage class. 2019-02-21 14:03:05 -05:00
Alert.h BAlert: use layout API, allow any number of buttons. 2015-07-30 19:50:03 +02:00
Alignment.h
Bitmap.h BBitmap: add ability to specify client-defined area 2023-01-02 18:07:53 +00:00
Box.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
Button.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
CardLayout.h
CardView.h Interface Kit: Add BCardView 2015-12-26 20:13:22 -05:00
ChannelControl.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
ChannelSlider.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
CheckBox.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
ColorControl.h BColorControl: Remove fOffscreenView pointer 2016-03-12 19:14:26 -08:00
Control.h Style fixes to IK, focus on docs 2014-06-13 17:27:01 -04:00
ControlLook.h ControlLook: fix clipping 2023-04-26 10:41:04 +00:00
Deskbar.h Deskbar: Resizable tray 2018-11-04 19:00:49 +00:00
Dragger.h Fix clang warning "mismatched-tags" 2020-03-23 01:30:23 +00:00
Font.h BFont: Minor code cleanup and autolocking for AppFontManager 2023-02-06 09:21:12 +00:00
Gradient.h BGradient: fix assignment operator, add copy constructor 2020-08-11 20:46:34 +00:00
GradientConic.h
GradientDiamond.h
GradientLinear.h
GradientRadial.h
GradientRadialFocus.h
GraphicsDefs.h interface: add colorspaces support for RGB48 and RGBA64 2021-09-27 07:21:27 +00:00
GridLayout.h
GridLayoutBuilder.h
GridView.h
GroupLayout.h More whitespace cleanup all over the place. 2015-04-10 15:05:14 +02:00
GroupLayoutBuilder.h
GroupView.h
IconUtils.h Add BIconUtils::GetSystemIcon 2023-05-24 10:58:48 +00:00
Input.h
InterfaceDefs.h InterfaceDefs: Adjust and introduce new spacing/insets constants. 2022-11-02 02:23:32 +00:00
Layout.h
LayoutBuilder.h LayoutBuilder.h: Fix use after free 2020-11-19 07:17:29 +00:00
LayoutContext.h
LayoutItem.h BLayoutItem: Add RemoveSelf() convenience method. 2015-04-15 00:34:05 +02:00
LayoutUtils.h Fix button label position, try number 2 2014-04-08 14:10:10 -04:00
ListItem.h
ListView.h BListView: do not spawn a thread on every mouse click. 2020-04-04 11:50:07 +02:00
Menu.h BMenu: Add SortItems(), SwapItems() and MoveItem() 2021-10-22 08:12:05 +00:00
MenuBar.h BMenuBar & Deskbar: Make the hack to call ShowMenuBar a lot less ugly. 2019-06-17 11:49:48 +00:00
MenuField.h BMenuField: allow to use non-fixed size in combination with layout mode 2023-02-21 10:47:46 +00:00
MenuItem.h Visually align shortcuts in menus 2020-02-04 23:06:54 +00:00
OptionControl.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
OptionPopUp.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
OutlineListView.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
Picture.h BPicture: Style fixes related to documentation. 2014-05-19 20:13:38 -04:00
PictureButton.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
Point.h Various whitespace cleanup only. 2015-09-05 16:09:33 +02:00
Polygon.h BPolygon: Style fixes for documentation. 2014-05-21 16:12:47 -04:00
PopUpMenu.h
PrintJob.h PrintJob: make struct print_file_header packed. 2017-07-31 17:11:53 +02:00
RadioButton.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
Rect.h BRect: Style fixes for documentation 2014-05-30 19:31:10 -04:00
Region.h BRegion: add ScaleBy(BSize) and user documentation. 2014-06-19 19:23:31 +02:00
Screen.h Style fix: parameters should have a name. 2017-11-21 12:19:56 +01:00
ScrollBar.h BScrollBar: Remove DISABLE_ON_WINDOW_DEACTIVATION constant. 2020-07-05 18:37:48 -04:00
ScrollView.h BScrollView: Ask the BScrollBars what their preferred sizes are. 2020-07-05 18:37:48 -04:00
SeparatorItem.h BSeparatorItem: Style fix, rename archive to data 2014-03-04 14:28:20 -05:00
SeparatorView.h
Shape.h BShape: Rename these params back in header. 2014-07-14 19:15:13 -04:00
Shelf.h Fix clang warning "mismatched-tags" 2020-03-23 01:30:23 +00:00
Size.h
Slider.h Slider: Style fixes 2016-03-22 12:00:36 -07:00
SpaceLayoutItem.h
SplitLayoutBuilder.h
SplitView.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
StatusBar.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
StringItem.h
StringView.h BStringView: add support for multiline strings 2018-11-03 16:44:10 +00:00
TabView.h BeControlLook: Fix app integration drawing issues 2020-10-11 15:50:18 +00:00
TextControl.h Set*UIColor, etc. 2016-01-04 06:48:22 -05:00
TextView.h BTextView: Fix Tracker edit name 2021-06-20 14:46:53 +00:00
TwoDimensionalLayout.h
UnicodeBlockObjects.h Implementation of BFont::Blocks 2017-05-08 22:17:53 +02:00
View.h View: provide the transform between different coordinate spaces 2022-11-13 04:04:30 +00:00
Window.h IK: Propagate B_WORKSPACE_ACTIVATED to child views 2022-08-08 15:32:47 +00:00