From 829d8c60ce565c17ba8cae061e47eab487c8cba5 Mon Sep 17 00:00:00 2001 From: yuyi Date: Sun, 29 Oct 2023 00:10:25 +0800 Subject: [PATCH] make interfaces public --- src/interface_application.v | 2 +- src/interface_build.v | 2 +- src/interface_clipping.v | 2 +- src/interface_drag_drop.v | 4 ++-- src/interface_draw_device.v | 2 +- src/interface_focusable.v | 2 +- src/interface_mouse_enter_leave.v | 2 +- src/interface_scrollable.v | 2 +- src/interface_themestyle.v | 2 +- 9 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/interface_application.v b/src/interface_application.v index 70a36d38..f829538d 100644 --- a/src/interface_application.v +++ b/src/interface_application.v @@ -87,7 +87,7 @@ pub fn (mut app Application) layout() Widget { // Specific to external gg application -interface GGApplication { +pub interface GGApplication { mut: gg &gg.Context bounds gg.Rect // bounding box where to draw diff --git a/src/interface_build.v b/src/interface_build.v index f4814671..1ffcdc4d 100644 --- a/src/interface_build.v +++ b/src/interface_build.v @@ -1,6 +1,6 @@ module ui -interface WidgetBuild { +pub interface WidgetBuild { mut: id string ui &UI diff --git a/src/interface_clipping.v b/src/interface_clipping.v index 84024dda..5f87cdb0 100644 --- a/src/interface_clipping.v +++ b/src/interface_clipping.v @@ -1,6 +1,6 @@ module ui -interface ClippingWidget { +pub interface ClippingWidget { mut: clipping bool width int diff --git a/src/interface_drag_drop.v b/src/interface_drag_drop.v index a453add1..58a96eec 100644 --- a/src/interface_drag_drop.v +++ b/src/interface_drag_drop.v @@ -3,7 +3,7 @@ module ui import time import gg -interface Draggable { +pub interface Draggable { id string x int y int @@ -152,7 +152,7 @@ fn drag_child_dropped(mut window Window) { // DropZone -interface DropZone { +pub interface DropZone { ui &UI id string size() (int, int) diff --git a/src/interface_draw_device.v b/src/interface_draw_device.v index 7cd96ccf..a09212db 100644 --- a/src/interface_draw_device.v +++ b/src/interface_draw_device.v @@ -3,7 +3,7 @@ module ui import gx import gg -interface DrawDevice { +pub interface DrawDevice { // text style has_text_style() bool set_text_style(font_name string, font_path string, size int, color gx.Color, align int, vertical_align int) diff --git a/src/interface_focusable.v b/src/interface_focusable.v index a2c86664..8fcbb14a 100644 --- a/src/interface_focusable.v +++ b/src/interface_focusable.v @@ -6,7 +6,7 @@ module ui // * methods for Window // * methods for Layout interface -interface Focusable { +pub interface Focusable { ui &UI mut: id string diff --git a/src/interface_mouse_enter_leave.v b/src/interface_mouse_enter_leave.v index fd62d01b..6cd0f4ae 100644 --- a/src/interface_mouse_enter_leave.v +++ b/src/interface_mouse_enter_leave.v @@ -1,6 +1,6 @@ module ui -interface EnterLeaveWidget { +pub interface EnterLeaveWidget { mut: id string mouse_enter(e &MouseMoveEvent) diff --git a/src/interface_scrollable.v b/src/interface_scrollable.v index 89a377f7..9f45a1ba 100644 --- a/src/interface_scrollable.v +++ b/src/interface_scrollable.v @@ -49,7 +49,7 @@ pub enum ScrollViewPart { type ScrollViewChangedFn = fn (sw ScrollableWidget) -interface ScrollableWidget { +pub interface ScrollableWidget { ClippingWidget mut: has_scrollview bool diff --git a/src/interface_themestyle.v b/src/interface_themestyle.v index 9561d84d..d6db0773 100644 --- a/src/interface_themestyle.v +++ b/src/interface_themestyle.v @@ -1,6 +1,6 @@ module ui -interface WidgetThemeStyle { +pub interface WidgetThemeStyle { id string mut: theme_style string