Skip to content

gg.Context.resize() not implemented #24013

@mike-ward

Description

@mike-ward

Describe the bug

// Resize the context's Window
pub fn (mut ctx Context) resize(width int, height int) {
    ctx.width = width
    ctx.height = height
}

From the code above it appears that resize() in not fully implemented.

Reproduction Steps

Call context.resize(w, h)

Expected Behavior

Resize the window to the specified size.

Current Behavior

Sets the window size to the correct values but does not actually resize the window

Possible Solution

No response

Additional Information/Context

No response

V version

V 0.4.10 20d7d97

Environment details (OS name and version, etc.)

V full version V 0.4.10 da3112e.20d7d97
OS macos, macOS, 15.3.2, 24D81
Processor 8 cpus, 64bit, little endian, Apple M2
Memory 0.15GB/8GB
V executable /Users/mike/Documents/github/v/v
V last modified time 2025-03-22 14:46:24
V home dir OK, value: /Users/mike/Documents/github/v
VMODULES OK, value: /Users/mike/.vmodules
VTMP OK, value: /tmp/v_501
Current working dir OK, value: /Users/mike/Documents/github/gui/src/examples
env VFLAGS "-path /Users/mike/Documents/github/gui/src
Git version git version 2.49.0
V git status weekly.2025.10-141-g20d7d975 (4 commit(s) behind V master)
.git/config present true
cc version Apple clang version 16.0.0 (clang-1600.0.26.6)
gcc version Apple clang version 16.0.0 (clang-1600.0.26.6)
clang version Apple clang version 16.0.0 (clang-1600.0.26.6)
tcc version tcc version 0.9.28rc 2024-02-05 HEAD@105d70f7 (AArch64 Darwin)
tcc git status thirdparty-macos-arm64 c8df4e27
emcc version N/A
glibc version N/A

Note

You can use the 👍 reaction to increase the issue's priority for developers.

Please note that only the 👍 reaction to the issue itself counts as a vote.
Other reactions and those to comments will not be taken into account.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugThis tag is applied to issues which reports bugs.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions