//public static System.Drawing.Icon GetHoneybeeIcon(System.Drawing.Size sizeInPixels) //{ // if (_icon == null) // { // using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Honeybee.UI.EmbeddedResources.honeybee.ico")) // { // if (stream != null) _icon = new System.Drawing.Icon(stream, sizeInPixels); // } // } // return _icon; //} public static Eto.Drawing.Icon GetHoneybeeIcon() { if (_etoicon == null) { // var rs = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceNames(); using (var stream = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("Honeybee.UI.EmbeddedResources.honeybee.ico")) { if (stream != null) { _etoicon = new Eto.Drawing.Icon(stream); } } } return(_etoicon); }
public ButtonAction(string id, string text, Icon icon, EventHandler<EventArgs> activated) : base(id, text, icon, activated) { }
public static ButtonAction AddButton(this ActionCollection actions, string id, string text, Icon icon, EventHandler<EventArgs> activated) { ButtonAction action = new ButtonAction(id, text, icon, activated); actions.Add(action); return action; }
public RadioAction(RadioAction controller, string id, string text, Icon icon, EventHandler<EventArgs> activated) : base(id, text, icon, activated) { this.Controller = controller; }
public BaseAction(string id, string text, Icon icon, EventHandler<EventArgs> activated) : this(id, text, activated) { this.Icon = icon; }
/// <summary> /// Draws the <paramref name="icon"/> at the specified location and size /// </summary> /// <param name="icon">Icon to draw</param> /// <param name="x">X co-ordinate of the location to draw the icon</param> /// <param name="y">Y co-ordinate of the location to draw the icon</param> /// <param name="width">Destination width of the icon</param> /// <param name="height">Destination height of the icon</param> public void DrawIcon (Icon icon, int x, int y, int width, int height) { handler.DrawIcon (icon, x, y, width, height); }
/// <summary> /// Draws the <paramref name="icon"/> at the specified location and size /// </summary> /// <param name="icon">Icon to draw</param> /// <param name="rectangle">Where to draw the icon</param> public void DrawIcon (Icon icon, Rectangle rectangle) { handler.DrawIcon (icon, rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height); }
public void DrawIcon (Icon icon, float x, float y, float width, float height) { Handler.DrawImage (icon, x, y, width, height); }