| Public Member Functions | |
| def | __init__ | 
| def | add_image_path | 
| def | build_icon | 
| def | find_image | 
| def | make_icon | 
| Private Attributes | |
| _image_paths | |
Helper class to easily access images and build QIcons out of lists of file names
| def rqt_robot_dashboard.util.IconHelper.__init__ | ( | self, | |
| paths = None | |||
| ) | 
| def rqt_robot_dashboard.util.IconHelper.add_image_path | ( | self, | |
| path | |||
| ) | 
Paths added will be searched for images by the _find_image function Paths will be searched in revearse order by add time The last path to be searched is always rqt_robot_dashboard/images Subdirectories are not recursively searched :param path: The path to add to the image paths list :type path: str
| def rqt_robot_dashboard.util.IconHelper.build_icon | ( | self, | |
| image_name_list, | |||
| mode = QIcon.Normal, | |||
| state = QIcon.On | |||
| ) | 
Convenience function to create an icon from a list of file names :param image_name_list: List of file image names to make into an icon :type image_name_list: list of str :param mode: The mode of the QIcon to be created. :type mode: int :param state: the state of the QIcon to be created. :type state: int
| def rqt_robot_dashboard.util.IconHelper.find_image | ( | self, | |
| path | |||
| ) | 
| def rqt_robot_dashboard.util.IconHelper.make_icon | ( | self, | |
| image_list, | |||
| mode = QIcon.Normal, | |||
| state = QIcon.On | |||
| ) | 
Helper function to create QIcons from lists of image files Warning: svg files interleaved with other files will not render correctly :param image_list: list of image paths to layer into an icon. :type image: list of str :param mode: The mode of the QIcon to be created. :type mode: int :param state: the state of the QIcon to be created. :type state: int