ToolButton Class

Definition

Line 806 of System.Windows/ToolBar.cm

Inheritance

Constructors & Destructor

public nothrow ToolButton(const String<char>& toolBitmapName)
public nothrow ToolButton(const String<char>& toolBitmapName_, Style style_)

Member Functions

public nothrow Event<ClickEventHandler, EmptyEventArgs>& ClickEvent() const
protected nothrow Padding DefaultPadding()
public nothrow void Disable()
internal void DoClick()
public override void Draw(Graphics& graphics, const Point& location)
protected virtual void DrawContent(Graphics& graphics, const Point& location)
private void DrawNormalOrDisabled(Graphics& graphics, const Point& location)
private void DrawPressed(Graphics& graphics, const Point& location)
private void DrawToolBitmap(Graphics& graphics, const Point& location)
public nothrow void Enable()
public nothrow Padding GetPadding() const
public inline nothrow State GetState() const
public inline nothrow Style GetStyle() const
public inline nothrow const String<char>& GetToolTip() const
private nothrow void Invalidate()
public nothrow Event<MouseEventHandler, MouseEventArgs>& MouseDownEvent() const
internal void MouseDownInternal(MouseEventArgs& args)
public nothrow Event<MouseEnterEventHandler, EmptyEventArgs>& MouseEnterEvent() const
internal void MouseEnterInternal()
internal void MouseHoverInternal()
public nothrow Event<MouseLeaveEventHandler, EmptyEventArgs>& MouseLeaveEvent() const
internal void MouseLeaveInternal()
public nothrow Event<MouseEventHandler, MouseEventArgs>& MouseMoveEvent() const
internal void MouseMoveInternal(MouseEventArgs& args)
public nothrow Event<MouseEventHandler, MouseEventArgs>& MouseUpEvent() const
internal void MouseUpInternal(MouseEventArgs& args)
protected virtual void OnClick()
protected virtual void OnMouseDown(MouseEventArgs& args)
protected virtual void OnMouseEnter()
protected virtual void OnMouseLeave()
protected virtual void OnMouseMove(MouseEventArgs& args)
protected virtual void OnMouseUp(MouseEventArgs& args)
public void SetPadding(const Padding& padding_)
public void SetState(State state_)
internal nothrow void SetToolBitmaps(Bitmap* toolBitmap_, Bitmap* disabledToolBitmap_)
public nothrow void SetToolTip(const String<char>& toolTip_)
public nothrow void SetTransparentColor(const Color& transparentColor_)
public inline nothrow const String<char>& ToolBitmapName() const

Enumerated Types

public enum State
public enum Style

Member Variables

private Event<ClickEventHandler, EmptyEventArgs> clickEvent
private Bitmap* disabledToolBitmap
private Event<MouseEventHandler, MouseEventArgs> mouseDownEvent
private Event<MouseEnterEventHandler, EmptyEventArgs> mouseEnterEvent
private Event<MouseLeaveEventHandler, EmptyEventArgs> mouseLeaveEvent
private Event<MouseEventHandler, MouseEventArgs> mouseMoveEvent
private Event<MouseEventHandler, MouseEventArgs> mouseUpEvent
private Padding padding
private State state
private Style style
private Bitmap* toolBitmap
private String<char> toolBitmapName
private Size toolBitmapSize
private String<char> toolTip
private Color transparentColor

Constructor& Destructor Details

ToolButton Constructor

public nothrow ToolButton(const String<char>& toolBitmapName)

Definition
Line 821 of System.Windows/ToolBar.cm


ToolButton Constructor

public nothrow ToolButton(const String<char>& toolBitmapName_, Style style_)

Definition
Line 816 of System.Windows/ToolBar.cm


Member Function Details

ClickEvent Member Function

public nothrow Event<ClickEventHandler, EmptyEventArgs>& ClickEvent()

Definition
Line 986 of System.Windows/ToolBar.cm


DefaultPadding Member Function

protected nothrow Padding DefaultPadding()

Definition
Line 851 of System.Windows/ToolBar.cm


Disable Member Function

public nothrow void Disable()

Definition
Line 836 of System.Windows/ToolBar.cm


DoClick Member Function

internal void DoClick()

Definition
Line 977 of System.Windows/ToolBar.cm


Draw Member Function

public override void Draw(Graphics& graphics, const Point& location)

Definition
Line 990 of System.Windows/ToolBar.cm


DrawContent Member Function

protected virtual void DrawContent(Graphics& graphics, const Point& location)

Definition
Line 1121 of System.Windows/ToolBar.cm


DrawNormalOrDisabled Member Function

private void DrawNormalOrDisabled(Graphics& graphics, const Point& location)

Definition
Line 1007 of System.Windows/ToolBar.cm


DrawPressed Member Function

private void DrawPressed(Graphics& graphics, const Point& location)

Definition
Line 1076 of System.Windows/ToolBar.cm


DrawToolBitmap Member Function

private void DrawToolBitmap(Graphics& graphics, const Point& location)

Definition
Line 1125 of System.Windows/ToolBar.cm


Enable Member Function

public nothrow void Enable()

Definition
Line 829 of System.Windows/ToolBar.cm


GetPadding Member Function

public nothrow Padding GetPadding()

Definition
Line 843 of System.Windows/ToolBar.cm


GetState Member Function

public inline nothrow State GetState()

Definition
Line 855 of System.Windows/ToolBar.cm


GetStyle Member Function

public inline nothrow Style GetStyle()

Definition
Line 825 of System.Windows/ToolBar.cm


GetToolTip Member Function

public inline nothrow const String<char>& GetToolTip()

Definition
Line 896 of System.Windows/ToolBar.cm


Invalidate Member Function

private nothrow void Invalidate()

Definition
Line 1157 of System.Windows/ToolBar.cm


MouseDownEvent Member Function

public nothrow Event<MouseEventHandler, MouseEventArgs>& MouseDownEvent()

Definition
Line 961 of System.Windows/ToolBar.cm


MouseDownInternal Member Function

internal void MouseDownInternal(MouseEventArgs& args)

Definition
Line 953 of System.Windows/ToolBar.cm


MouseEnterEvent Member Function

public nothrow Event<MouseEnterEventHandler, EmptyEventArgs>& MouseEnterEvent()

Definition
Line 920 of System.Windows/ToolBar.cm


MouseEnterInternal Member Function

internal void MouseEnterInternal()

Definition
Line 904 of System.Windows/ToolBar.cm


MouseHoverInternal Member Function

internal void MouseHoverInternal()

Definition
Line 908 of System.Windows/ToolBar.cm


MouseLeaveEvent Member Function

public nothrow Event<MouseLeaveEventHandler, EmptyEventArgs>& MouseLeaveEvent()

Definition
Line 937 of System.Windows/ToolBar.cm


MouseLeaveInternal Member Function

internal void MouseLeaveInternal()

Definition
Line 924 of System.Windows/ToolBar.cm


MouseMoveEvent Member Function

public nothrow Event<MouseEventHandler, MouseEventArgs>& MouseMoveEvent()

Definition
Line 949 of System.Windows/ToolBar.cm


MouseMoveInternal Member Function

internal void MouseMoveInternal(MouseEventArgs& args)

Definition
Line 941 of System.Windows/ToolBar.cm


MouseUpEvent Member Function

public nothrow Event<MouseEventHandler, MouseEventArgs>& MouseUpEvent()

Definition
Line 973 of System.Windows/ToolBar.cm


MouseUpInternal Member Function

internal void MouseUpInternal(MouseEventArgs& args)

Definition
Line 965 of System.Windows/ToolBar.cm


OnClick Member Function

protected virtual void OnClick()

Definition
Line 981 of System.Windows/ToolBar.cm


OnMouseDown Member Function

protected virtual void OnMouseDown(MouseEventArgs& args)

Definition
Line 957 of System.Windows/ToolBar.cm


OnMouseEnter Member Function

protected virtual void OnMouseEnter()

Definition
Line 916 of System.Windows/ToolBar.cm


OnMouseLeave Member Function

protected virtual void OnMouseLeave()

Definition
Line 933 of System.Windows/ToolBar.cm


OnMouseMove Member Function

protected virtual void OnMouseMove(MouseEventArgs& args)

Definition
Line 945 of System.Windows/ToolBar.cm


OnMouseUp Member Function

protected virtual void OnMouseUp(MouseEventArgs& args)

Definition
Line 969 of System.Windows/ToolBar.cm


SetPadding Member Function

public void SetPadding(const Padding& padding_)

Definition
Line 847 of System.Windows/ToolBar.cm


SetState Member Function

public void SetState(State state_)

Definition
Line 859 of System.Windows/ToolBar.cm


SetToolBitmaps Member Function

internal nothrow void SetToolBitmaps(Bitmap* toolBitmap_, Bitmap* disabledToolBitmap_)

Definition
Line 1147 of System.Windows/ToolBar.cm


SetToolTip Member Function

public nothrow void SetToolTip(const String<char>& toolTip_)

Definition
Line 888 of System.Windows/ToolBar.cm


SetTransparentColor Member Function

public nothrow void SetTransparentColor(const Color& transparentColor_)

Definition
Line 900 of System.Windows/ToolBar.cm


ToolBitmapName Member Function

public inline nothrow const String<char>& ToolBitmapName()

Definition
Line 1143 of System.Windows/ToolBar.cm