Lines Matching refs:style
264 Style* style = buttonStyles_[state_];
265 return GetRelativeRect().GetWidth() - (style->paddingLeft_ + style->paddingRight_) -
266 (style->borderWidth_ * 2); /* 2: left and right border */
278 Style* style = buttonStyles_[state_];
279 return GetRelativeRect().GetHeight() - (style->paddingTop_ + style->paddingBottom_) -
280 (style->borderWidth_ * 2); /* 2: top and bottom border */
319 Style* style = buttonStyles_[state_];
320 contentRect.SetX(GetRect().GetX() + style->paddingLeft_ + style->borderWidth_);
321 contentRect.SetY(GetRect().GetY() + style->paddingTop_ + style->borderWidth_);
330 Style* style = buttonStyles_[state_];
331 contentRect.SetX(GetOrigRect().GetX() + style->paddingLeft_ + style->borderWidth_);
332 contentRect.SetY(GetOrigRect().GetY() + style->paddingTop_ + style->borderWidth_);
339 * @brief Obtains the value of a style.
341 * @param key Indicates the key of the style.
342 * @return Returns the value of the style.
349 * @brief Sets the view style.
350 * @param style Indicates the view style.
354 void SetStyle(Style& style) override
356 UIView::SetStyle(style);
360 * @brief Sets a style.
362 * @param key Indicates the key of the style to set.
370 * @brief Obtains the style of a button in a specific state.
372 * @param key Indicates the key of the style.
374 * @return Returns the style of the button in the specific state.
381 * @brief Sets the style for a button in a specific state.
383 * @param key Indicates the key of the style to set.
409 * will change the style of this button, but not its state.
427 * @brief Obtains the value of a style.