C# 클래스 CatEye.StageOperationParametersWidget

상속: Gtk.Bin, IStageOperationParametersEditor
파일 보기 프로젝트 열기: bigfatbrowncat/CatEye 1 사용 예제들

공개 메소드들

메소드 설명
AnalyzeImage ( IBitmapCore image ) : void

Handles that the image is changed. Should be called from the outside. Override it to do some recalculations.

DrawEditor ( IBitmapView view ) : void

Adds editor modifications to picture. For example, some handlers to change parameters graphically, the crop frame and so on.

ReportMouseButton ( int x, int y, int width, int height, uint button_id, bool is_down ) : bool

Handles mouse button state change i.e. the user pushed or released the button. Base method should not be called when overridden.

ReportMousePosition ( int x, int y, int width, int height ) : bool

Handles mouse position change. Base method should not be called when overridden.

StageOperationParametersWidget ( StageOperationParameters parameters ) : System

보호된 메소드들

메소드 설명
EndChangingParameters ( ) : void

Should be called after changing Parameters properties from Widget UI.

Used to prevent calling HandleParametersChangedBySomeoneElse() handler.

HandleParametersChangedNotByUI ( ) : void To avoid calling of this handler when the class changes the parameter by itself, you should enclose changing operators with StartChangingParameters() and EndChangingParameters() calls. StartChangingParameters(); ((SomeChildClassOfParameters)Parameters).SomeProperty = some_value; EndChangingParameters();
OnShown ( ) : void
OnUserModified ( ) : void

Raises the UserModified event. Should be called every time when the user changes something in the widget's UI.

StartChangingParameters ( ) : void

Should be called before changing Parameters properties from Widget UI.

Used to prevent calling HandleParametersChangedBySomeoneElse() handler. Be careful! Don't forget to call EndChangingParameters() after changing.

메소드 상세

AnalyzeImage() 공개 메소드

Handles that the image is changed. Should be called from the outside. Override it to do some recalculations.
public AnalyzeImage ( IBitmapCore image ) : void
image IBitmapCore
리턴 void

DrawEditor() 공개 메소드

Adds editor modifications to picture. For example, some handlers to change parameters graphically, the crop frame and so on.
public DrawEditor ( IBitmapView view ) : void
view IBitmapView
리턴 void

EndChangingParameters() 보호된 메소드

Should be called after changing Parameters properties from Widget UI.
Used to prevent calling HandleParametersChangedBySomeoneElse() handler.
protected EndChangingParameters ( ) : void
리턴 void

HandleParametersChangedNotByUI() 보호된 메소드

To avoid calling of this handler when the class changes the parameter by itself, you should enclose changing operators with StartChangingParameters() and EndChangingParameters() calls. StartChangingParameters(); ((SomeChildClassOfParameters)Parameters).SomeProperty = some_value; EndChangingParameters();
protected HandleParametersChangedNotByUI ( ) : void
리턴 void

OnShown() 보호된 메소드

protected OnShown ( ) : void
리턴 void

OnUserModified() 보호된 메소드

Raises the UserModified event. Should be called every time when the user changes something in the widget's UI.
protected OnUserModified ( ) : void
리턴 void

ReportMouseButton() 공개 메소드

Handles mouse button state change i.e. the user pushed or released the button. Base method should not be called when overridden.
public ReportMouseButton ( int x, int y, int width, int height, uint button_id, bool is_down ) : bool
x int /// X coordinate from the left top corner of the image ///
y int /// Y coordinate from the left top corner of the image ///
width int
height int
button_id uint /// The button which state is changed. ///
is_down bool /// true if the button is down now, false if it's up. ///
리턴 bool

ReportMousePosition() 공개 메소드

Handles mouse position change. Base method should not be called when overridden.
public ReportMousePosition ( int x, int y, int width, int height ) : bool
x int
y int
width int
height int
리턴 bool

StageOperationParametersWidget() 공개 메소드

public StageOperationParametersWidget ( StageOperationParameters parameters ) : System
parameters StageOperationParameters
리턴 System

StartChangingParameters() 보호된 메소드

Should be called before changing Parameters properties from Widget UI.
Used to prevent calling HandleParametersChangedBySomeoneElse() handler. Be careful! Don't forget to call EndChangingParameters() after changing.
protected StartChangingParameters ( ) : void
리턴 void