C# 클래스 ComponentFactory.Krypton.Toolkit.ViewDrawButton

View element that can draw a button.
상속: ViewComposite
파일 보기 프로젝트 열기: ComponentFactory/Krypton 1 사용 예제들

공개 메소드들

메소드 설명
EvalTransparentPaint ( ViewContext context ) : bool

Evaluate the need for drawing transparent areas.

GetPreferredSize ( ViewLayoutContext context ) : Size

Discover the preferred size of the element.

Layout ( ViewLayoutContext context ) : void

Perform a layout of the elements.

Render ( RenderContext context ) : void

Perform a render of the elements.

SetCheckedPalettes ( IPaletteTriple paletteCheckedNormal, IPaletteTriple paletteCheckedTracking, IPaletteTriple paletteCheckedPressed ) : void

Update the source palettes for checked state drawing.

SetOrientation ( VisualOrientation borderBackOrient, VisualOrientation contentOrient ) : void

Set the orientation of the two button components.

SetPalettes ( IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed ) : void

Update the source palettes for non-checked drawing.

ToString ( ) : string

Obtains the String representation of this instance.

ViewDrawButton ( IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed, IPaletteMetric paletteMetric, IContentValues buttonValues, VisualOrientation orientation, bool useMnemonic ) : System

Initialize a new instance of the ViewDrawButton class.

ViewDrawButton ( IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed, IPaletteTriple paletteCheckedNormal, IPaletteTriple paletteCheckedTracking, IPaletteTriple paletteCheckedPressed, IPaletteMetric paletteMetric, IContentValues buttonValues, VisualOrientation orientation, bool useMnemonic ) : System

Initialize a new instance of the ViewDrawButton class.

보호된 메소드들

메소드 설명
CheckPaletteState ( ViewContext context ) : void

Check that the palette and state are correct.

비공개 메소드들

메소드 설명
UpdateDropDown ( ) : void

메소드 상세

CheckPaletteState() 보호된 메소드

Check that the palette and state are correct.
protected CheckPaletteState ( ViewContext context ) : void
context ViewContext Reference to the view context.
리턴 void

EvalTransparentPaint() 공개 메소드

Evaluate the need for drawing transparent areas.
public EvalTransparentPaint ( ViewContext context ) : bool
context ViewContext Evaluation context.
리턴 bool

GetPreferredSize() 공개 메소드

Discover the preferred size of the element.
public GetPreferredSize ( ViewLayoutContext context ) : Size
context ViewLayoutContext Layout context.
리턴 System.Drawing.Size

Layout() 공개 메소드

Perform a layout of the elements.
public Layout ( ViewLayoutContext context ) : void
context ViewLayoutContext Layout context.
리턴 void

Render() 공개 메소드

Perform a render of the elements.
public Render ( RenderContext context ) : void
context RenderContext Rendering context.
리턴 void

SetCheckedPalettes() 공개 메소드

Update the source palettes for checked state drawing.
public SetCheckedPalettes ( IPaletteTriple paletteCheckedNormal, IPaletteTriple paletteCheckedTracking, IPaletteTriple paletteCheckedPressed ) : void
paletteCheckedNormal IPaletteTriple Palette source for the normal checked state.
paletteCheckedTracking IPaletteTriple Palette source for the tracking checked state.
paletteCheckedPressed IPaletteTriple Palette source for the pressed checked state.
리턴 void

SetOrientation() 공개 메소드

Set the orientation of the two button components.
public SetOrientation ( VisualOrientation borderBackOrient, VisualOrientation contentOrient ) : void
borderBackOrient VisualOrientation Orientation of the button border and background..
contentOrient VisualOrientation Orientation of the button contents.
리턴 void

SetPalettes() 공개 메소드

Update the source palettes for non-checked drawing.
public SetPalettes ( IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed ) : void
paletteDisabled IPaletteTriple Palette source for the disabled state.
paletteNormal IPaletteTriple Palette source for the normal state.
paletteTracking IPaletteTriple Palette source for the tracking state.
palettePressed IPaletteTriple Palette source for the pressed state.
리턴 void

ToString() 공개 메소드

Obtains the String representation of this instance.
public ToString ( ) : string
리턴 string

ViewDrawButton() 공개 메소드

Initialize a new instance of the ViewDrawButton class.
public ViewDrawButton ( IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed, IPaletteMetric paletteMetric, IContentValues buttonValues, VisualOrientation orientation, bool useMnemonic ) : System
paletteDisabled IPaletteTriple Palette source for the disabled state.
paletteNormal IPaletteTriple Palette source for the normal state.
paletteTracking IPaletteTriple Palette source for the tracking state.
palettePressed IPaletteTriple Palette source for the pressed state.
paletteMetric IPaletteMetric Palette source for metric values.
buttonValues IContentValues Source for content values.
orientation VisualOrientation Visual orientation of the content.
useMnemonic bool Use mnemonics.
리턴 System

ViewDrawButton() 공개 메소드

Initialize a new instance of the ViewDrawButton class.
public ViewDrawButton ( IPaletteTriple paletteDisabled, IPaletteTriple paletteNormal, IPaletteTriple paletteTracking, IPaletteTriple palettePressed, IPaletteTriple paletteCheckedNormal, IPaletteTriple paletteCheckedTracking, IPaletteTriple paletteCheckedPressed, IPaletteMetric paletteMetric, IContentValues buttonValues, VisualOrientation orientation, bool useMnemonic ) : System
paletteDisabled IPaletteTriple Palette source for the disabled state.
paletteNormal IPaletteTriple Palette source for the normal state.
paletteTracking IPaletteTriple Palette source for the tracking state.
palettePressed IPaletteTriple Palette source for the pressed state.
paletteCheckedNormal IPaletteTriple Palette source for the normal checked state.
paletteCheckedTracking IPaletteTriple Palette source for the tracking checked state.
paletteCheckedPressed IPaletteTriple Palette source for the pressed checked state.
paletteMetric IPaletteMetric Palette source for metric values.
buttonValues IContentValues Source for content values.
orientation VisualOrientation Visual orientation of the content.
useMnemonic bool Use mnemonics.
리턴 System