mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-12 17:19:28 +01:00
Add ListView, make FrameLayout do something
This commit is contained in:
1 parent
2143b5b608
commit
bc2a18eeee
8 files changed
+120
-24
No files matched your search
+12
-1
@@ -154,8 +154,19 @@ Item::Item(LayoutParams *layoutParams) : InertView(layoutParams) {
|
||||
layoutParams_->height = ITEM_HEIGHT;
|
||||
}
|
||||
|
||||
void Item::GetContentDimensions(const UIContext &dc, float &w, float &h) const {
|
||||
w = 0.0f;
|
||||
h = 0.0f;
|
||||
}
|
||||
|
||||
void ClickableItem::GetContentDimensions(const UIContext &dc, float &w, float &h) const {
|
||||
w = 0.0f;
|
||||
h = 0.0f;
|
||||
}
|
||||
|
||||
ClickableItem::ClickableItem(LayoutParams *layoutParams) : Clickable(layoutParams) {
|
||||
layoutParams_->width = FILL_PARENT;
|
||||
if (layoutParams_->width == WRAP_CONTENT)
|
||||
layoutParams_->width = FILL_PARENT;
|
||||
layoutParams_->height = ITEM_HEIGHT;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user