Skip to content

Commit

Permalink
make interfaces public
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyi98 committed Oct 28, 2023
1 parent e166887 commit 829d8c6
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion src/interface_application.v
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/interface_build.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ui

interface WidgetBuild {
pub interface WidgetBuild {
mut:
id string
ui &UI
Expand Down
2 changes: 1 addition & 1 deletion src/interface_clipping.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ui

interface ClippingWidget {
pub interface ClippingWidget {
mut:
clipping bool
width int
Expand Down
4 changes: 2 additions & 2 deletions src/interface_drag_drop.v
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module ui
import time
import gg

interface Draggable {
pub interface Draggable {
id string
x int
y int
Expand Down Expand Up @@ -152,7 +152,7 @@ fn drag_child_dropped(mut window Window) {

// DropZone

interface DropZone {
pub interface DropZone {
ui &UI
id string
size() (int, int)
Expand Down
2 changes: 1 addition & 1 deletion src/interface_draw_device.v
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion src/interface_focusable.v
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module ui
// * methods for Window
// * methods for Layout interface

interface Focusable {
pub interface Focusable {
ui &UI
mut:
id string
Expand Down
2 changes: 1 addition & 1 deletion src/interface_mouse_enter_leave.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ui

interface EnterLeaveWidget {
pub interface EnterLeaveWidget {
mut:
id string
mouse_enter(e &MouseMoveEvent)
Expand Down
2 changes: 1 addition & 1 deletion src/interface_scrollable.v
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pub enum ScrollViewPart {

type ScrollViewChangedFn = fn (sw ScrollableWidget)

interface ScrollableWidget {
pub interface ScrollableWidget {
ClippingWidget
mut:
has_scrollview bool
Expand Down
2 changes: 1 addition & 1 deletion src/interface_themestyle.v
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module ui

interface WidgetThemeStyle {
pub interface WidgetThemeStyle {
id string
mut:
theme_style string
Expand Down

0 comments on commit 829d8c6

Please sign in to comment.