/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/lib_ui/ui/widgets/ |
H A D | buttons.cpp | 25 , _st(st) in LinkButton() 30 _st.padding.top() + _st.font->height + _st.padding.bottom()); in LinkButton() 343 …resize(innerWidth - _st.width + _st.padding.left() + _st.padding.right(), _st.height + _st.padding… in resizeToText() 345 if (_st.width < innerWidth + (_st.height - _st.font->height)) { in resizeToText() 346 _text = _st.font->elided(_text, qMax(_st.width - (_st.height - _st.font->height), 1)); in resizeToText() 349 …resize(_st.width + _st.padding.left() + _st.padding.right(), _st.height + _st.padding.top() + _st.… in resizeToText() 466 resize(_st.width, _st.height); in IconButton() 552 resize(_st.width, _st.height); 609 over ? _st.crossFgOver : _st.crossFg, in paintEvent() 623 over ? _st.crossFgOver : _st.crossFg, in paintEvent() [all …]
|
H A D | checkbox.cpp | 87 , _st(&st) { in ToggleView() 91 return QSize(2 * _st->border + _st->diameter + _st->width, 2 * _st->border + _st->diameter); in getSize() 95 _st = &st; in setStyle() 104 auto fullWidth = _st->diameter + _st->width; in paint() 105 auto innerDiameter = _st->diameter - 2 * _st->shift; in paint() 196 const auto vLeft = left + (_st->diameter - (_st->xsize + _st->vsize - 2. * stroke)) / 2.; in paintXV() 242 return QSize(_st->diameter, _st->diameter); in getSize() 246 _st = &st; in setStyle() 257 _st->bg, in paint() 300 return QSize(_st->diameter, _st->diameter); in getSize() [all …]
|
H A D | side_bar_button.cpp | 25 , _st(st) in SideBarButton() 53 : std::max(_st.badgeHeight, _badge.maxWidth() + 2 * _st.badgeSkip); in setBadge() 82 p.fillRect(clip, _active ? _st.textBgActive : _st.textBg); in paintEvent() 99 p.setPen(_active ? _st.textFgActive : _st.textFg); in paintEvent() 102 _st.textSkip, in paintEvent() 103 _st.textTop, in paintEvent() 119 : _st.badgeBg); in paintEvent() 127 y + (_st.badgeHeight - _st.badgeStyle.font->height) / 2, in paintEvent() 137 ? _st.iconActive in computeIcon() 140 : _st.icon) in computeIcon() [all …]
|
H A D | tooltip.cpp | 87 _st = st; in popup() 102 int32 maxh = addh + (_st->linesMax * _st->textStyle.font->height); in popup() 192 , _st(st) in ImportantTooltip() 224 if (size.width() < 2 * (_st.arrowSkipMin + _st.arrow)) { in resizeToContent() 225 size.setWidth(2 * (_st.arrowSkipMin + _st.arrow)); in resizeToContent() 234 auto requiredSpace = countInner().height() + _st.shift + _st.arrow; in countApproachSide() 247 QSize(_st.arrow * 2, _st.arrow) * style::DevicePixelRatio(), in countApproachSide() 258 path.lineTo(_st.arrow, _st.arrow); in countApproachSide() 346 accumulate_min(left, areaMiddle - _st.arrow - _st.arrowSkipMin); in countPosition() 359 (_side & RectPart::Top) ? -_st.shift : _st.shift, in updateGeometry() [all …]
|
H A D | inner_dropdown.cpp | 21 , _st(st) in InnerDropdown() 58 _st)); in doSetOwnedWidget() 72 …auto newWidth = _st.padding.left() + _st.scrollMargin.left() + _st.scrollMargin.right() + _st.padd… in resizeToContent() 73 …auto newHeight = _st.padding.top() + _st.scrollMargin.top() + _st.scrollMargin.bottom() + _st.padd… in resizeToContent() 277 _st.duration); in startOpacityAnimation() 364 …auto newHeight = _st.padding.top() + _st.scrollMargin.top() + _st.scrollMargin.bottom() + _st.padd… in resizeGetHeight() 366 …auto containerWidth = newWidth - _st.padding.left() - _st.padding.right() - _st.scrollMargin.left(… in resizeGetHeight() 378 , _st(st) { in Container() 380 _child->moveToLeft(_st.scrollPadding.left(), _st.scrollPadding.top()); in Container() 390 auto newWidth = _st.scrollPadding.left() + _st.scrollPadding.right(); in resizeToContent() [all …]
|
H A D | scroll_area.cpp | 38 , _st(st) in ScrollBar() 59 …_st->width), _st->deltat, _st->width, area()->height() - _st->deltat - _st->deltab) : QRect(_st->d… in recountSize() 89 if (h <= _st->minHeight) h = _st->minHeight; in updateBar() 93 newBar = QRect(_st->deltax, y, width() - 2 * _st->deltax, h); in updateBar() 101 if (w <= _st->minHeight) w = _st->minHeight; in updateBar() 105 newBar = QRect(x, _st->deltax, w, height() - 2 * _st->deltax); in updateBar() 201 if (_st->round) { in paintEvent() 206 p.drawRoundedRect(_bar, _st->round, _st->round); in paintEvent() 262 val = (val <= _st->deltat) ? 0 : (val - _st->deltat); in mousePressEvent() 263 div = (div <= _st->deltat + _st->deltab) ? 1 : (div - _st->deltat - _st->deltab); in mousePressEvent() [all …]
|
/dports/deskutils/syncthingtray/c++utilities/tests/ |
H A D | misctests.cpp | 69 CPPUNIT_ASSERT_EQUAL(3_st, array1d.dimensionSize<0>()); in testMultiArray() 70 CPPUNIT_ASSERT_EQUAL(3_st, array1d.totalSize()); in testMultiArray() 77 CPPUNIT_ASSERT_EQUAL(3_st, array2d.dimensionSize<0>()); in testMultiArray() 78 CPPUNIT_ASSERT_EQUAL(2_st, array2d.dimensionSize<1>()); in testMultiArray() 79 CPPUNIT_ASSERT_EQUAL(6_st, array2d.totalSize()); in testMultiArray() 90 CPPUNIT_ASSERT_EQUAL(3_st, array3d.dimensionSize<0>()); in testMultiArray() 91 CPPUNIT_ASSERT_EQUAL(2_st, array3d.dimensionSize<1>()); in testMultiArray() 92 CPPUNIT_ASSERT_EQUAL(3_st, array3d.dimensionSize<2>()); in testMultiArray() 93 CPPUNIT_ASSERT_EQUAL(18_st, array3d.totalSize()); in testMultiArray() 117 CPPUNIT_ASSERT_EQUAL(9_st, stackMultiArray.totalSize()); in testMultiArray() [all …]
|
/dports/games/libretro-fbneo/FBNeo-bbe3c05/src/cpu/tms34010/ |
H A D | tms34010_shift.h | 16 _st &= ~(ST_C | ST_Z); in rl_k_rd() 24 _st |= ST_C; in rl_k_rd() 29 _st |= ST_Z; in rl_k_rd() 45 _st |= ST_C; in rl_rs_rd() 50 _st |= ST_Z; in rl_rs_rd() 67 _st |= ST_Z; in sll_rs_rd() 83 _st |= ST_Z; in sll_k_rd() 143 _st |= ST_Z; in srl_k_rd() 159 _st |= ST_Z; in srl_rs_rd() 177 _st |= ST_Z; in sra_k_rd() [all …]
|
H A D | tms34010_arithm.h | 38 _st |= ST_Z; in abs_rd() 43 _st |= ST_N; in abs_rd() 46 _st |= ST_V; in abs_rd() 112 _st |= ST_N; in addxy_rs_rd() 114 _st |= ST_Z; in addxy_rs_rd() 116 _st |= ST_C; in addxy_rs_rd() 118 _st |= ST_V; in addxy_rs_rd() 153 _st |= ST_Z; in btst_k_rd() 171 _st &= ~ST_C; in clrc() 372 _st &= ~ST_Z; in mpyu_rs_rd() [all …]
|
H A D | tms34010_ctrl.h | 17 _st &= ~ST_IE; in dint() 24 _st |= ST_IE; in eint() 65 _st |= k; in exgf_rd_0() 87 _st &= ~ST_N; in mmtm() 125 _st = _pop(); in reti() 134 _push(_st); in trap() 135 _st &= ~ST_IE; in trap() 159 _st = _rd; in putst() 166 _push(_st); in pushst() 173 _st = _pop(); in popst() [all …]
|
/dports/games/libretro-fbalpha/fbalpha-84eb9d9/src/cpu/tms34010/ |
H A D | tms34010_shift.h | 16 _st &= ~(ST_C | ST_Z); in rl_k_rd() 24 _st |= ST_C; in rl_k_rd() 29 _st |= ST_Z; in rl_k_rd() 45 _st |= ST_C; in rl_rs_rd() 50 _st |= ST_Z; in rl_rs_rd() 67 _st |= ST_Z; in sll_rs_rd() 83 _st |= ST_Z; in sll_k_rd() 143 _st |= ST_Z; in srl_k_rd() 159 _st |= ST_Z; in srl_rs_rd() 177 _st |= ST_Z; in sra_k_rd() [all …]
|
H A D | tms34010_arithm.h | 38 _st |= ST_Z; in abs_rd() 43 _st |= ST_N; in abs_rd() 46 _st |= ST_V; in abs_rd() 112 _st |= ST_N; in addxy_rs_rd() 114 _st |= ST_Z; in addxy_rs_rd() 116 _st |= ST_C; in addxy_rs_rd() 118 _st |= ST_V; in addxy_rs_rd() 153 _st |= ST_Z; in btst_k_rd() 171 _st &= ~ST_C; in clrc() 372 _st &= ~ST_Z; in mpyu_rs_rd() [all …]
|
H A D | tms34010_ctrl.h | 17 _st &= ~ST_IE; in dint() 24 _st |= ST_IE; in eint() 65 _st |= k; in exgf_rd_0() 87 _st &= ~ST_N; in mmtm() 125 _st = _pop(); in reti() 134 _push(_st); in trap() 135 _st &= ~ST_IE; in trap() 159 _st = _rd; in putst() 166 _push(_st); in pushst() 173 _st = _pop(); in popst() [all …]
|
/dports/devel/rudiments/rudiments-1.2.2/src/ |
H A D | filesystem.cpp | 73 struct statvfs _st; member in filesystemprivate 77 struct fs_data _st; 79 struct statfs _st; 98 bytestring::zero(&pvt->_st,sizeof(pvt->_st)); in filesystem() 120 pvt->_st=f.pvt->_st; in filesystemClone() 310 bytestring::zero(&pvt->_st,sizeof(pvt->_st)); in close() 333 bytestring::zero(&pvt->_st,sizeof(pvt->_st)); in getCurrentProperties() 380 pvt->_st.f_type=0x0; in getCurrentProperties() 405 result=pvt->_st.f_type; in getType() 567 return pvt->_st.f_bsize; in getBlockSize() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/lib_ui/ui/widgets/menu/ |
H A D | menu_action.cpp | 59 , _st(st) in Action() 92 p.fillRect(0, 0, width(), _height, selected ? _st.itemBgOver : _st.itemBg); in paint() 99 p.setPen(selected ? _st.itemFgOver : (enabled ? _st.itemFg : _st.itemFgDisabled)); in paint() 102 const auto left = width() - _st.itemPadding.right() - _st.arrow.width(); in paint() 107 _st.arrow.paint( in paint() 112 _st.itemFgDisabled->c); in paint() 116 ? _st.itemFgShortcutOver in paint() 117 : (enabled ? _st.itemFgShortcut : _st.itemFgShortcutDisabled)); in paint() 120 _st.itemPadding.top(), in paint() 141 _st.itemStyle, in processAction() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/ui/ |
H A D | special_buttons.cpp | 74 , _st(st) { in HistoryDownButton() 75 resize(_st.width, _st.height); in HistoryDownButton() 94 ((over || down) ? _st.iconBelowOver : _st.iconBelow).paint(p, _st.iconPosition, width()); in paintEvent() 96 ((over || down) ? _st.iconAboveOver : _st.iconAbove).paint(p, _st.iconPosition, width()); in paintEvent() 123 , _st(st) in UserpicButton() 142 , _st(st) in UserpicButton() 160 , _st(st) in UserpicButton() 177 , _st(st) in UserpicButton() 335 ? (_st.photoSize - _st.changeIcon.width()) / 2 in paintEvent() 610 QSize(_st.photoSize, _st.photoSize) in grabOldUserpic() [all …]
|
H A D | countryinput.cpp | 22 , _st(st) in CountryInput() 24 resize(_st.width, _st.heightMin); in CountryInput() 46 if (_st.border) { in paintEvent() 51 _st.border, in paintEvent() 52 _st.borderFg); in paintEvent() 63 p.setFont(_st.font); in paintEvent() 64 p.setPen(_st.textFg); in paintEvent() 65 p.drawText(rect().marginsRemoved(_st.textMargins), _text, _st.textAlign); in paintEvent() 76 auto r = QRect(rect() - (_st.textMargins + _st.placeholderMargins)); in paintEvent() 85 _st.placeholderFg, in paintEvent() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/ui/widgets/ |
H A D | multi_select.cpp | 27 : _st(st) in Item() 36 _width = _st.height + _st.padding.left() + _text.maxWidth() + _st.padding.right(); in setText() 82 p.setBrush(_active ? _st.textActiveBg : _st.textBg); in paintOnce() 102 auto textLeft = _st.height + _st.padding.left(); in paintOnce() 104 p.setPen(_active ? _st.textActiveFg : _st.textFg); in paintOnce() 239 , _st(st) in MultiSelect() 270 auto defaultWidth = _st.item.maxWidth + _st.fieldMinWidth + _st.fieldCancelSkip; in MultiSelect() 440 rtlupdate(_st.padding.left(), _st.padding.top(), _st.fieldIcon.width(), _st.fieldIcon.height()); in updateHasAnyItems() 544 qMax(_st.itemSkip, _st.padding.left()), in itemPaintMargins() 546 qMax(_st.itemSkip, _st.padding.right()), in itemPaintMargins() [all …]
|
H A D | continuous_sliders.cpp | 156 , _st(st) { in FilledSlider() 164 return _st.duration; in getOverDuration() 176 const auto lineWidth = _st.lineWidth + ((_st.fullWidth - _st.lineWidth) * over); in paintEvent() 203 , _st(st) { in MediaSlider() 275 : anim::brush(_st.activeFg, _st.activeFgOver, over); in paintEvent() 279 : anim::brush(_st.inactiveFg, _st.inactiveFgOver, over); in paintEvent() 286 ? QRect(from, (height() - _st.width) / 2, till - from, _st.width) in paintEvent() 287 : QRect((width() - _st.width) / 2, from, _st.width, till - from); in paintEvent() 301 _st.width); in paintEvent() 316 _st.width) in paintEvent() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/lib_ui/ui/toast/ |
H A D | toast_widget.cpp | 21 , _st(config.st) in Widget() 38 _st->style, in Widget() 60 _st->padding.left() + _text.maxWidth() + _st->padding.right()); in updateGeometry() 63 parentWidget()->width() - _st->margin.left() - _st->margin.right()); in updateGeometry() 70 : (_st->icon.height() + 2 * _st->iconPosition.y()); in updateGeometry() 73 + _st->padding.bottom(); in updateGeometry() 132 _st->icon.paint( in paintEvent() 134 _st->iconPosition.x(), in paintEvent() 135 _st->iconPosition.y(), in paintEvent() 145 _st->padding.left(), in paintEvent() [all …]
|
/dports/textproc/p5-Text-Xslate/Text-Xslate-3.4.0/lib/Text/Xslate/PP/ |
H A D | Method.pm | 20 our $_st; 21 *_st = *Text::Xslate::PP::_current_st; 27 return $_st->bad_arg('first') if @_ != 1; 33 return $_st->bad_arg('last') if @_ != 1; 39 return $_st->bad_arg('size') if @_ != 1; 45 return $_st->bad_arg('join') if @_ != 2; 71 return $_st->bad_arg('map') if @_ != 2; 73 push @{ $_st->{ SP } }, [ $_ ]; 99 return $_st->bad_arg('size') if @_ != 1; 117 $_st->bad_arg('kv') if @_ != 1; [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/calls/ |
H A D | calls_signal_bars.cpp | 20 , _st(st) in SignalBars() 23 _st.width + (_st.width + _st.skip) * (Call::kSignalBarCount - 1), in SignalBars() 24 _st.max); in SignalBars() 36 p.setBrush(_st.color); in paintEvent() 38 p.setOpacity((i < _count) ? 1. : _st.inactiveOpacity); in paintEvent() 39 const auto barHeight = _st.min in paintEvent() 40 + (_st.max - _st.min) * (i / float64(Call::kSignalBarCount - 1)); in paintEvent() 41 const auto barLeft = i * (_st.width + _st.skip); in paintEvent() 47 _st.width, in paintEvent() 49 _st.radius, in paintEvent() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/profile/ |
H A D | profile_block_peer_list.cpp | 32 , _st(st) in PeerListWidget() 48 return newHeight + _st.bottom; in resizeGetHeight() 70 auto y = top + i * _st.height; in paintContents() 95 int skip = _st.photoPosition.x(); in paintItem() 97 …peer->paintUserpicLeft(p, item->userpic, x + _st.photoPosition.x(), y + _st.photoPosition.y(), wid… in paintItem() 126 p.setPen(_st.statusFgActive); in paintItem() 128 p.setPen(selected ? _st.statusFgOver : _st.statusFg); in paintItem() 215 int nameTop = top + _selected * _st.height + _st.namePosition.y(); in updateSelection() 253 rtlupdate(left, getListTop() + index * _st.height, width() - left, _st.height); in repaintRow() 258 return _st.left; in getListLeft() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/lib_ui/ui/effects/ |
H A D | radial_animation.cpp | 133 const auto index = (now - zero + _st.sinePeriod - _st.sineShift) in stop() 134 / _st.sinePeriod; in stop() 136 + _st.sineShift in stop() 152 _st.size, in draw() 154 _st.color, in draw() 155 _st.thickness); in draw() 169 _st.color, in draw() 170 _st.thickness); in draw() 246 const auto smallDuration = _st.sineShift - _st.sineDuration; in computeState() 266 } else if (relative <= _st.sinePeriod - _st.sineDuration) { in computeState() [all …]
|
/dports/net-im/telegram-desktop/tdesktop-3.2.5-full/Telegram/SourceFiles/media/player/ |
H A D | media_player_button.cpp | 16 : _st(st) in PlayButtonLayout() 78 auto playLeft = 0. + _st.playPosition.x(); in paintPlay() 79 auto playTop = 0. + _st.playPosition.y(); in paintPlay() 96 auto playLeft = 0. + _st.playPosition.x(); in paintPlayToPause() 97 auto playTop = 0. + _st.playPosition.y(); in paintPlayToPause() 101 auto pauseLeft = 0. + _st.pausePosition.x(); in paintPlayToPause() 102 auto pauseTop = 0. + _st.pausePosition.y(); in paintPlayToPause() 105 auto pauseStroke = 0. + _st.pauseStroke; in paintPlayToPause() 142 auto playLeft = 0. + _st.playPosition.x(); in paintPlayToCancel() 143 auto playTop = 0. + _st.playPosition.y(); in paintPlayToCancel() [all …]
|