Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 00052 00053 00054 00055 00056 00057 00058 00059 00060 00061 00062 00063 00064 00065 00066 00067 00068 00069 00070 00071 00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089 00090 00091 00092 00093 00094 00095 00096 00097 00098 00099 00100 00101 00102 00103 00104 00105 00106 00107 00108 00109 00110 00111 00112 00113 00114 00115 00116 00117 00118 00119 00120 00121 00122 00123 00124 00125 00126 00127 00128 00129 00130 00131 00132 00133 00134 00135 00136 00137 00138 00139 00140 00141 00142 00143 00144 00145 00146 00147 00148 00149 00150 00151 00152 00153 00154 00155 00156 00157 00158 00159 00160 00161 00162 00163 00164 00165 00166 00167 00168 00169 00170 00171 00172 00173 00174 00175 00176 00177 00178 00179 00180 00181 00182 00183 00184 00185 00186 00187 00188 00189 00190 00191 00192 00193 00194 00195 00196 00197 00198 00199 00200 00201 00202 00203 00204 00205 00206 00207 00208 00209 00210 00211 00212 00213 00214 00215 00216 00217 00218 00219 00220 00221 00222 00223 00224 00225 00226 00227 00228 00229 00230 00231 00232 00233 00234 00235 00236 00237 00238 00239 00240 00241 00242 00243 00244 00245 00246 00247 00248 00249 00250 00251 00252 00253 00254 |
/** * This component encapsulates rendering a UITexture for widgets. It is responsible for managing any * image formatting data that is required for a particular widget (thus inappropriate for storage in UIStyles). * * The style used for rendering the ImageRef is defined by whichever widget owns this component. It is the widget's * responsibility to call ApplyImageStyle when the widget receives a call to OnStyleResolved for the UIStyleReference * which is intended to be used as the style for this image. * * Copyright 1998-2008 Epic Games, Inc. All Rights Reserved. */ class UIComp_DrawImage extends UIComp_DrawComponents native(UIPrivate) HideCategories(Object) implements(UIStyleResolver,CustomPropertyItemHandler) editinlinenew; // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) // (cpptext) /** * The tag used to fulfill the UIStyleResolver interface's GetStyleResolverTag method. Value should be set by the owning widget. */ var name StyleResolverTag; /** * The utility wrapper for the image that this component should render. Automatically created by the component when * given an material/texture to render. */ var(StyleOverride) instanced editinlineuse UITexture ImageRef; /** * Contains values for customizing and overriding rendering and formatting values designated by this component's style. */ var(StyleOverride) UIImageStyleOverride StyleCustomization; /** * The style to use for rendering this component's image. If the style is invalid, the component will use the owning * widget's PrimaryStyle, if possible. */ var private UIStyleReference ImageStyle; /* === Natives === */ /** * Returns the image style data being used by this image rendering component. If the component's ImageStyle is not set, the style data * will be pulled from the owning widget's primary style. * * @param DesiredMenuState the menu state for the style data to retrieve; if not speicified, uses the owning widget's current menu state. * * @return the image style data used to render this component's image for the specified menu state. * * @note: noexport because we the native version is also handles optionally resolving the image style data from the active skin, so it * takes a few more parameters. */ native final noexport function UIStyle_Image GetAppliedImageStyle( optional UIState DesiredMenuState ); /** * Changes the image for this component, creating the wrapper UITexture if necessary. * * @param NewImage the new texture or material to use in this component */ native final function SetImage( Surface NewImage ); /** * Enables image coordinate customization and changes the component's override coordinates to the value specified. * * @param NewCoordinates the UV coordinates to use for rendering this component's image */ native final function SetCoordinates( TextureCoordinates NewCoordinates ); /** * Enables image color customization and changes the component's override color to the value specified. * * @param NewColor the color to use for rendering this component's image */ native final function SetColor( LinearColor NewColor ); /** * Enables a custom opacity and changes the component's override opacity to the value specified. * * @param NewOpacity the alpha to use for rendering this component's string */ native final function SetOpacity(float NewOpacity); /** * Enables custom padding and changes the component's override padding to the value specified. * * @param HorizontalPadding new horizontal padding value to use (assuming a screen height of DEFAULT_SIZE_Y); * will be scaled based on actual resolution. Specify -1 to indicate that HorizontalPadding * should not be changed (useful when changing only the vertical padding) * @param HorizontalPadding new vertical padding value to use (assuming a screen height of DEFAULT_SIZE_Y); * will be scaled based on actual resolution. Specify -1 to indicate that VerticalPadding * should not be changed (useful when changing only the horizontal padding) */ native final function SetPadding( float HorizontalPadding, float VerticalPadding ); /** * Enables image formatting customization and changes the component's formatting override data to the value specified. * * @param Orientation indicates which orientation to modify * @param NewFormattingData the new value to use for rendering this component's image. */ native final function SetFormatting( EUIOrientation Orientation, UIImageAdjustmentData NewFormattingData ); /** * Disables image coordinate customization allowing the image to use the values from the applied style. */ native final function DisableCustomCoordinates(); /** * Disables image color customization allowing the image to use the values from the applied style. */ native final function DisableCustomColor(); /** * Disables the custom opacity level for this comp */ native final function DisableCustomOpacity(); /** * Disables the custom padding for this component. */ native final function DisableCustomPadding(); /** * Disables image formatting customization allowing the image to use the values from the applied style. */ native final function DisableCustomFormatting(); /** * Returns the texture or material assigned to this component. */ native final function Surface GetImage() const; /* === UIStyleResolver interface === */ /** * Returns the tag assigned to this UIStyleResolver by the owning widget */ native final virtual function name GetStyleResolverTag(); /** * Changes the tag assigned to the UIStyleResolver to the specified value. * * @return TRUE if the name was changed successfully; FALSE otherwise. */ native final virtual function bool SetStyleResolverTag( name NewResolverTag ); /** * Resolves the image style for this image rendering component. * * @param ActiveSkin the skin the use for resolving the style reference. * @param bClearExistingValue if TRUE, style references will be invalidated first. * @param CurrentMenuState the menu state to use for resolving the style data; if not specified, uses the current * menu state of the owning widget. * @param StyleProperty if specified, only the style reference corresponding to the specified property * will be resolved; otherwise, all style references will be resolved. */ native final virtual function bool NotifyResolveStyle( UISkin ActiveSkin, bool bClearExistingValue, optional UIState CurrentMenuState, const optional name StylePropertyName ); defaultproperties { StyleResolverTag="Image Style" StyleCustomization=(Formatting[0]=(AdjustmentType=ADJUST_Normal),Formatting[1]=(AdjustmentType=ADJUST_Normal),DrawColor=(R=1.000000,G=1.000000,B=1.000000,A=1.000000),Opacity=1.000000) ImageStyle=(DefaultStyleTag="DefaultImageStyle",RequiredStyleClass=Class'Engine.UIStyle_Image') Name="Default__UIComp_DrawImage" ObjectArchetype=UIComp_DrawComponents'Engine.Default__UIComp_DrawComponents' } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |