Changeset View
Changeset View
Standalone View
Standalone View
source/gui/CGUIText.h
/* Copyright (C) 2019 Wildfire Games. | /* Copyright (C) 2020 Wildfire Games. | ||||
* This file is part of 0 A.D. | * This file is part of 0 A.D. | ||||
* | * | ||||
* 0 A.D. is free software: you can redistribute it and/or modify | * 0 A.D. is free software: you can redistribute it and/or modify | ||||
* it under the terms of the GNU General Public License as published by | * it under the terms of the GNU General Public License as published by | ||||
* the Free Software Foundation, either version 2 of the License, or | * the Free Software Foundation, either version 2 of the License, or | ||||
* (at your option) any later version. | * (at your option) any later version. | ||||
* | * | ||||
* 0 A.D. is distributed in the hope that it will be useful, | * 0 A.D. is distributed in the hope that it will be useful, | ||||
▲ Show 20 Lines • Show All 173 Lines • ▼ Show 20 Lines | public: | ||||
// Helper functions of the constructor | // Helper functions of the constructor | ||||
bool ProcessLine( | bool ProcessLine( | ||||
const CGUI& pGUI, | const CGUI& pGUI, | ||||
const CGUIString& string, | const CGUIString& string, | ||||
const CStrIntern& Font, | const CStrIntern& Font, | ||||
const IGUIObject* pObject, | const IGUIObject* pObject, | ||||
const SGenerateTextImages& Images, | const SGenerateTextImages& Images, | ||||
const EAlign align, | const EAlign align, | ||||
const bool noWrap, | |||||
const float prelim_line_height, | const float prelim_line_height, | ||||
const float Width, | const float Width, | ||||
const float BufferZone, | const float BufferZone, | ||||
bool& FirstLine, | bool& FirstLine, | ||||
float& x, | float& x, | ||||
float& y, | float& y, | ||||
int& i, | int& i, | ||||
int& from); | int& from); | ||||
Show All 11 Lines | public: | ||||
float GetLineOffset( | float GetLineOffset( | ||||
const EAlign align, | const EAlign align, | ||||
const float width_range_from, | const float width_range_from, | ||||
const float width_range_to, | const float width_range_to, | ||||
const CSize& line_size) const; | const CSize& line_size) const; | ||||
void ComputeLineRange( | void ComputeLineRange( | ||||
const SGenerateTextImages& Images, | const SGenerateTextImages& Images, | ||||
const bool noWrap, | |||||
const float y, | const float y, | ||||
const float Width, | const float Width, | ||||
const float prelim_line_height, | const float prelim_line_height, | ||||
float& width_range_from, | float& width_range_from, | ||||
float& width_range_to) const; | float& width_range_to) const; | ||||
void ComputeLineSize( | void ComputeLineSize( | ||||
const CGUI& pGUI, | const CGUI& pGUI, | ||||
const CGUIString& string, | const CGUIString& string, | ||||
const CStrIntern& Font, | const CStrIntern& Font, | ||||
const bool noWrap, | |||||
const bool FirstLine, | const bool FirstLine, | ||||
const float Width, | const float Width, | ||||
const float width_range_to, | const float width_range_to, | ||||
const int i, | const int i, | ||||
const int temp_from, | const int temp_from, | ||||
float& x, | float& x, | ||||
CSize& line_size) const; | CSize& line_size) const; | ||||
bool AssembleCalls( | bool AssembleCalls( | ||||
const CGUI& pGUI, | const CGUI& pGUI, | ||||
const CGUIString& string, | const CGUIString& string, | ||||
const CStrIntern& Font, | const CStrIntern& Font, | ||||
const bool noWrap, | |||||
vladislavbelov: Different order of `bool`s. | |||||
const IGUIObject* pObject, | const IGUIObject* pObject, | ||||
const bool FirstLine, | const bool FirstLine, | ||||
const float Width, | const float Width, | ||||
const float width_range_to, | const float width_range_to, | ||||
const float dx, | const float dx, | ||||
const float y, | const float y, | ||||
const int temp_from, | const int temp_from, | ||||
const int i, | const int i, | ||||
Show All 38 Lines |
Wildfire Games · Phabricator
Different order of bools.