Get the ascending/descending icon.
185313
protected Icon getHeaderRendererIcon(boolean bCurrentOrder) {
        // Get current classloader
        ClassLoader cl = this.getClass().getClassLoader();
        // Create icons
        try   {
            if (ASCENDING_ICON == null)
            {
                ASCENDING_ICON  = new ImageIcon(cl.getResource("images/buttons/" + ASCENDING_ICON_NAME + ".gif"));
                DESCENDING_ICON  = new ImageIcon(cl.getResource("images/buttons/" + DESCENDING_ICON_NAME + ".gif"));
            }
            return bCurrentOrder ? ASCENDING_ICON : DESCENDING_ICON;
        } catch (Exception ex)  {
        }
        return null;
    }
1254743
def get_gicon(self, icon_id: str) -> "Gio.Icon":
        """"""
        return Gio.ThemedIcon.new_from_names(self._icon_names[icon_id])
611420
@Override
	public Icon getIcon(IBlockAccess world, BlockPos pos, IBlockState state, EnumFacing facing)
	{
		if (!initialized)
			initializeIcons();
		int connections = getConnections(world, pos, facing);
		return icons[connections];
	}
853172
def get_plugin_icon(self):
        """"""
        path = osp.join(self.PLUGIN_PATH, self.IMG_PATH)
        return ima.icon('pylint', icon_path=path)
388865
function (iconInfo) {
            var cfg = this._cfg;
            var vAlign = !cfg.verticalAlign ? "" : "vertical-align: " + cfg.verticalAlign;
            var margins = "margin: 0 0 0 0 "; // default value

            if (cfg.margins != null && cfg.margins.match(/^(\d+|x) (\d+|x) (\d+|x) (\d+|x)$/)) {
                var margArray = cfg.margins.split(" ");
                margins = ['margin:', margArray[0], 'px ', margArray[1], 'px ', margArray[2], 'px ', margArray[3],
                        'px; '].join('');
            } else if (iconInfo.margins != null) {
                margins = iconInfo.margins;
            }
            if (cfg.sourceImage) {
                return [margins, ';padding:0;background:url(', iconInfo.imageURL, ') no-repeat; width:',
                        iconInfo.width, 'px;height:', iconInfo.height, 'px;', vAlign].join('');
            } else {
                return [margins, ';padding:0;background-position:-', iconInfo.iconLeft, 'px -', iconInfo.iconTop,
                        'px;', vAlign].join('');
            }
        }
1076017
private Icon getPressedIcon(AbstractButton b, Icon defaultIcon) {
        return getIcon(b, b.getPressedIcon(), defaultIcon, SynthConstants.PRESSED);
    }
416431
function parseIcon(icon = "none") {
  if (!!icon && icon !== "none") {
    if (typeof icon === "string") {
      return { icon, position: "left", style: {} };
    }

    return { position: "left", style: {}, ...icon };
  }

  return null;
}
520339
public GuiIcon getIcon()
	{
		if (type == Type.WINDOW)
		{
			switch (tabPosition)
			{
				case TOP:
					return GuiIcon.TAB_WINDOW_TOP;
				case BOTTOM:
					return GuiIcon.TAB_WINDOW_BOTTOM;
				case LEFT:
					return GuiIcon.TAB_WINDOW_LEFT;
				case RIGHT:
					return GuiIcon.TAB_WINDOW_RIGHT;
			}
		}
		if (type == Type.PANEL)
		{
			switch (tabPosition)
			{
				case TOP:
					return GuiIcon.TAB_PANEL_TOP;
				case BOTTOM:
					return GuiIcon.TAB_PANEL_BOTTOM;
				case LEFT:
					return GuiIcon.TAB_PANEL_LEFT;
				case RIGHT:
					return GuiIcon.TAB_PANEL_RIGHT;
			}
		}
		return GuiIcon.FULL;
	}
1185585
public Object getIcon(int iIconType)
    {
        if (iIconType == CalendarConstants.END_ICON)
            return m_iconEnd;
        else if (iIconType == CalendarConstants.START_ICON)
            return m_iconStart;
        else
            return null;
    }
977224
def get_icon_name(self, icon_id: str) -> str:
        """"""
        icon_theme = Gtk.IconTheme.get_default()
        for name in self._icon_names[icon_id]:
            if icon_theme.has_icon(name):
                return name
        return 'not-available'
206815
protected function get_sort_icon($reverse) {
        global $OUTPUT;
        if ($reverse) {
            return $OUTPUT->pix_icon('t/sort_desc', get_string('desc'), '', array('class' => 'iconsort'));
        } else {
            return $OUTPUT->pix_icon('t/sort_asc', get_string('asc'), '', array('class' => 'iconsort'));
        }
    }
1372321
def status_icon(self):
        ''
        icon = self.status_icon_map.get(self.status.lower(),
                                        self.unknown_icon)
        style = self.status_style.get(self.status.lower(), '')
        return mark_safe(
            '<span class="glyphicon %s %s" aria-hidden="true"></span>' %
            (icon, style))
1067687
public Icon get(String url) {
        StackTraceElement[] stacks = new Exception().getStackTrace();
        try {
            Class callerClazz = Class.forName(stacks[1].getClassName());
            return get(callerClazz.getResource(url));
        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }
    }
1037131
public float getAscender() {
       float ascender = 0;
       for (int k = 0; k < line.size(); ++k) {
           PdfChunk ck = (PdfChunk)line.get(k);
           if (ck.isImage())
               ascender = Math.max(ascender, ck.getImage().getScaledHeight() + ck.getImageOffsetY());
           else {
               PdfFont font = ck.font();
               ascender = Math.max(ascender, font.getFont().getFontDescriptor(BaseFont.ASCENT, font.size()));
           }
       }
       return ascender;
   }
212199
def descending(self, name):
        ''' 
        '''
        self.components.append((name, Index.DESCENDING))
        return self
422465
public static function getIconName($icon){
        $icon   = is_scalar($icon) ? $icon : self::ICON_NULL;
        
        return self::ICON_NAMES[$icon] ?? self::ICON_NAMES[self::ICON_NULL];
    }
1303012
def icons(xmrs):
    """"""
    return [
        IndividualConstraint(left, reln, right)
        for left, reln, right in sorted(xmrs.icons(),
                                        key=lambda ic: var_id(ic[0]))
    ]