Skip to content

Commit

Permalink
libappfw|LabelWidget: Added method for querying the text alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Aug 25, 2015
1 parent f3d27f9 commit a11e922
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doomsday/sdk/libappfw/include/de/widgets/labelwidget.h
Expand Up @@ -145,6 +145,8 @@ class LIBAPPFW_PUBLIC LabelWidget : public GuiWidget, public AssetGroup

void setTextAlignment(ui::Alignment const &textAlign);

ui::Alignment textAlignment() const;

void setTextLineAlignment(ui::Alignment const &textLineAlign);

void setTextModulationColorf(Vector4f const &colorf);
Expand Down
5 changes: 5 additions & 0 deletions doomsday/sdk/libappfw/src/widgets/labelwidget.cpp
Expand Up @@ -683,6 +683,11 @@ void LabelWidget::setTextAlignment(Alignment const &textAlign)
d->textAlign = textAlign;
}

ui::Alignment LabelWidget::textAlignment() const
{
return d->textAlign;
}

void LabelWidget::setTextLineAlignment(Alignment const &textLineAlign)
{
d->lineAlign = textLineAlign;
Expand Down

0 comments on commit a11e922

Please sign in to comment.