protected Layer (string name) { Uid = Guid.NewGuid(); _opacity = 1f; _visible = true; _rasterMode = RasterMode.Point; _name = name; _properties = new PropertyCollection(_reservedPropertyNames); _predefinedProperties = new LayerProperties(this); _properties.Modified += (s, e) => OnModified(EventArgs.Empty); }
protected Layer(Layer copyMe) { this.width = copyMe.width; this.height = copyMe.height; this.properties = (LayerProperties)copyMe.properties.Clone(); }
public Layer(int width, int height) { this.width = width; this.height = height; this.properties = new LayerProperties(null, new NameValueCollection(), true, false, 255); }
public LayerProperties(LayerProperties copyMe) { this.name = copyMe.name; this.userMetaData = new NameValueCollection(copyMe.userMetaData); this.visible = copyMe.visible; this.isBackground = copyMe.isBackground; this.opacity = copyMe.opacity; }
public virtual void LoadProperties(object oldState, bool suppressEvents) { LayerProperties lp = (LayerProperties)oldState; List<string> changed = new List<String>(); if (!suppressEvents) { if (lp.name != properties.name) { changed.Add(LayerProperties.NameName); } if (lp.isBackground != properties.isBackground) { changed.Add(LayerProperties.IsBackgroundName); } if (lp.visible != properties.visible) { changed.Add(LayerProperties.VisibleName); } if (lp.opacity != properties.opacity) { changed.Add(LayerProperties.OpacityName); } } foreach (string propertyName in changed) { OnPropertyChanging(propertyName); } properties = (LayerProperties)((LayerProperties)oldState).Clone(); Invalidate(); foreach (string propertyName in changed) { OnPropertyChanged(propertyName); } }
internal static unsafe extern Result vkEnumerateInstanceLayerProperties(uint* propertyCount, LayerProperties* properties);
internal static unsafe void EnumerateInstanceLayerProperties(ref uint propertyCount, LayerProperties* properties) { fixed (uint* __propertyCount__ = &propertyCount) { vkEnumerateInstanceLayerProperties(__propertyCount__, properties).CheckError(); } }
internal unsafe void EnumerateDeviceLayerProperties(ref uint propertyCount, LayerProperties* properties) { fixed (uint* __propertyCount__ = &propertyCount) { vkEnumerateDeviceLayerProperties(this, __propertyCount__, properties).CheckError(); } }
internal static unsafe extern Result vkEnumerateDeviceLayerProperties(PhysicalDevice physicalDevice, uint* propertyCount, LayerProperties* properties);