PgAttributeShape

The PangoAttrShape structure is used to represent attributes which impose shape restrictions.

Constructors

this
this(PangoAttrShape* pangoAttrShape, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(PangoRectangle* inkRect, PangoRectangle* logicalRect)

Create a new shape attribute.

this
this(PangoRectangle* inkRect, PangoRectangle* logicalRect, void* data, PangoAttrDataCopyFunc copyFunc, GDestroyNotify destroyFunc)

Creates a new shape attribute.

Members

Functions

getPgAttributeShapeStruct
PangoAttrShape* getPgAttributeShapeStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Variables

pangoAttrShape
PangoAttrShape* pangoAttrShape;

the main Gtk struct

Inherited Members

From PgAttribute

pangoAttribute
PangoAttribute* pangoAttribute;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.
getPgAttributeStruct
PangoAttribute* getPgAttributeStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
copy
PgAttribute copy()

Make a copy of an attribute.

destroy
void destroy()

Destroy a PangoAttribute and free all associated memory.

equal
bool equal(PgAttribute attr2)

Compare two attributes for equality. This compares only the actual value of the two attributes and not the ranges that the attributes apply to.

init
void init(PangoAttrClass* klass)

Initializes @attr's klass to @klass, it's start_index to %PANGO_ATTR_INDEX_FROM_TEXT_BEGINNING and end_index to %PANGO_ATTR_INDEX_TO_TEXT_END such that the attribute applies to the entire text by default.

backgroundNew
PgAttribute backgroundNew(ushort red, ushort green, ushort blue)

Create a new background color attribute.

backgroundAlphaNew
PgAttribute backgroundAlphaNew(ushort alpha)

Create a new background alpha attribute.

fallbackNew
PgAttribute fallbackNew(bool enableFallback)

Create a new font fallback attribute.

familyNew
PgAttribute familyNew(string family)

Create a new font family attribute.

foregroundNew
PgAttribute foregroundNew(ushort red, ushort green, ushort blue)

Create a new foreground color attribute.

foregroundAlphaNew
PgAttribute foregroundAlphaNew(ushort alpha)

Create a new foreground alpha attribute.

gravityHintNew
PgAttribute gravityHintNew(PangoGravityHint hint)

Create a new gravity hint attribute.

gravityNew
PgAttribute gravityNew(PangoGravity gravity)

Create a new gravity attribute.

letterSpacingNew
PgAttribute letterSpacingNew(int letterSpacing)

Create a new letter-spacing attribute.

riseNew
PgAttribute riseNew(int rise)

Create a new baseline displacement attribute.

scaleNew
PgAttribute scaleNew(double scaleFactor)

Create a new font size scale attribute.

stretchNew
PgAttribute stretchNew(PangoStretch stretch)

Create a new font stretch attribute.

strikethroughColorNew
PgAttribute strikethroughColorNew(ushort red, ushort green, ushort blue)

Create a new strikethrough color attribute.

strikethroughNew
PgAttribute strikethroughNew(bool strikethrough)

Create a new strike-through attribute.

styleNew
PgAttribute styleNew(PangoStyle style)

Create a new font slant style attribute.

typeGetName
string typeGetName(PangoAttrType type)

Fetches the attribute type name.

typeRegister
PangoAttrType typeRegister(string name)

Allocate a new attribute type ID.

underlineColorNew
PgAttribute underlineColorNew(ushort red, ushort green, ushort blue)

Create a new underline color attribute.

underlineNew
PgAttribute underlineNew(PangoUnderline underline)

Create a new underline-style attribute.

variantNew
PgAttribute variantNew(PangoVariant variant)

Create a new font variant attribute (normal or small caps).

weightNew
PgAttribute weightNew(PangoWeight weight)

Create a new font weight attribute.

markupParserFinish
bool markupParserFinish(SimpleXML context, PgAttributeList attrList, string text, dchar accelChar)

Finishes parsing markup.

markupParserNew
SimpleXML markupParserNew(dchar accelMarker)

Incrementally parses marked-up text to create a plain-text string and an attribute list.

parseMarkup
bool parseMarkup(string markupText, int length, dchar accelMarker, PgAttributeList attrList, string text, dchar accelChar)

Parses marked-up text to create a plain-text string and an attribute list.

Meta