Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SClang: GUI: Add thumbSize option for Slider2D #6270

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

JordanHendersonMusic
Copy link
Contributor

@JordanHendersonMusic JordanHendersonMusic commented Apr 24, 2024

Purpose and Motivation

Simply adds another q_property to QcSlider2D.h

Closes #724.

Some code to demonstrate this change.

Window().layout_(
	VLayout(
		~a = Slider2D().action_({
			~b.thumbSize = ~a.x.linlin(0, 1, 5, 50)
		}),
		~b = Slider2D().action_({
			~a.thumbSize = ~b.x.linlin(0, 1, 5, 50)
		})
	)
)
.front

Types of changes

  • Documentation
  • New feature

To-do list

  • Code is tested
  • All tests are passing
  • Updated documentation
  • This PR is ready for review

@JordanHendersonMusic JordanHendersonMusic added the comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead label Apr 24, 2024
Simply adds another q_property to QcSlider2D.h

Closes supercollider#724.

Some code to demonstrate this change.
```
Window().layout_(
	VLayout(
		~a = Slider2D().action_({
			~b.thumbSize = ~a.x.linlin(0, 1, 5, 50)
		}),
		~b = Slider2D().action_({
			~a.thumbSize = ~b.x.linlin(0, 1, 5, 50)
		})
	)
)
.front
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: Qt GUI sclang Qt components -- for IDE tickets, use "env: SCIDE" instead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

thumbSize for Slider2d
2 participants