雖然通過我碰到下面的結構傳來DirectWrite的源代碼閱讀:結構成員初始化
/// <summary>
/// Line breakpoint characteristics of a character.
/// </summary>
struct DWRITE_LINE_BREAKPOINT
{
/// <summary>
/// Breaking condition before the character.
/// </summary>
UINT8 breakConditionBefore : 2;
/// <summary>
/// Breaking condition after the character.
/// </summary>
UINT8 breakConditionAfter : 2;
/// <summary>
/// The character is some form of whitespace, which may be meaningful
/// for justification.
/// </summary>
UINT8 isWhitespace : 1;
/// <summary>
/// The character is a soft hyphen, often used to indicate hyphenation
/// points inside words.
/// </summary>
UINT8 isSoftHyphen : 1;
UINT8 padding : 2;
};
通知怪「:」每一個成員的聲明之後。我將假設它是成員變量的默認初始化值。
我試着搜索谷歌來確認,但並不知道它的名字到底是什麼,我沒有得到太多的結果(大部分結果在默認初始化的情況下)。
這種技術的名稱是什麼?
他們只是「奇怪」,因爲你不知道他們是什麼。 :) – 2011-04-06 09:39:44