Subversion Repositories Kolibri OS

Rev

Rev 7262 | Rev 7422 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7262 Rev 7271
Line 1... Line 1...
1
void PipetteTool_activate() {
1
void PipetteTool_activate() {
2
	SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE);
2
	SetEventMask(EVM_REDRAW+EVM_KEY+EVM_BUTTON+EVM_MOUSE);
3
}
3
}
Line -... Line 4...
-
 
4
 
-
 
5
void PipetteTool_onKeyEvent() {
-
 
6
	if (key_scancode == SCAN_CODE_ESC) setCurrentTool(previousTool);
-
 
7
}
4
 
8
 
5
void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) {
9
void PipetteTool_onMouseEvent(int mouseX, int mouseY, int lkm, int pkm) {
6
	if (!canvas.hovered()) return; //TODO: option "Restrict pipette to canvas area"
10
	if (!canvas.hovered()) return; //TODO: option "Restrict pipette to canvas area"
7
	tool_color = GetPixelUnderMouse();
11
	tool_color = GetPixelUnderMouse();