Expando Node for Padding. More...
#include "definition.h"
Go to the source code of this file.
Data Structures | |
struct | NodePaddingPrivate |
Private data for a Padding Node -. More... | |
Enumerations | |
enum | ExpandoPadType { EPT_FILL_EOL , EPT_HARD_FILL , EPT_SOFT_FILL } |
Padding type. More... | |
enum | ENPad { ENP_LEFT , ENP_RIGHT } |
Names for the Padding's children. More... | |
Functions | |
struct ExpandoNode * | node_padding_parse (const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err) |
Parse a Padding Expando - Implements ExpandoDefinition::parse() -. | |
void | node_padding_repad (struct ExpandoNode **parent) |
Rearrange Padding in a tree of ExpandoNodes. | |
Expando Node for Padding.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file node_padding.h.
enum ExpandoPadType |
Padding type.
Padding occurs between two sides, left and right. The type of Padding, soft or hard, refers to how the left-hand-side will react if there's too little space.
Hard padding: The left-hand-side will fixed and the right-hand-side will be truncated. Soft padding: The right-hand-side will be fixed and the left-hand-side will be truncated.
Enumerator | |
---|---|
EPT_FILL_EOL | Fill to the end-of-line. |
EPT_HARD_FILL | Hard-fill: left-hand-side will be truncated. |
EPT_SOFT_FILL | Soft-fill: right-hand-side will be truncated. |
Definition at line 43 of file node_padding.h.
enum ENPad |
Names for the Padding's children.
Padding has two children: Left and Right.
Enumerator | |
---|---|
ENP_LEFT | Index of Left-Hand Nodes. |
ENP_RIGHT | Index of Right-Hand Nodes. |
Definition at line 55 of file node_padding.h.
void node_padding_repad | ( | struct ExpandoNode ** | ptr | ) |
Rearrange Padding in a tree of ExpandoNodes.
ptr | Parent Node |
Definition at line 291 of file node_padding.c.