Searched refs:dropdown_dimension (Results 1 – 2 of 2) sorted by relevance
616 int dd_width = NWidgetLeaf::dropdown_dimension.width; in DrawButtonDropdown()617 int dd_height = NWidgetLeaf::dropdown_dimension.height; in DrawButtonDropdown()2299 dropdown_dimension.width = dropdown_dimension.height = 0; in InvalidateDimensionCache()2308 Dimension NWidgetLeaf::dropdown_dimension = {0, 0}; member in NWidgetLeaf2577 if (NWidgetLeaf::dropdown_dimension.width == 0) { in SetupSmallestSize()2578 NWidgetLeaf::dropdown_dimension = GetSpriteSize(SPR_ARROW_DOWN); in SetupSmallestSize()2579 NWidgetLeaf::dropdown_dimension.width += WD_DROPDOWNTEXT_LEFT + WD_DROPDOWNTEXT_RIGHT; in SetupSmallestSize()2580 NWidgetLeaf::dropdown_dimension.height += WD_DROPDOWNTEXT_TOP + WD_DROPDOWNTEXT_BOTTOM; in SetupSmallestSize()2586 d2.height = std::max(d2.height, NWidgetLeaf::dropdown_dimension.height) + extra.height; in SetupSmallestSize()2744 int button_width = this->pos_x + this->current_x - NWidgetLeaf::dropdown_dimension.width; in ButtonHit()[all …]
826 static Dimension dropdown_dimension; ///< Cached size of a dropdown widget. variable