haiku/docs/user/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
..
images app_server: Implement more composition modes 2020-06-29 14:07:42 +00:00
_interface_intro.dox View: provide the transform between different coordinate spaces 2022-11-13 04:04:30 +00:00
_layout_intro.dox Minor documentation fixes 2022-01-11 12:22:17 +00:00
AbstractLayout.dox HaikuBook: fix part of the warnings marked by Doxygen 2020-03-01 09:50:49 +00:00
AbstractLayoutItem.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
AffineTransform.dox HaikuBook: add missing object from AffineTransform.h 2021-04-19 07:11:34 +01:00
Alert.dox BAlert documentation: Clarify that SetIcon assumes ownership. 2022-08-26 21:25:23 -04:00
Alignment.dox API Docs: add skeletons for BUrl and BAlignment and complete BAlert 2019-09-19 21:57:12 +01:00
Bitmap.dox Fix typo in API docs (BBitmap) 2021-11-04 16:15:34 +00:00
Box.dox HaikuBook: fix part of the warnings marked by Doxygen 2020-03-01 09:50:49 +00:00
Button.dox HaikuBook: fix warnings generated by Doxygen 1.18.16. 2020-03-08 08:57:37 +00:00
CardLayout.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
CardView.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
ChannelControl.dox HaikuBook: Add skeletons for various undocumented interface kit classes 2019-09-20 21:03:54 +01:00
ChannelSlider.dox HaikuBook: Add skeletons for various undocumented interface kit classes 2019-09-20 21:03:54 +01:00
CheckBox.dox API docs: it's => its fix 2017-11-09 13:23:55 -08:00
ColorControl.dox BColorControl docs: pointer style 2016-03-12 19:10:39 -08:00
Control.dox HaikuBook: Add missing protected methods to BControl 2020-10-11 15:46:06 +00:00
Deskbar.dox HaikuBook: Add skeletons for various undocumented interface kit classes 2019-09-20 21:03:54 +01:00
Dragger.dox HaikuBook: fix part of the warnings marked by Doxygen 2020-03-01 09:50:49 +00:00
Font.dox Haiku Book: Update BFont docs. 2019-01-23 23:10:33 -05:00
Gradient.dox HaikuBook: Add internal skeletons for BGradient* classes 2021-04-19 06:56:16 +01:00
GradientConic.dox HaikuBook: Add internal skeletons for BGradient* classes 2021-04-19 06:56:16 +01:00
GradientDiamond.dox HaikuBook: Add internal skeletons for BGradient* classes 2021-04-19 06:56:16 +01:00
GradientLinear.dox HaikuBook: Add internal skeletons for BGradient* classes 2021-04-19 06:56:16 +01:00
GradientRadial.dox HaikuBook: Add internal skeletons for BGradient* classes 2021-04-19 06:56:16 +01:00
GradientRadialFocus.dox HaikuBook: Add internal skeletons for BGradient* classes 2021-04-19 06:56:16 +01:00
GraphicsDefs.dox HaikuBook: Improvements to the GraphicsDefs.h documentations 2020-10-11 15:46:06 +00:00
GridLayout.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
GridLayoutBuilder.dox HaikuBook: add documentation for various deprecated layout builders 2020-03-17 22:29:36 +00:00
GridView.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
GroupLayout.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
GroupLayoutBuilder.dox HaikuBook: add documentation for various deprecated layout builders 2020-03-17 22:29:36 +00:00
GroupView.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
IconUtils.dox Add BIconUtils::GetSystemIcon 2023-05-24 10:58:48 +00:00
Input.dox input_server: Properly implement watch_input_devices() & add documentation 2021-04-19 19:48:29 +00:00
InterfaceDefs.dox Typo in documentation 2020-09-23 11:12:13 +00:00
layout_tips.dox Minor documentation fixes 2022-01-11 12:22:17 +00:00
Layout.dox API docs: it's => its fix 2017-11-09 13:23:55 -08:00
LayoutBuilder.Cards.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
LayoutBuilder.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
LayoutBuilder.Grid.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
LayoutBuilder.Group.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
LayoutBuilder.Split.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
LayoutItem.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
ListItem.dox Update BListItem::SetHeight() docs with selection box warning. 2018-02-17 00:26:34 +00:00
ListView.dox API docs: it's => its fix 2017-11-09 13:23:55 -08:00
Menu.dox IK documentation update 2014-06-13 17:44:22 -04:00
MenuBar.dox API docs: it's => its fix 2017-11-09 13:23:55 -08:00
MenuField.dox API docs: it's => its fix 2017-11-09 13:23:55 -08:00
MenuItem.dox BMenuItem: Remove ourselves from the super menu on destruct. 2018-09-12 01:15:48 +00:00
OptionControl.dox HaikuBook: Add skeletons for various undocumented interface kit classes 2019-09-20 21:03:54 +01:00
OptionPopUp.dox Fix a few errors in the nascent BOptionPopUp docs 2014-12-15 21:14:47 -05:00
OutlineListView.dox IK documentation update 2014-06-13 17:44:22 -04:00
Picture.dox API docs: it's => its fix 2017-11-09 13:23:55 -08:00
PictureButton.dox IK documentation update 2014-06-13 17:44:22 -04:00
Point.dox IK documentation update 2014-06-13 17:44:22 -04:00
Polygon.dox IK documentation update 2014-06-13 17:44:22 -04:00
PopUpMenu.dox IK documentation update 2014-06-13 17:44:22 -04:00
RadioButton.dox Docs: remove ; causing it not to find copydetails 2017-11-10 15:00:05 -08:00
Rect.dox API Docs: minor brief description updates 2017-11-10 15:24:34 -08:00
Region.dox HaikuBook: fix warnings generated by Doxygen 1.18.16. 2020-03-08 08:57:37 +00:00
Screen.dox HaikuBook: fix warnings generated by Doxygen 1.18.16. 2020-03-08 08:57:37 +00:00
ScrollBar.dox IK documentation update 2014-06-13 17:44:22 -04:00
ScrollView.dox BScrollView: Automatically update the scrollbar proportions in layout mode. 2019-01-24 18:52:39 +00:00
SeparatorItem.dox SeparatorItem: support horizontal layout 2020-05-10 15:45:27 +00:00
SeparatorView.dox HaikuBook: Add skeletons for various undocumented interface kit classes 2019-09-20 21:03:54 +01:00
Shape.dox HaikuBook: fix warnings generated by Doxygen 1.18.16. 2020-03-08 08:57:37 +00:00
Size.dox BSize docs: fix description of B_SIZE_UNSET. 2015-01-07 15:34:49 +01:00
SpaceLayoutItem.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
SplitLayoutBuilder.dox HaikuBook: add documentation for various deprecated layout builders 2020-03-17 22:29:36 +00:00
SplitView.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
StatusBar.dox HaikuBook: Add skeletons for various undocumented interface kit classes 2019-09-20 21:03:54 +01:00
StringItem.dox IK documentation update 2014-06-13 17:44:22 -04:00
StringView.dox Update BView and BStringView docs 2014-12-05 20:35:40 -05:00
TabView.dox BTabView docs: fix typo 2020-10-11 23:50:11 -04:00
TextControl.dox Some more small documentation fixes 2014-12-19 19:58:14 -05:00
TextView.dox TextView docs: Add class overview 2021-06-06 12:44:28 +00:00
ToolTip.dox HaikuBook: Hide BLaunchRoster and BToolTip documentation from book 2020-10-11 15:46:06 +00:00
TwoDimensionalLayout.dox HaikuBook: add remaining layout class documentation 2020-04-18 18:24:51 +00:00
View.dox View: provide the transform between different coordinate spaces 2022-11-13 04:04:30 +00:00
Window.dox BWindow docs: Improve function descriptions 2023-03-24 14:01:56 +00:00