public Scrollbar(Scrollbar copy) : base(copy) { mThumb = new ScrollbarThumb(copy.mThumb); mTrough = new PushButton(copy.mTrough); mFrame = copy.mFrame; mPathToFrame = copy.mPathToFrame; }
public Scrollbar ( string name, IGuiStyle troughStyle, IGuiStyle thumbStyle, IGuiSize size, string pathToFrame ) : base(name, troughStyle, size, new Rangef(0.0f, 1.0f), 0.0f) { if (String.IsNullOrEmpty(pathToFrame)) { throw new ArgumentNullException("pathToFrame"); } mPathToFrame = pathToFrame; mThumb = new ScrollbarThumb("ScrollThumb", thumbStyle, new ProceduralSize(SizeThumb), this); mThumb.Parent = this; mTrough = new PushButton("ScrollTrough", size, troughStyle); mTrough.Parent = this; }
public ScrollbarThumb(ScrollbarThumb copy) : base(copy.Name, copy.GuiSize, copy.Style) { mScrollbar = copy.mScrollbar; }