Hide more Widget member variables.

This commit is contained in:
Jared Boone 2016-02-07 10:40:06 -08:00
parent 8f8a9f2b63
commit 3a709c51c4
2 changed files with 4 additions and 4 deletions

View File

@ -175,7 +175,7 @@ SystemView::SystemView(
) : View { parent_rect }, ) : View { parent_rect },
context_(context) context_(context)
{ {
style_ = &style_default; set_style(&style_default);
constexpr ui::Dim status_view_height = 16; constexpr ui::Dim status_view_height = 16;

View File

@ -115,14 +115,14 @@ public:
void set_highlighted(const bool value); void set_highlighted(const bool value);
protected: protected:
void dirty_overlapping_children_in_rect(const Rect& child_rect);
private:
/* Widget rectangle relative to parent pos(). */ /* Widget rectangle relative to parent pos(). */
Rect parent_rect; Rect parent_rect;
const Style* style_ { nullptr }; const Style* style_ { nullptr };
Widget* parent_ { nullptr }; Widget* parent_ { nullptr };
void dirty_overlapping_children_in_rect(const Rect& child_rect);
private:
struct flags_t { struct flags_t {
bool dirty : 1; // Widget content has changed. bool dirty : 1; // Widget content has changed.
bool hidden : 1; // Hide widget and children. bool hidden : 1; // Hide widget and children.