OnMeasure() called auto?

About Monkey 2 Forums Monkey 2 Programming Help OnMeasure() called auto?

This topic contains 2 replies, has 2 voices, and was last updated by  c0d3r9 9 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15080

    c0d3r9
    Participant

    I´m relativ new and so some ? are in my mind.
    Most questions i can answer myself with code reading.
    This code:

    Returns the given virtual size.
    The question is that i don´t know what happens now.
    Is Onmeasure called automatic and sets the virtual size?
    I think so but its hard to find for every question the answer in the reference.
    “Called during layout to measure the view.”  sounds like only a return.(and yes, i know its a predefined vec2i)

    #15083

    abakobo
    Participant

    Yes it’s automatic.

    The layout type is defined using Layout="layouttype" in your Window constructor.

    This topic discuss about virtual resolution and gives a nice example. http://monkeycoder.co.nz/forums/topic/layout-questions/

    #15086

    c0d3r9
    Participant

    Thank you.
    Atm i only need a virtual size i.e. 800×600 in a bigger window with same aspect ratio of course.

    Bit by bit, I understand more of Monkey2.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.