Method | Description | |
---|---|---|
CheckDisposed ( ) : void |
Check to see if the object has been disposed. All public Properties and Methods should call this before doing anything else.
|
|
FontFeaturesButton ( ) : System |
Initializes a new instance of the FontFeaturesButton class.
|
|
GenerateFeatureString ( int ids, int values ) : string |
This is the inverse operation of ParseFeatureString.
|
|
ParseFeatureString ( int ids, string stFeatures ) : int[] |
Parse a feature string from a renderer. The feature string is of the form 1=12,2=23,3="abcd" where the first number in each pair is a feature ID, the second is the value. The quoted form represents a special trick form (which this class never outputs, but apparently may be found in existing engines), where the low bytes of up to four characters are combined to make the value. The routine returns an array the same length as ids[]. By default all values are the largest possible integer, signifying the default value of the property. For each id in ids that is matched by an id in the string, we record the corresponding valuein values.
|
|
SetupFontFeatures ( ) : void |
Setups the font features.
|
Method | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Clean up any resources being used.
|
|
OnClick ( |
Raises the click event.
|
|
OnFontFeatureSelected ( |
Handle the FontFeatureSelected event; by default just calls delegates.
|
Method | Description | |
---|---|---|
FindNextFeature ( string stFeatures, int ichMin ) : int |
Scan for another feature value, which is marked by a comma.
|
|
InitializeComponent ( ) : void |
Required method for Designer support - do not modify the contents of this method with the code editor.
|
|
ItemClickHandler ( Object sender, |
Items the click handler.
|
|
ParseNextFid ( string stFeatures, int ichMin, int &ichLim ) : int |
Parse a feature string to find the next feature id value, skipping any leading spaces. Also skip past the trailing equal sign, and any surrounding spaces.
|
|
ParseNumericValue ( string stFeatures, int ichMin, int &ichLim ) : int |
Parse the value, which is a number (digit string).
|
|
ParseQuotedValue ( string stFeatures, int ichMin, int &ichLim ) : int |
Parse the value, which is a quoted string. The first four characters are packed into a 32-bit integer by taking the low byte of each character.
|
static public GenerateFeatureString ( int ids, int values ) : string | ||
ids | int | The ids. |
values | int | The values. |
return | string |
protected OnClick ( |
||
e | The |
|
return | void |
protected OnFontFeatureSelected ( |
||
ea | The |
|
return | void |
static public ParseFeatureString ( int ids, string stFeatures ) : int[] | ||
ids | int | |
stFeatures | string | |
return | int[] |