Mercurial > malikania
view libmlk-client/malikania/client/label.cpp @ 191:bfc6b9c9081a
Client: widget store position and size
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 26 Oct 2018 21:07:03 +0200 |
parents | f28cb6d04731 |
children | 263122adef77 |
line wrap: on
line source
/* * label.cpp -- GUI label element * * Copyright (c) 2013-2018 David Demelier <markand@malikania.fr> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ #include <malikania/size.hpp> #include "label.hpp" #include "theme.hpp" #include "window.hpp" namespace mlk::client { label::label(std::string text) noexcept : text_(std::move(text)) { } auto label::get_text() const noexcept -> const std::string& { return text_; } void label::set_text(std::string text) noexcept { text_ = std::move(text); } void label::draw(window& w) { // TODO: implement. (void)w; } } // !mlk::client