Using eepp as a complete beginner to c++ #23
Replies: 6 comments 18 replies
|
How to get an element from a layout? |
|
How does the Gridlayout function? |
Depends on how you want it to work, this is defined by the colummn-mode property.
<ScrollView id="GridView" layout_width="match_parent" layout_height="match_parent" touchdrag="true">
<GridLayout column-mode="size" row-mode="size" column-width="64dp" row-height="64dp" layout_width="match_parent" layout_height="wrap_content" id="gridlayout" />
</ScrollView>I usually use it with a ScrollView (a scroll view automatically adds scrollbars if content doesn't fit to its container). You can find an working implementation in UITextureViewer. Clarification, in the example you'll see the properties named without dashes |
|
How would I build for windows if I am on Linux? #if EE_PLATFORM == EE_PLATFORM_LINUX
//something linux specific here
#endif
#if EE_PLATFORM == EE_PLATFORM_WINDOWS
//something windows specific here
#endif |
You'll need to install mingw32/mingw64 and mingw64 libSDL2 package (I can't tell you exactly how it's called because I don't know what distro you're using). It's not always trivial if you're not experienced but it's doable.
Yes, it is. |


Uh oh!
There was an error while loading. Please reload this page.
A thread, mainly for me right now (as I lack much previous experience with cpp) to answer questions related to the library, it's usage etc.
Hopefully will be a useful resource for people, who want to start using the library in the future, but have issues.
All previous discussion in #22
Hopefully this is a good way of structuring resources or something idk
All reactions