mirror of
https://github.com/gnosygnu/xowa.git
synced 2026-03-02 03:49:30 +00:00
Embeddable: Create core dbs in proper subdirectory
This commit is contained in:
@@ -13,3 +13,40 @@ The terms of each license can be found in the source code repository:
|
||||
GPLv3 License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-GPLv3.txt
|
||||
Apache License: https://github.com/gnosygnu/xowa/blob/master/LICENSE-APACHE2.txt
|
||||
*/
|
||||
package gplx.gfui.ipts; import gplx.*; import gplx.gfui.*;
|
||||
public class IptMouseBtn_ {
|
||||
public static final int
|
||||
Tid_none = 0x00000000
|
||||
, Tid_left = 0x00100000
|
||||
, Tid_right = 0x00200000
|
||||
, Tid_middle = 0x00400000
|
||||
, Tid_x1 = 0x00400000
|
||||
, Tid_x2 = 0x01000000
|
||||
;
|
||||
public static final IptMouseBtn // REF: System.Windows.Forms.MouseButtons
|
||||
None = new IptMouseBtn(Tid_none , "mouse.none")
|
||||
, Left = new IptMouseBtn(Tid_left , "mouse.left")
|
||||
, Right = new IptMouseBtn(Tid_right , "mouse.right")
|
||||
, Middle = new IptMouseBtn(Tid_middle , "mouse.middle")
|
||||
, X1 = new IptMouseBtn(Tid_x1 , "mouse.x1")
|
||||
, X2 = new IptMouseBtn(Tid_x2 , "mouse.x2")
|
||||
;
|
||||
public static IptMouseBtn parse(String raw) {
|
||||
if (String_.Eq(raw, None.Key())) return None;
|
||||
else if (String_.Eq(raw, Left.Key())) return Left;
|
||||
else if (String_.Eq(raw, Right.Key())) return Right;
|
||||
else if (String_.Eq(raw, Middle.Key())) return Middle;
|
||||
else if (String_.Eq(raw, X1.Key())) return X1;
|
||||
else if (String_.Eq(raw, X2.Key())) return X2;
|
||||
else throw Err_.new_parse_type(IptMouseBtn.class, raw);
|
||||
}
|
||||
public static IptMouseBtn api_(int val) {
|
||||
if (val == None.Val()) return None;
|
||||
else if (val == Left.Val()) return Left;
|
||||
else if (val == Right.Val()) return Right;
|
||||
else if (val == Middle.Val()) return Middle;
|
||||
else if (val == X1.Val()) return X1;
|
||||
else if (val == X2.Val()) return X2;
|
||||
else throw Err_.new_unhandled(val);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user