Aurore
A Switch-like interface for your app, on every screen
Loading...
Searching...
No Matches
cell_slider.hpp
Go to the documentation of this file.
1/*
2 Copyright 2023 xfangfang
3
4 Licensed under the Apache License, Version 2.0 (the "License");
5 you may not use this file except in compliance with the License.
6 You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15*/
16
17#pragma once
18
20#include <aurore/core/bind.hpp>
21#include <aurore/core/box.hpp>
25
26namespace aurore
27{
28
29class SliderCell : public DetailCell
30{
31 public:
33
34 void init(const std::string& title, float init, const std::function<void(float)>& callback);
35
37
38 static View* create();
39
40 View* getDefaultFocus() override;
41
43
44 protected:
46};
47
48} // namespace aurore
Definition cell_detail.hpp:28
Definition event.hpp:41
Definition cell_slider.hpp:30
View * getDefaultFocus() override
AccessibilityRole getDefaultAccessibilityRole() override
Definition cell_slider.hpp:45
Slider * slider
Definition cell_slider.hpp:42
static View * create()
void init(const std::string &title, float init, const std::function< void(float)> &callback)
Event< float > * getEvent()
Definition slider.hpp:30
Definition view.hpp:232
Definition actions.hpp:25
AccessibilityRole
Definition view_style.hpp:78