Home | History | Annotate | Download | only in fxcrt

Lines Matching refs:BaseType

18 template <class BaseType>
22 CFX_PTemplate(BaseType new_x, BaseType new_y) : x(new_x), y(new_y) {}
38 CFX_PTemplate& operator+=(const CFX_PTemplate<BaseType>& obj) {
43 CFX_PTemplate& operator-=(const CFX_PTemplate<BaseType>& obj) {
55 BaseType x;
56 BaseType y;
61 template <class BaseType>
66 CFX_STemplate(BaseType new_width, BaseType new_height)
95 CFX_STemplate& operator+=(const CFX_STemplate<BaseType>& obj) {
100 CFX_STemplate& operator-=(const CFX_STemplate<BaseType>& obj) {
105 CFX_STemplate& operator*=(BaseType factor) {
110 CFX_STemplate& operator/=(BaseType divisor) {
121 CFX_STemplate operator*(BaseType factor) const {
124 CFX_STemplate operator/(BaseType divisor) const {
128 BaseType width;
129 BaseType height;
134 template <class BaseType>
135 class CFX_VTemplate : public CFX_PTemplate<BaseType> {
137 using CFX_PTemplate<BaseType>::x;
138 using CFX_PTemplate<BaseType>::y;
140 CFX_VTemplate() : CFX_PTemplate<BaseType>() {}
141 CFX_VTemplate(BaseType new_x, BaseType new_y)
142 : CFX_PTemplate<BaseType>(new_x, new_y) {}
144 CFX_VTemplate(const CFX_VTemplate& other) : CFX_PTemplate<BaseType>(other) {}
146 CFX_VTemplate(const CFX_PTemplate<BaseType>& point1,
147 const CFX_PTemplate<BaseType>& point2)
148 : CFX_PTemplate<BaseType>(point2.x - point1.x, point2.y - point1.y) {}
159 void Translate(BaseType dx, BaseType dy) {
163 void Scale(BaseType sx, BaseType sy) {
365 template <class BaseType>
368 using PointType = CFX_PTemplate<BaseType>;
369 using SizeType = CFX_STemplate<BaseType>;
370 using VectorType = CFX_VTemplate<BaseType>;
371 using RectType = CFX_RTemplate<BaseType>;
374 CFX_RTemplate(BaseType dst_left,
375 BaseType dst_top,
376 BaseType dst_width,
377 BaseType dst_height)
379 CFX_RTemplate(BaseType dst_left, BaseType dst_top, const SizeType& dst_size)
384 CFX_RTemplate(const PointType& p, BaseType dst_width, BaseType dst_height)
401 : left(static_cast<BaseType>(r.left)),
402 top(static_cast<BaseType>(r.top)),
403 width(static_cast<BaseType>(r.Width())),
404 height(static_cast<BaseType>(r.Height())) {}
436 BaseType right() const { return left + width; }
437 BaseType bottom() const { return top + height; }
448 void Offset(BaseType dx, BaseType dy) {
452 void Inflate(BaseType x, BaseType y) {
459 void Inflate(BaseType off_left,
460 BaseType off_top,
461 BaseType off_right,
462 BaseType off_bottom) {
471 void Deflate(BaseType x, BaseType y) {
478 void Deflate(BaseType off_left,
479 BaseType off_top,
480 BaseType off_right,
481 BaseType off_bottom) {
503 BaseType Width() const { return width; }
504 BaseType Height() const { return height; }
515 void Union(BaseType x, BaseType y) {
516 BaseType r = right();
517 BaseType b = bottom();
529 BaseType r = right();
530 BaseType b = bottom();
541 BaseType r = right();
542 BaseType b = bottom();
576 BaseType left;
577 BaseType top;
578 BaseType width;
579 BaseType height;