Home
last modified time | relevance | path

Searched refs:text_ofs (Results 1 – 12 of 12) sorted by relevance

/dports/devel/godot2/godot-2.1.6-stable/scene/gui/
H A Dbutton.cpp115 …Point2 text_ofs = (size - style->get_minimum_size() - icon_ofs - font->get_string_size(text)) / 2.… in _notification() local
119 text_ofs.x = style->get_margin(MARGIN_LEFT) + icon_ofs.x; in _notification()
120 text_ofs.y += style->get_offset().y; in _notification()
123 if (text_ofs.x < 0) in _notification()
124 text_ofs.x = 0; in _notification()
125 text_ofs += icon_ofs; in _notification()
126 text_ofs += style->get_offset(); in _notification()
129 text_ofs.x = size.x - style->get_margin(MARGIN_RIGHT) - font->get_string_size(text).x; in _notification()
130 text_ofs.y += style->get_offset().y; in _notification()
134 text_ofs.y += font->get_ascent(); in _notification()
[all …]
H A Ditem_list.cpp953 Vector2 text_ofs; in _notification() local
975 text_ofs.y = icon_size.height + icon_margin; in _notification()
980 text_ofs.x = icon_size.width + icon_margin; in _notification()
1045 text_ofs.y += font->get_ascent(); in _notification()
1046 text_ofs = text_ofs.floor(); in _notification()
1047 text_ofs += base_ofs; in _notification()
1048 text_ofs += items[i].rect_cache.pos; in _notification()
1073 text_ofs.y += font->get_ascent(); in _notification()
1074 text_ofs = text_ofs.floor(); in _notification()
1075 text_ofs += base_ofs; in _notification()
[all …]
H A Dbutton_array.cpp272 … Point2 text_ofs = ((r.size - ssize - sbsize) / 2.0 + Point2(0, f->get_ascent())).floor() + sbofs; in _notification() local
275 …draw_texture(buttons[i].icon, r.pos + Point2(text_ofs.x, Math::floor((r.size.height - buttons[i].i… in _notification()
276 text_ofs.x += buttons[i].icon->get_width() + icon_sep; in _notification()
278 draw_string(f, text_ofs + r.pos, buttons[i].xl_text, c); in _notification()
/dports/devel/godot2-tools/godot-2.1.6-stable/scene/gui/
H A Dbutton.cpp115 …Point2 text_ofs = (size - style->get_minimum_size() - icon_ofs - font->get_string_size(text)) / 2.… in _notification() local
119 text_ofs.x = style->get_margin(MARGIN_LEFT) + icon_ofs.x; in _notification()
120 text_ofs.y += style->get_offset().y; in _notification()
123 if (text_ofs.x < 0) in _notification()
124 text_ofs.x = 0; in _notification()
125 text_ofs += icon_ofs; in _notification()
126 text_ofs += style->get_offset(); in _notification()
129 text_ofs.x = size.x - style->get_margin(MARGIN_RIGHT) - font->get_string_size(text).x; in _notification()
130 text_ofs.y += style->get_offset().y; in _notification()
134 text_ofs.y += font->get_ascent(); in _notification()
[all …]
H A Ditem_list.cpp953 Vector2 text_ofs; in _notification() local
975 text_ofs.y = icon_size.height + icon_margin; in _notification()
980 text_ofs.x = icon_size.width + icon_margin; in _notification()
1045 text_ofs.y += font->get_ascent(); in _notification()
1046 text_ofs = text_ofs.floor(); in _notification()
1047 text_ofs += base_ofs; in _notification()
1048 text_ofs += items[i].rect_cache.pos; in _notification()
1073 text_ofs.y += font->get_ascent(); in _notification()
1074 text_ofs = text_ofs.floor(); in _notification()
1075 text_ofs += base_ofs; in _notification()
[all …]
H A Dbutton_array.cpp272 … Point2 text_ofs = ((r.size - ssize - sbsize) / 2.0 + Point2(0, f->get_ascent())).floor() + sbofs; in _notification() local
275 …draw_texture(buttons[i].icon, r.pos + Point2(text_ofs.x, Math::floor((r.size.height - buttons[i].i… in _notification()
276 text_ofs.x += buttons[i].icon->get_width() + icon_sep; in _notification()
278 draw_string(f, text_ofs + r.pos, buttons[i].xl_text, c); in _notification()
/dports/devel/godot-tools/godot-3.2.3-stable/scene/gui/
H A Dbutton.cpp205text_ofs.x = style->get_margin(MARGIN_LEFT) + icon_ofs.x + _internal_margin[MARGIN_LEFT] + get_con… in _notification()
207 text_ofs.x = style->get_margin(MARGIN_LEFT) + icon_ofs.x; in _notification()
209 text_ofs.y += style->get_offset().y; in _notification()
212 if (text_ofs.x < 0) in _notification()
213 text_ofs.x = 0; in _notification()
214 text_ofs += icon_ofs; in _notification()
215 text_ofs += style->get_offset(); in _notification()
221 text_ofs.x = size.x - style->get_margin(MARGIN_RIGHT) - font->get_string_size(xl_text).x; in _notification()
223 text_ofs.y += style->get_offset().y; in _notification()
227 text_ofs.y += font->get_ascent(); in _notification()
[all …]
H A Ditem_list.cpp1074 Vector2 text_ofs; in _notification() local
1096 text_ofs.y = icon_size.height + icon_margin; in _notification()
1101 text_ofs.x = icon_size.width + icon_margin; in _notification()
1171 text_ofs.y += font->get_ascent(); in _notification()
1172 text_ofs = text_ofs.floor(); in _notification()
1173 text_ofs += base_ofs; in _notification()
1174 text_ofs += items[i].rect_cache.position; in _notification()
1200 text_ofs.y += font->get_ascent(); in _notification()
1201 text_ofs = text_ofs.floor(); in _notification()
1202 text_ofs += base_ofs; in _notification()
[all …]
/dports/devel/godot/godot-3.2.3-stable/scene/gui/
H A Dbutton.cpp205text_ofs.x = style->get_margin(MARGIN_LEFT) + icon_ofs.x + _internal_margin[MARGIN_LEFT] + get_con… in _notification()
207 text_ofs.x = style->get_margin(MARGIN_LEFT) + icon_ofs.x; in _notification()
209 text_ofs.y += style->get_offset().y; in _notification()
212 if (text_ofs.x < 0) in _notification()
213 text_ofs.x = 0; in _notification()
214 text_ofs += icon_ofs; in _notification()
215 text_ofs += style->get_offset(); in _notification()
221 text_ofs.x = size.x - style->get_margin(MARGIN_RIGHT) - font->get_string_size(xl_text).x; in _notification()
223 text_ofs.y += style->get_offset().y; in _notification()
227 text_ofs.y += font->get_ascent(); in _notification()
[all …]
H A Ditem_list.cpp1074 Vector2 text_ofs; in _notification() local
1096 text_ofs.y = icon_size.height + icon_margin; in _notification()
1101 text_ofs.x = icon_size.width + icon_margin; in _notification()
1171 text_ofs.y += font->get_ascent(); in _notification()
1172 text_ofs = text_ofs.floor(); in _notification()
1173 text_ofs += base_ofs; in _notification()
1174 text_ofs += items[i].rect_cache.position; in _notification()
1200 text_ofs.y += font->get_ascent(); in _notification()
1201 text_ofs = text_ofs.floor(); in _notification()
1202 text_ofs += base_ofs; in _notification()
[all …]
/dports/graphics/pstoedit/pstoedit-3.70/src/
H A Ddrvpptx.cpp1186 Point text_ofs = rotate_pt_around(text_ul_rot, -angle, text_c_rot); in show_text() local
1196 slidef << " <a:off " << pt2emu(text_ofs.x_, text_ofs.y_) << "/>\n"; in show_text()
/dports/games/xonotic/Xonotic/source/qcsrc/client/hud/panel/
H A Dscoreboard.qc1405 …vector text_ofs = eX * 0.5 * hud_fontsize.x + eY * (1.25 - 1) / 2 * hud_fontsize.y; // center text…
1421 drawstring(pos + text_ofs, str, hud_fontsize, '1 1 1', sbt_fg_alpha, DRAWFLAG_NORMAL);
1422 …drawstring(pos + text_ofs + eX * ranksize, TIME_ENCODED_TOSTRING(t), hud_fontsize, '1 1 1', sbt_fg…
1426 …drawcolorcodedstring(pos + text_ofs + eX * (ranksize + timesize), str, hud_fontsize, sbt_fg_alpha,…