Source/BubbleBar.cs
(开头部分) 58KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using DevComponents.UI.ContentManager;
using System.Drawing.Drawing2D;
using System.Drawing.Text;
namespace DevComponents.DotNetBar
{
/// <summary>
/// Represents the toolbar control with the magnifying (bubbling) buttons.
/// </summary>
[ToolboxItem(true),DefaultEvent("ButtonClick"),System.Runtime.InteropServices.ComVisible(false),Designer(typeof(Design.BubbleBarDesigner))]
public class BubbleBar:Control, ISupportInitialize, IMessageHandlerClient
{
#region Private Variables
const float _falloffFactor=.3f;
private System.Windows.Forms.ImageList m_Images;
private System.Windows.Forms.ImageList m_ImagesLarge=null;
private bool m_ShowTooltips=true;
private eOrientation m_Orientation=eOrientation.Horizontal;
private System.Drawing.Size m_ImageSizeLarge=new System.Drawing.Size(48,48);
private System.Drawing.Size m_ImageSizeNormal=new System.Drawing.Size(24,24);
private BubbleContentManager m_ContentManager= new BubbleContentManager();
private BubbleButtonLayoutManager m_ButtonLayoutManager=new BubbleButtonLayoutManager();
private BubbleButton m_MouseOverButton=null;
private BubbleButton m_MouseDownButton=null;
private int m_AnimationTime=100;
private BubbleButtonDisplayInfo m_BubbleButtonDisplayInfo=new BubbleButtonDisplayInfo();
private bool m_AntiAlias=true;
private BubbleBarOverlay m_Overlay=null;
private bool m_Animation=false;
private bool m_AnimationEnabled=true;
private bool m_IgnoreMouseMove=false;
private bool m_EnableOverlay=true;
private eBubbleButtonAlignment m_ButtonAlignment=eBubbleButtonAlignment.Bottom;
private int m_ButtonMargin=6;
private Font m_TooltipFont=null;
private int m_MagTooltipIncrease=0;
private Rectangle m_ButtonBounds=Rectangle.Empty;
private BubbleBarTab m_SelectedTab=null;
private BubbleBarTab m_MouseOverTab=null;
private TabColors m_SelectedTabColors=new TabColors();
private TabColors m_MouseOverTabColors=new TabColors();
private BubbleBarTabCollection m_Tabs=null;
private bool m_TabsVisible=true;
private Rectangle m_TabsBounds=Rectangle.Empty;
private SimpleTabLayoutManager m_TabLayoutManager=null;
private SimpleTabDisplay m_TabDisplay=null;
private SerialContentLayoutManager m_TabContentManager=null;
private Point m_LastMouseOverPosition=Point.Empty;
private BubbleButton m_IgnoreButtonMouseMove=null;
private ElementStyle m_ButtonBackAreaStyle=new ElementStyle();
private ElementStyle m_BackgroundStyle=new ElementStyle();
private bool m_ButtonBackgroundStretch=true;
private bool m_FilterInstalled=false;
private bool m_HasShortcuts=false;
private Color m_TooltipTextColor = Color.White;
后面还有 1961 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。