Re: GTKD - Get the size of the context

2015-12-26 Thread TheDGuy via Digitalmars-d-learn
Thank you very much for your answer! I really appreciate it because it is kind of hard to find explanations for GTKD. But know i face a strange problem: this(Vector3D camera, Context cr, Widget widget){ this.camera = camera; this.cr = cr;

Re: GTKD - Get the size of the context

2015-12-26 Thread Bubbasaur via Digitalmars-d-learn
On Saturday, 26 December 2015 at 13:28:31 UTC, TheDGuy wrote: I get the error "value of 'this' is not known at compile time" which refers to the line where i create the int-array "space" Why is it not possible to use it there? Just for future newcomers, the answer for the above was given

Re: GTKD - Get the size of the context

2015-12-26 Thread Mike Wey via Digitalmars-d-learn
On 12/25/2015 11:55 AM, TheDGuy wrote: Hello, i want to draw something to a GTKD context and i need the size of the context in pixel but i don't know how i can get the pixel height and width? Any ideas? With best regards You could try getting the size of the widget the context is referring

GTKD - Get the size of the context

2015-12-25 Thread TheDGuy via Digitalmars-d-learn
Hello, i want to draw something to a GTKD context and i need the size of the context in pixel but i don't know how i can get the pixel height and width? Any ideas? With best regards