fix: store button click locations as signed values
This commit is contained in:
parent
e6cc1c35f9
commit
25a719382f
22 changed files with 36 additions and 36 deletions
|
|
@ -31,7 +31,7 @@ pub fn Options(context: type) type {
|
|||
pub const ButtonClickHandler = Button.Options(*MenuType).ClickHandler;
|
||||
pub const ClickHandler = *const fn (ctx: context, button: *ButtonType) void;
|
||||
pub fn do_nothing(_: context, _: *ButtonType) void {}
|
||||
pub fn do_nothing_click(_: **MenuType, _: *ButtonType, _: Button.Cursor) void {}
|
||||
pub fn do_nothing_click(_: **MenuType, _: *ButtonType, _: Widget.Pos) void {}
|
||||
|
||||
pub fn on_render_default(_: context, button: *ButtonType, theme: *const Widget.Theme, selected: bool) bool {
|
||||
const style_base = theme.editor;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue