pangomm: pangomm Enums and Flags
Classes | |
class | Pango::Weight_Wrapper |
Wrapper for enum Weight. More... | |
Typedefs | |
using | Pango::Weight = Weight_Wrapper::Weight |
Weight enumerators are scoped by the wrapper class and can be implicitly converted to int. More... | |
Functions | |
ShowFlags | Pango::operator| (ShowFlags lhs, ShowFlags rhs) |
ShowFlags | Pango::operator& (ShowFlags lhs, ShowFlags rhs) |
ShowFlags | Pango::operator^ (ShowFlags lhs, ShowFlags rhs) |
ShowFlags | Pango::operator~ (ShowFlags flags) |
ShowFlags& | Pango::operator|= (ShowFlags& lhs, ShowFlags rhs) |
ShowFlags& | Pango::operator&= (ShowFlags& lhs, ShowFlags rhs) |
ShowFlags& | Pango::operator^= (ShowFlags& lhs, ShowFlags rhs) |
FontMask | Pango::operator| (FontMask lhs, FontMask rhs) |
FontMask | Pango::operator& (FontMask lhs, FontMask rhs) |
FontMask | Pango::operator^ (FontMask lhs, FontMask rhs) |
FontMask | Pango::operator~ (FontMask flags) |
FontMask& | Pango::operator|= (FontMask& lhs, FontMask rhs) |
FontMask& | Pango::operator&= (FontMask& lhs, FontMask rhs) |
FontMask& | Pango::operator^= (FontMask& lhs, FontMask rhs) |
ShapeFlags | Pango::operator| (ShapeFlags lhs, ShapeFlags rhs) |
ShapeFlags | Pango::operator& (ShapeFlags lhs, ShapeFlags rhs) |
ShapeFlags | Pango::operator^ (ShapeFlags lhs, ShapeFlags rhs) |
ShapeFlags | Pango::operator~ (ShapeFlags flags) |
ShapeFlags& | Pango::operator|= (ShapeFlags& lhs, ShapeFlags rhs) |
ShapeFlags& | Pango::operator&= (ShapeFlags& lhs, ShapeFlags rhs) |
ShapeFlags& | Pango::operator^= (ShapeFlags& lhs, ShapeFlags rhs) |
Detailed Description
Typedef Documentation
using Pango::Weight = typedef Weight_Wrapper::Weight |
Weight enumerators are scoped by the wrapper class and can be implicitly converted to int.
Enumeration Type Documentation
|
strong |
A Pango::Alignment describes how to align the lines of a Pango::Layout within the available space.
If the Pango::Layout is set to justify using Pango::Layout::set_justify(), this only has effect for partial lines.
Enumerator | |
---|---|
LEFT |
Put all available space on the right. The tab stop appears to the left of the text. |
CENTER |
Center the line within the available space. |
RIGHT |
Put all available space on the left. |
|
strong |
The Pango::AttrType distinguishes between different types of attributes.
Along with the predefined values, it is possible to allocate additional values for custom attributes using pango_attr_type_register(). The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description.
Enumerator | |
---|---|
INVALID |
Pango::AttrType distinguishes between different types of attributes. Along with the predefined values, it is possible to allocate additional values for custom attributes using Pango::Attribute::register_type(). The predefined values are given below. The type of structure used to store the attribute is listed in parentheses after the description. Does not happen. |
LANGUAGE | |
FAMILY |
Font family name list (Pango::AttrString). The font family is specified. |
STYLE |
Font slant style (Pango::AttrInt). The font style is specified. |
WEIGHT |
Font weight (Pango::AttrInt). The font weight is specified. |
VARIANT |
Font variant (normal or small caps) (Pango::AttrInt). The font variant is specified. |
STRETCH |
Font stretch (Pango::AttrInt). The font stretch is specified. |
SIZE |
Font size in points scaled by Pango::SCALE (Pango::AttrInt). The font size is specified. |
FONT_DESC |
Font description (Pango::AttrFontDesc). |
FOREGROUND |
Foreground color (Pango::AttrColor). |
BACKGROUND |
Background color (Pango::AttrColor). |
UNDERLINE |
Whether the text has an underline (Pango::AttrInt). |
STRIKETHROUGH |
Whether the text is struck-through (Pango::AttrInt). |
RISE |
Baseline displacement (Pango::AttrInt). |
SHAPE |
Shape (Pango::AttrShape). |
SCALE_FACTOR |
Font size scale factor (Pango::AttrFloat). |
FALLBACK |
Whether fallback is enabled (Pango::AttrInt). |
LETTER_SPACING |
Letter spacing (Pango::AttrInt). |
UNDERLINE_COLOR |
Underline color (Pango::AttrColor). |
STRIKETHROUGH_COLOR |
Strikethrough color (Pango::AttrColor). |
ABSOLUTE_SIZE |
Font size in pixels scaled by Pango::SCALE (Pango::AttrInt). |
GRAVITY |
Base text gravity (Pango::AttrInt). The font gravity is specified (Since: 1.16.). |
GRAVITY_HINT |
Gravity hint (Pango::AttrInt). |
FONT_FEATURES |
OpenType font features (Pango::AttrString). |
FOREGROUND_ALPHA |
Foreground alpha (Pango::AttrInt). |
BACKGROUND_ALPHA |
Background alpha (Pango::AttrInt). |
ALLOW_BREAKS |
Whether breaks are allowed (Pango::AttrInt). |
SHOW |
How to render invisible characters (Pango::AttrInt). |
INSERT_HYPHENS |
Whether to insert hyphens at intra-word line breaks (Pango::AttrInt). |
OVERLINE |
Whether the text has an overline (Pango::AttrInt). |
OVERLINE_COLOR |
Overline color (Pango::AttrColor). |
|
strong |
The Pango::Direction type represents a direction in the Unicode bidirectional algorithm; not every value in this enumeration makes sense for every usage of Pango::Direction; for example, the return value of pango_unichar_direction() and pango_find_base_dir() cannot be Pango::Direction::WEAK_LTR or Pango::Direction::WEAK_RTL, since every character is either neutral or has a strong direction; on the other hand Pango::Direction::NEUTRAL doesn't make sense to pass to pango_itemize_with_base_dir().
The Pango::Direction::TTB_LTR, Pango::Direction::TTB_RTL values come from an earlier interpretation of this enumeration as the writing direction of a block of text and are no longer used; See Pango::Gravity for how vertical text is handled in Pango.
If you are interested in text direction, you should really use fribidi directly. PangoDirection is only retained because it is used in some public apis.
Enumerator | |
---|---|
LTR |
A strong left-to-right direction. |
RTL |
A strong right-to-left direction. |
TTB_LTR |
Deprecated value; treated the same as Pango::Direction::RTL. |
TTB_RTL |
Deprecated value; treated the same as Pango::Direction::LTR. |
WEAK_LTR |
A weak left-to-right direction. |
WEAK_RTL |
A weak right-to-left direction. |
NEUTRAL |
No direction specified. |
|
strong |
The Pango::EllipsizeMode type describes what sort of (if any) ellipsization should be applied to a line of text.
In the ellipsization process characters are removed from the text in order to make it fit to a given width and replaced with an ellipsis.
Enumerator | |
---|---|
NONE | |
START |
Omit characters at the start of the text. |
MIDDLE |
Omit characters in the middle of the text. |
END |
Omit characters at the end of the text. |
|
strong |
The bits in a Pango::FontMask correspond to fields in a Pango::FontDescription that have been set.
- Bitwise operators:
FontMask operator|(FontMask, FontMask)
FontMask operator&(FontMask, FontMask)
FontMask operator^(FontMask, FontMask)
FontMask operator~(FontMask)
FontMask& operator|=(FontMask&, FontMask)
FontMask& operator&=(FontMask&, FontMask)
FontMask& operator^=(FontMask&, FontMask)
Enumerator | |
---|---|
FAMILY | |
STYLE | |
VARIANT | |
WEIGHT | |
STRETCH | |
SIZE | |
GRAVITY | |
VARIATIONS |
OpenType font variations are specified (Since: 1.42). |
|
strong |
The Pango::Gravity type represents the orientation of glyphs in a segment of text.
This is useful when rendering vertical text layouts. In those situations, the layout is rotated using a non-identity PangoMatrix, and then glyph orientation is controlled using Pango::Gravity. Not every value in this enumeration makes sense for every usage of Pango::Gravity; for example, Pango::Gravity::AUTO only can be passed to Pango::Context::set_base_gravity() and can only be returned by Pango::Context::get_base_gravity().
See also: Pango::GravityHint
|
strong |
The Pango::GravityHint defines how horizontal scripts should behave in a vertical context.
That is, English excerpt in a vertical paragraph for example.
See Pango::Gravity.
|
strong |
Used to indicate how well a font can represent a particular Unicode character point for a particular script.
Since 1.44, only Pango::Coverage::Level::NONE and Pango::Coverage::Level::EXACT will be returned.
|
strong |
The Pango::Overline enumeration is used to specify whether text should be overlined, and if so, the type of line.
Enumerator | |
---|---|
NONE | |
SINGLE |
|
strong |
|
strong |
The Pango::Script enumeration identifies different writing systems.
The values correspond to the names as defined in the Unicode standard. See Unicode Standard Annex #24: Script names.
Note that this enumeration is deprecated and will not be updated to include values in newer versions of the Unicode standard. Applications should use the GUnicodeScript enumeration instead, whose values are interchangeable with PangoScript.
|
strong |
Flags influencing the shaping process.
These can be passed to pango_shape_with_flags().
- Bitwise operators:
ShapeFlags operator|(ShapeFlags, ShapeFlags)
ShapeFlags operator&(ShapeFlags, ShapeFlags)
ShapeFlags operator^(ShapeFlags, ShapeFlags)
ShapeFlags operator~(ShapeFlags)
ShapeFlags& operator|=(ShapeFlags&, ShapeFlags)
ShapeFlags& operator&=(ShapeFlags&, ShapeFlags)
ShapeFlags& operator^=(ShapeFlags&, ShapeFlags)
Enumerator | |
---|---|
NONE | |
ROUND_POSITIONS |
Round glyph positions and widths to whole device units. This option should be set if the target renderer can't do subpixel positioning of glyphs. |
|
strong |
These flags affect how Pango treats characters that are normally not visible in the output.
- Bitwise operators:
ShowFlags operator|(ShowFlags, ShowFlags)
ShowFlags operator&(ShowFlags, ShowFlags)
ShowFlags operator^(ShowFlags, ShowFlags)
ShowFlags operator~(ShowFlags)
ShowFlags& operator|=(ShowFlags&, ShowFlags)
ShowFlags& operator&=(ShowFlags&, ShowFlags)
ShowFlags& operator^=(ShowFlags&, ShowFlags)
Enumerator | |
---|---|
NONE | |
SPACES |
Render spaces, tabs and newlines visibly. |
LINE_BREAKS |
Render line breaks visibly. |
IGNORABLES |
Render default-ignorable Unicode characters visibly. |
|
strong |
An enumeration specifying the width of the font relative to other designs within a family.
|
strong |
|
strong |
A Pango::TabAlign specifies where a tab stop appears relative to the text.
Enumerator | |
---|---|
LEFT |
|
strong |
The Pango::Underline enumeration is used to specify whether text should be underlined, and if so, the type of underlining.
Enumerator | |
---|---|
NONE |
No underline should be drawn. No ellipsization. Default value. No special treatment for invisible characters. No overline should be drawn. |
SINGLE |
A single underline should be drawn. Draw a single line above the ink extents of the text being underlined. |
DOUBLE |
A double underline should be drawn. |
LOW |
A single underline should be drawn at a position beneath the ink extents of the text being underlined. This should be used only for underlining single characters, such as for keyboard accelerators. Pango::Underline::SINGLE should be used for extended portions of text. |
ERROR |
A wavy underline should be drawn below. This underline is typically used to indicate an error such as a possible mispelling; in some cases a contrasting color may automatically be used. This type of underlining is available since Pango 1.4. |
SINGLE_LINE |
Like PANGO_UNDERLINE_SINGLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. |
DOUBLE_LINE |
Like PANGO_UNDERLINE_DOUBLE, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. |
ERROR_LINE |
Like PANGO_UNDERLINE_ERROR, but drawn continuously across multiple runs. This type of underlining is available since Pango 1.46. |
|
strong |
An enumeration specifying the weight (boldness) of a font.
This is a numerical value ranging from 100 to 1000, but there are some predefined values:
|
strong |
A Pango::WrapMode describes how to wrap the lines of a Pango::Layout to the desired width.
Function Documentation
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |